Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
9.5
-
None
-
None
Description
Initially in SOLR-15960 EnvUtils was located in solr-core, together with its configuration resource EnvToSyspropMappings.properties. Then it has been moved from solr-core to solr-solrj but the configuration resource has been left in solr-core.
This unfortunately means that EnvUtils cannot be used without dependency on solr-core, unless user adds their own copy of the configuration resource to the classpath. Right now trying to use it (or using PropertiesUtil for property substitution) results in an exception from the static initializer:
Caused by: java.lang.NullPointerException at java.base/java.util.Objects.requireNonNull(Objects.java:209) at org.apache.solr.common.util.EnvUtils.<clinit>(EnvUtils.java:51)
Attachments
Issue Links
- links to