You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by andrew goh <go...@yahoo.com.INVALID> on 2021/12/16 17:52:07 UTC

null pointer exception for solr package management v8.11.0

hi all,

I'm a newbie to solr, need some help.

While i'm trying to use solr 8.11.0. after starting solr with
bin/solr -Denable.packages=true

All the commands with package management

bin/solr package cmd

ends with a null pointer exception.

Is there any way to resolve this?

Thanks in advance,
   Andrew

~/java/solr-8.11.0> bin/solr -Denable.packages=true
*** [WARN] *** Your open file limit is currently 1024.
  It should be set to 65000 to avoid operational disruption.
  If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to 
false in your profile or solr.in.sh
Waiting up to 180 seconds to see Solr running on port 8983 [\]
Started Solr server on port 8983 (pid=20869). Happy searching!

~/java/solr-8.11.0> bin/solr package list-installed
org.apache.solr.common.SolrException: java.lang.NullPointerException
         at 
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:182)
         at 
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:119)
         at 
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:114)
         at 
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:101)
         at 
org.apache.solr.packagemanager.PackageManager.<init>(PackageManager.java:85)
         at org.apache.solr.util.PackageTool.runImpl(PackageTool.java:85)
         at org.apache.solr.util.SolrCLI$ToolBase.runTool(SolrCLI.java:196)
         at org.apache.solr.util.SolrCLI.main(SolrCLI.java:304)
Caused by: java.lang.NullPointerException
         at 
org.apache.zookeeper.client.ConnectStringParser.<init>(ConnectStringParser.java:54)
         at 
org.apache.zookeeper.ZooKeeper.createDefaultHostProvider(ZooKeeper.java:1515)
         at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1108)
         at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:818)
         at 
org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:44)
         at 
org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:109)
         at 
org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37)
         at 
org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:160)
         ... 7 more

ERROR: java.lang.NullPointerException


Re: null pointer exception for solr package management v8.11.0

Posted by andrew goh <go...@singnet.com.sg>.
hi Timothy,

Thanks for your response !
When I run solr package -h i got:

bin/solr package -h
Failed to parse command-line arguments due to: Unrecognized option: -h
usage: org.apache.solr.util.SolrCLI
  -c,--collection              The collection to apply the package to, not
                               required.
  -cluster                     Specifies that this action should affect
                               cluster-level plugins only.
  -collections <COLLECTIONS>   Specifies that this action should affect
                               plugins for the given collections only,
                               excluding cluster level plugins.
  -help                        Print this message
  -p,--param <PARAMS>          List of parameters to be used with deploy
                               command.
  -solrUrl <URL>               Address of the Solr Web application,
                               defaults to: http://localhost:8983/solr.
  -u,--update                  If a deployment is an update over a previous
                               deployment.
  -verbose                     Generate verbose log messages
  -y,--noprompt                Don't prompt for input; accept all default
                               choices, defaults to false.

I think your hint on zkhost helps, apparently I'm not running in the 
'cloud' mode.
That is because I'm hitting some problems in that mode with my indexes. 
I'd try redoing my indexes and see if I can run it in cloud mode.

On 17/12/2021 04:04, Timothy Potter wrote:
> Does passing the -zkHost <ZK_HOST> option to the package command help?
>
> On Thu, Dec 16, 2021 at 10:52 AM andrew goh 
> <go...@yahoo.com.invalid> wrote:
>> hi all,
>>
>> I'm a newbie to solr, need some help.
>>
>> While i'm trying to use solr 8.11.0. after starting solr with
>> bin/solr -Denable.packages=true
>>
>> All the commands with package management
>>
>> bin/solr package cmd
>>
>> ends with a null pointer exception.
>>
>> Is there any way to resolve this?
>>
>> Thanks in advance,
>> Andrew
>>
>> ~/java/solr-8.11.0> bin/solr -Denable.packages=true
>> *** [WARN] *** Your open file limit is currently 1024.
>> It should be set to 65000 to avoid operational disruption.
>> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
>> false in your profile or solr.in.sh
>> Waiting up to 180 seconds to see Solr running on port 8983 [\]
>> Started Solr server on port 8983 (pid=20869). Happy searching!
>>
>> ~/java/solr-8.11.0> bin/solr package list-installed
>> org.apache.solr.common.SolrException: java.lang.NullPointerException
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:182)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:119)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:114)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:101)
>> at
>> org.apache.solr.packagemanager.PackageManager.<init>(PackageManager.java:85)
>> at org.apache.solr.util.PackageTool.runImpl(PackageTool.java:85)
>> at org.apache.solr.util.SolrCLI$ToolBase.runTool(SolrCLI.java:196)
>> at org.apache.solr.util.SolrCLI.main(SolrCLI.java:304)
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.zookeeper.client.ConnectStringParser.<init>(ConnectStringParser.java:54)
>> at
>> org.apache.zookeeper.ZooKeeper.createDefaultHostProvider(ZooKeeper.java:1515)
>> at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1108)
>> at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:818)
>> at
>> org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:44)
>> at
>> org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:109)
>> at
>> org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:160)
>> ... 7 more
>>
>> ERROR: java.lang.NullPointerException
>>

Re: null pointer exception for solr package management v8.11.0

Posted by andrew goh <go...@yahoo.com.INVALID>.
hi Timothy,

Thanks for your response !
When I run solr package -h i got:

bin/solr package -h
Failed to parse command-line arguments due to: Unrecognized option: -h
usage: org.apache.solr.util.SolrCLI
  -c,--collection              The collection to apply the package to, not
                               required.
  -cluster                     Specifies that this action should affect
                               cluster-level plugins only.
  -collections <COLLECTIONS>   Specifies that this action should affect
                               plugins for the given collections only,
                               excluding cluster level plugins.
  -help                        Print this message
  -p,--param <PARAMS>          List of parameters to be used with deploy
                               command.
  -solrUrl <URL>               Address of the Solr Web application,
                               defaults to: http://localhost:8983/solr.
  -u,--update                  If a deployment is an update over a previous
                               deployment.
  -verbose                     Generate verbose log messages
  -y,--noprompt                Don't prompt for input; accept all default
                               choices, defaults to false.

I think your hint on zkhost helps, apparently I'm not running in the 
'cloud' mode.
That is because I'm hitting some problems in that mode with my indexes. 
I'd try redoing my indexes and see if I can run it in cloud mode.

On 17/12/2021 04:04, Timothy Potter wrote:
> Does passing the -zkHost <ZK_HOST> option to the package command help?
>
> On Thu, Dec 16, 2021 at 10:52 AM andrew goh 
> <go...@yahoo.com.invalid> wrote:
>> hi all,
>>
>> I'm a newbie to solr, need some help.
>>
>> While i'm trying to use solr 8.11.0. after starting solr with
>> bin/solr -Denable.packages=true
>>
>> All the commands with package management
>>
>> bin/solr package cmd
>>
>> ends with a null pointer exception.
>>
>> Is there any way to resolve this?
>>
>> Thanks in advance,
>> Andrew
>>
>> ~/java/solr-8.11.0> bin/solr -Denable.packages=true
>> *** [WARN] *** Your open file limit is currently 1024.
>> It should be set to 65000 to avoid operational disruption.
>> If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
>> false in your profile or solr.in.sh
>> Waiting up to 180 seconds to see Solr running on port 8983 [\]
>> Started Solr server on port 8983 (pid=20869). Happy searching!
>>
>> ~/java/solr-8.11.0> bin/solr package list-installed
>> org.apache.solr.common.SolrException: java.lang.NullPointerException
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:182)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:119)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:114)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:101)
>> at
>> org.apache.solr.packagemanager.PackageManager.<init>(PackageManager.java:85)
>> at org.apache.solr.util.PackageTool.runImpl(PackageTool.java:85)
>> at org.apache.solr.util.SolrCLI$ToolBase.runTool(SolrCLI.java:196)
>> at org.apache.solr.util.SolrCLI.main(SolrCLI.java:304)
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.zookeeper.client.ConnectStringParser.<init>(ConnectStringParser.java:54)
>> at
>> org.apache.zookeeper.ZooKeeper.createDefaultHostProvider(ZooKeeper.java:1515)
>> at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1108)
>> at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:818)
>> at
>> org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:44)
>> at
>> org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:109)
>> at
>> org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37)
>> at
>> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:160)
>> ... 7 more
>>
>> ERROR: java.lang.NullPointerException
>>

Re: null pointer exception for solr package management v8.11.0

Posted by Timothy Potter <th...@gmail.com>.
Does passing the -zkHost <ZK_HOST> option to the package command help?

On Thu, Dec 16, 2021 at 10:52 AM andrew goh <go...@yahoo.com.invalid> wrote:
>
> hi all,
>
> I'm a newbie to solr, need some help.
>
> While i'm trying to use solr 8.11.0. after starting solr with
> bin/solr -Denable.packages=true
>
> All the commands with package management
>
> bin/solr package cmd
>
> ends with a null pointer exception.
>
> Is there any way to resolve this?
>
> Thanks in advance,
>    Andrew
>
> ~/java/solr-8.11.0> bin/solr -Denable.packages=true
> *** [WARN] *** Your open file limit is currently 1024.
>   It should be set to 65000 to avoid operational disruption.
>   If you no longer wish to see this warning, set SOLR_ULIMIT_CHECKS to
> false in your profile or solr.in.sh
> Waiting up to 180 seconds to see Solr running on port 8983 [\]
> Started Solr server on port 8983 (pid=20869). Happy searching!
>
> ~/java/solr-8.11.0> bin/solr package list-installed
> org.apache.solr.common.SolrException: java.lang.NullPointerException
>          at
> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:182)
>          at
> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:119)
>          at
> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:114)
>          at
> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:101)
>          at
> org.apache.solr.packagemanager.PackageManager.<init>(PackageManager.java:85)
>          at org.apache.solr.util.PackageTool.runImpl(PackageTool.java:85)
>          at org.apache.solr.util.SolrCLI$ToolBase.runTool(SolrCLI.java:196)
>          at org.apache.solr.util.SolrCLI.main(SolrCLI.java:304)
> Caused by: java.lang.NullPointerException
>          at
> org.apache.zookeeper.client.ConnectStringParser.<init>(ConnectStringParser.java:54)
>          at
> org.apache.zookeeper.ZooKeeper.createDefaultHostProvider(ZooKeeper.java:1515)
>          at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:1108)
>          at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:818)
>          at
> org.apache.solr.common.cloud.SolrZooKeeper.<init>(SolrZooKeeper.java:44)
>          at
> org.apache.solr.common.cloud.ZkClientConnectionStrategy.createSolrZooKeeper(ZkClientConnectionStrategy.java:109)
>          at
> org.apache.solr.common.cloud.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:37)
>          at
> org.apache.solr.common.cloud.SolrZkClient.<init>(SolrZkClient.java:160)
>          ... 7 more
>
> ERROR: java.lang.NullPointerException
>