Re: Unable to connect to an 8.8.0 Solr Cloud database via API

2021-02-08 Thread Timothy Potter
What version of SolrJ is embedded in your uleaf.ear file? There have been
changes in how we deal with URLs stored in ZK in 8.8 --> SOLR-12182

On Fri, Feb 5, 2021 at 2:34 AM Flowerday, Matthew J <
matthew.flower...@gb.unisys.com> wrote:

> Hi There
>
>
>
> I have been checking out the latest (8.8.0) SolrCloud database (using
> Zookeeper 3.6.2) against our application which talks to Solr via the Solr
> API (I am not too sure of the details as I am not a java developer
> unfortunately!). The software has Solr 8.7.0/ZooKeeper 3.6.2 libraries
> ‘embedded’.
>
>
>
> When our application sends a query to the SolrCloud 8.8.0 database it
> generates this error:
>
>
>
> 2021-02-05 05:36:42,644 INFO
> [org.apache.solr.common.cloud.ConnectionManager] (default task-7) Client is
> connected to ZooKeeper
>
> 2021-02-05 05:36:42,685 INFO  [org.apache.solr.common.cloud.ZkStateReader]
> (default task-7) Updated live nodes from ZooKeeper... (0) -> (1)
>
> 2021-02-05 05:36:42,752 INFO
> [org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider] (default
> task-7) Cluster at localhost:2185 ready
>
> 2021-02-05 05:36:42,785 INFO
> [org.apache.solr.client.solrj.impl.BaseCloudSolrClient] (default task-7)
> request was not communication error it seems
>
> 2021-02-05 05:36:42,788 INFO
> [org.apache.solr.client.solrj.impl.BaseCloudSolrClient] (default task-7)
> Request to collection [holmes] failed due to (0)
> java.lang.NullPointerException, retry=0 maxRetries=5 commError=false
> errorCode=0
>
> 2021-02-05 05:36:42,789 ERROR
> [com.unisys.holmes2.h2ng.solr.business.impl.SolrConnectionManagerImpl]
> (default task-7) Solr exception on query 'test':
> org.apache.solr.client.solrj.SolrServerException:
> java.lang.NullPointerException
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:1053)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.impl.BaseCloudSolrClient.request(BaseCloudSolrClient.java:866)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrConnectionManagerImpl.search(SolrConnectionManagerImpl.java:191)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:223)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.retrieveSearchPages(SolrSearchServiceImpl.java:163)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.retrieveResults(SolrSearchServiceImpl.java:147)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:132)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:118)
>
>   at
> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController.search(SolrController.java:163)
>
>   at
> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController.searchValid(SolrController.java:127)
>
>   at
> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController.search(SolrController.java:108)
>
>   at
> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController$$FastClassBySpringCGLIB$$82e1da1b.invoke()
>
>   at
> deployment.uleaf.ear//org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>
>   at
> deployment.uleaf.ear//org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
>
>   at
> deployment.uleaf.ear//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>
>   at
> deployment.uleaf.ear//org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.persistence.support.AbstractRequestLogger.proceedWithoutDebug(AbstractRequestLogger.java:60)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.persistence.support.AbstractRequestLogger.logAndInvoke(AbstractRequestLogger.java:36)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.presentation.support.RequestLogger.request(RequestLogger.java:48)
>
>

Re: Unable to connect to an 8.8.0 Solr Cloud database via API

2021-02-08 Thread Timothy Potter
Thanks for the additional details Matthew. I created this JIRA to track
this problem: https://issues.apache.org/jira/browse/SOLR-15145. Please add
any additional information to that ticket if needed.

Are you able to upgrade your SolrJ client JAR to 8.8.0? If not, I
understand but that would be a quick work-around for this problem if
possible in your env. Otherwise, we'll have to include a fix into 8.8.1

Cheers,
Tim

On Mon, Feb 8, 2021 at 8:27 AM Timothy Potter  wrote:

> What version of SolrJ is embedded in your uleaf.ear file? There have been
> changes in how we deal with URLs stored in ZK in 8.8 --> SOLR-12182
>
> On Fri, Feb 5, 2021 at 2:34 AM Flowerday, Matthew J <
> matthew.flower...@gb.unisys.com> wrote:
>
>> Hi There
>>
>>
>>
>> I have been checking out the latest (8.8.0) SolrCloud database (using
>> Zookeeper 3.6.2) against our application which talks to Solr via the Solr
>> API (I am not too sure of the details as I am not a java developer
>> unfortunately!). The software has Solr 8.7.0/ZooKeeper 3.6.2 libraries
>> ‘embedded’.
>>
>>
>>
>> When our application sends a query to the SolrCloud 8.8.0 database it
>> generates this error:
>>
>>
>>
>> 2021-02-05 05:36:42,644 INFO
>> [org.apache.solr.common.cloud.ConnectionManager] (default task-7) Client is
>> connected to ZooKeeper
>>
>> 2021-02-05 05:36:42,685 INFO
>> [org.apache.solr.common.cloud.ZkStateReader] (default task-7) Updated live
>> nodes from ZooKeeper... (0) -> (1)
>>
>> 2021-02-05 05:36:42,752 INFO
>> [org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider] (default
>> task-7) Cluster at localhost:2185 ready
>>
>> 2021-02-05 05:36:42,785 INFO
>> [org.apache.solr.client.solrj.impl.BaseCloudSolrClient] (default task-7)
>> request was not communication error it seems
>>
>> 2021-02-05 05:36:42,788 INFO
>> [org.apache.solr.client.solrj.impl.BaseCloudSolrClient] (default task-7)
>> Request to collection [holmes] failed due to (0)
>> java.lang.NullPointerException, retry=0 maxRetries=5 commError=false
>> errorCode=0
>>
>> 2021-02-05 05:36:42,789 ERROR
>> [com.unisys.holmes2.h2ng.solr.business.impl.SolrConnectionManagerImpl]
>> (default task-7) Solr exception on query 'test':
>> org.apache.solr.client.solrj.SolrServerException:
>> java.lang.NullPointerException
>>
>>   at
>> deployment.uleaf.ear//org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:1053)
>>
>>   at
>> deployment.uleaf.ear//org.apache.solr.client.solrj.impl.BaseCloudSolrClient.request(BaseCloudSolrClient.java:866)
>>
>>   at
>> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
>>
>>   at
>> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
>>
>>   at
>> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
>>
>>   at
>> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrConnectionManagerImpl.search(SolrConnectionManagerImpl.java:191)
>>
>>   at
>> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:223)
>>
>>   at
>> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.retrieveSearchPages(SolrSearchServiceImpl.java:163)
>>
>>   at
>> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.retrieveResults(SolrSearchServiceImpl.java:147)
>>
>>   at
>> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:132)
>>
>>   at
>> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:118)
>>
>>   at
>> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController.search(SolrController.java:163)
>>
>>   at
>> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController.searchValid(SolrController.java:127)
>>
>>   at
>> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController.search(SolrController.java:108)
>>
>>   at
>> deployment.uleaf.ear.solr-ui-2.0-SNAPSHOT.war//com.unisys.holmes2.h2ng.solr.presentation.SolrController$$FastClassBySpringCGLIB$$82e1da1b.invoke()
>>
>>   at
>> deployment.uleaf.ear//org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>>
>>   at
>> deployment.uleaf.ear//org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:708)
>>
>>   at
>> deployment.uleaf.ear//org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>>
>>   at
>> deploymen

Re: Unable to connect to an 8.8.0 Solr Cloud database via API

2021-02-08 Thread Timothy Potter
Hi Matthew,

Ok, that's great to hear. Thanks for reporting back!

Cheers,
Tim

On Mon, Feb 8, 2021 at 12:26 PM Flowerday, Matthew J <
matthew.flower...@gb.unisys.com> wrote:

> Hi Tim
>
>
>
> Upgrading to solrJ 8.8.0 fixed the issue.
>
>
>
> Many Thanks for your help!
>
>
>
> Matthew
>
>
>
> *Matthew Flowerday* | Consultant | ULEAF
>
> Unisys | 01908 774830| matthew.flower...@unisys.com
>
> Address Enigma | Wavendon Business Park | Wavendon | Milton Keynes | MK17
> 8LX
>
>
>
> [image: unisys_logo] 
>
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all devices.
>
> [image: Grey_LI]   [image:
> Grey_TW]  [image: Grey_YT]
> [image: Grey_FB]
> [image: Grey_Vimeo]
> [image: Grey_UB] 
>
>
>
> *From:* Timothy Potter 
> *Sent:* 08 February 2021 15:44
> *To:* solr-user@lucene.apache.org
> *Subject:* Re: Unable to connect to an 8.8.0 Solr Cloud database via API
>
>
>
> *EXTERNAL EMAIL - Be cautious of all links and attachments.*
>
> Thanks for the additional details Matthew. I created this JIRA to track
> this problem: https://issues.apache.org/jira/browse/SOLR-15145. Please
> add any additional information to that ticket if needed.
>
>
>
> Are you able to upgrade your SolrJ client JAR to 8.8.0? If not, I
> understand but that would be a quick work-around for this problem if
> possible in your env. Otherwise, we'll have to include a fix into 8.8.1
>
>
>
> Cheers,
>
> Tim
>
>
>
> On Mon, Feb 8, 2021 at 8:27 AM Timothy Potter 
> wrote:
>
> What version of SolrJ is embedded in your uleaf.ear file? There have been
> changes in how we deal with URLs stored in ZK in 8.8 --> SOLR-12182
>
>
>
> On Fri, Feb 5, 2021 at 2:34 AM Flowerday, Matthew J <
> matthew.flower...@gb.unisys.com> wrote:
>
> Hi There
>
>
>
> I have been checking out the latest (8.8.0) SolrCloud database (using
> Zookeeper 3.6.2) against our application which talks to Solr via the Solr
> API (I am not too sure of the details as I am not a java developer
> unfortunately!). The software has Solr 8.7.0/ZooKeeper 3.6.2 libraries
> ‘embedded’.
>
>
>
> When our application sends a query to the SolrCloud 8.8.0 database it
> generates this error:
>
>
>
> 2021-02-05 05:36:42,644 INFO
> [org.apache.solr.common.cloud.ConnectionManager] (default task-7) Client is
> connected to ZooKeeper
>
> 2021-02-05 05:36:42,685 INFO  [org.apache.solr.common.cloud.ZkStateReader]
> (default task-7) Updated live nodes from ZooKeeper... (0) -> (1)
>
> 2021-02-05 05:36:42,752 INFO
> [org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider] (default
> task-7) Cluster at localhost:2185 ready
>
> 2021-02-05 05:36:42,785 INFO
> [org.apache.solr.client.solrj.impl.BaseCloudSolrClient] (default task-7)
> request was not communication error it seems
>
> 2021-02-05 05:36:42,788 INFO
> [org.apache.solr.client.solrj.impl.BaseCloudSolrClient] (default task-7)
> Request to collection [holmes] failed due to (0)
> java.lang.NullPointerException, retry=0 maxRetries=5 commError=false
> errorCode=0
>
> 2021-02-05 05:36:42,789 ERROR
> [com.unisys.holmes2.h2ng.solr.business.impl.SolrConnectionManagerImpl]
> (default task-7) Solr exception on query 'test':
> org.apache.solr.client.solrj.SolrServerException:
> java.lang.NullPointerException
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:1053)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.impl.BaseCloudSolrClient.request(BaseCloudSolrClient.java:866)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1003)
>
>   at
> deployment.uleaf.ear//org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:1018)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrConnectionManagerImpl.search(SolrConnectionManagerImpl.java:191)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.search(SolrSearchServiceImpl.java:223)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.retrieveSearchPages(SolrSearchServiceImpl.java:163)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl.retrieveResults(SolrSearchServiceImpl.java:147)
>
>   at
> deployment.uleaf.ear//com.unisys.holmes2.h2ng.solr.business.impl.SolrSearchServiceImpl

SOLR upgrade

2021-02-08 Thread Paul, Lulu
Hi SOLR team,

Please may I ask for advice regarding upgrading the SOLR version (our project 
currently running on solr-5.2.1) to the latest version?
What are the steps, breaking changes and potential issues ? Could this be done 
as an incremental version upgrade or a direct jump to the newest version?

Much appreciate the advice, Thank you!

Best Wishes
Lulu


**
Experience the British Library online at www.bl.uk
The British Library's latest Annual Report and Accounts : 
www.bl.uk/aboutus/annrep/index.html
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
The Library's St Pancras site is WiFi - enabled
*
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the 
postmas...@bl.uk : The contents of this e-mail must 
not be disclosed or copied without the sender's consent.
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author.
*
Think before you print