You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Danny (Jira)" <ji...@apache.org> on 2024/12/17 18:22:00 UTC
[jira] [Comment Edited] (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=17906471#comment-17906471 ]
Danny edited comment on SOLR-16485 at 12/17/24 6:21 PM:
--------------------------------------------------------
Seeing how this was introduced in 8.11.2 can this be back ported to 8.11.5? Please and thank you.
was (Author: JIRAUSER308140):
Seeing how this was introduced in 8.11.2 can this be back ported to 8.11? Please and thank you.
> 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
> Affects Versions: 9.0
> Environment: Kubernetes using solr-operator 0.6.0
> Reporter: Nick Vladiceanu
> Assignee: Houston Putman
> Priority: Major
> Fix For: 9.1, main (10.0)
>
> 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