You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2024/03/07 11:31:00 UTC
[jira] [Resolved] (SOLR-17199) EnvUtils in solr-solrj is missing EnvToSyspropMappings.properties from solr-core
[ https://issues.apache.org/jira/browse/SOLR-17199?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl resolved SOLR-17199.
--------------------------------
Resolution: Fixed
> 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)
> Affects Versions: 9.5.0
> Reporter: Andrzej Bialecki
> Assignee: Jan Høydahl
> Priority: Major
> Fix For: 9.6.0
>
>
> 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org