Andrzej Bialecki created SOLR-17199:
---------------------------------------
Summary: EnvUtils in solr-solrj is missing
EnvToSyspropMappings.properties from solr-core
Key: SOLR-17199
URL: https://issues.apache.org/jira/browse/SOLR-17199
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Andrzej Bialecki
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:
{code}
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)
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]