You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2022/10/21 21:04:00 UTC
[jira] [Commented] (SOLR-16485) Solr 9 standalone mode nullPointerException when ShardHandlerFactory defined
[ https://issues.apache.org/jira/browse/SOLR-16485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17622483#comment-17622483 ]
ASF subversion and git services commented on SOLR-16485:
--------------------------------------------------------
Commit 422d6fe8a00e3afefdcc26ceab434cce03b4a048 in solr's branch refs/heads/main from Houston Putman
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=422d6fe8a00 ]
SOLR-16485: Fix NPE in ShardHandlerFactory for standalone (#1100)
> Solr 9 standalone mode nullPointerException when ShardHandlerFactory defined
> ----------------------------------------------------------------------------
>
> Key: SOLR-16485
> URL: https://issues.apache.org/jira/browse/SOLR-16485
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 9.0
> Environment: Kubernetes using solr-operator 0.6.0
> Reporter: Nick Vladiceanu
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {color:#000000} Solr fails to create cores with a “NullPointerException" error when “shardHandlerFactory” is defined for any handlers in the solrconfig.xml file.{color}
> *Snippet from solrconfig.xml:*
> {code:java}
> <requestHandler name="/select" class="solr.SearchHandler" default="true”>
> <shardHandlerFactory name="shardHandlerFactory" class="HttpShardHandlerFactory">
> <int name="socketTimeout">${socketTimeout:800}</int>
> <int name="connTimeout">${connTimeout:500}</int>
> </shardHandlerFactory>
> </requestHandler>{code}
> *Snippet of NullPointerException*{color:#000000} (full text here: {color}[https://justpaste.it/5lntq]{color:#000000} ):{color}
> {color:#000000}o{color}
> {code:java}
> lxeu-atlas-web-dist-solr-1 | Caused by: java.lang.NullPointerException
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.handler.component.HttpShardHandlerFactory.setSecurityBuilder(HttpShardHandlerFactory.java:299) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.handler.component.SearchHandler.inform(SearchHandler.java:185) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:722) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1155) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1048) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1560) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at org.apache.solr.core.CoreContainer.lambda$load$10(CoreContainer.java:950) ~[?:?]
> olxeu-atlas-web-dist-solr-1 | at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:202) ~[metrics-core-4.1.5.jar:4.1.5]{code}
> {*}Steps{*}{color:#000000}:{color}
> {color:#000000}1. Run library/solr:9.0.0 in docker (default config, no tunings); mount a volume with solrconfig.xml that contains shardHandlerFactory and schema.xml;{color}
> {color:#000000}2. Create a core using the solrconfig.xml: {color}[http://localhost:8983/solr/admin/cores?action=CREATE&name=test&instanceDir=/var/solr/data/test&config=solrconfig.xml&dataDir=data/]
> 3. Failure with nullPointerException;
> 4. Remove the shardHandlerFactory block;
> 5. Repeat step 2;
> 6. Success.
>
> Works fine when running Solr in SolrCloud mode.
> Works fine in Solr 8.11 and all older versions in both, standalone and SolrCloud.
--
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