solr 8.6.3 and noggit

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

solr 8.6.3 and noggit

Susmit Shukla
Hi,
got this error using streaming with solrj 8.6.3 . does it use noggit-0.8.
It was not mentioned in dependencies
https://github.com/apache/lucene-solr/blob/branch_8_6/solr/solrj/ivy.xml

Caused by: java.lang.NoSuchMethodError: 'java.lang.Object
org.noggit.ObjectBuilder.getValStrict()'

at org.apache.solr.common.util.Utils.fromJSON(Utils.java:284)
~[solr-solrj-8.6.3.jar:8.6.3 e001c2221812a0ba9e9378855040ce72f93eced4 -
jasongerlowski - 2020-10-03 18:12:06]
Reply | Threaded
Open this post in threaded view
|

Re: solr 8.6.3 and noggit

Mike Drob-2
Noggit code was forked into Solr, see SOLR-13427
https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.6.3/solr/solrj/src/java/org/noggit/ObjectBuilder.java

It looks like that particular method was added in 8.4 via
https://issues.apache.org/jira/browse/SOLR-13824

Is it possible you're using an older SolrJ against a newer Solr server (or
vice versa).

Mike

On Fri, Nov 20, 2020 at 2:25 PM Susmit Shukla <[hidden email]>
wrote:

> Hi,
> got this error using streaming with solrj 8.6.3 . does it use noggit-0.8.
> It was not mentioned in dependencies
> https://github.com/apache/lucene-solr/blob/branch_8_6/solr/solrj/ivy.xml
>
> Caused by: java.lang.NoSuchMethodError: 'java.lang.Object
> org.noggit.ObjectBuilder.getValStrict()'
>
> at org.apache.solr.common.util.Utils.fromJSON(Utils.java:284)
> ~[solr-solrj-8.6.3.jar:8.6.3 e001c2221812a0ba9e9378855040ce72f93eced4 -
> jasongerlowski - 2020-10-03 18:12:06]
>
Reply | Threaded
Open this post in threaded view
|

Re: solr 8.6.3 and noggit

Susmit Shukla
Thanks Mike
That explains it, just removing the noggit-0.6 jar should fix it. This
error depended on classloading order and didn't show up on mac but was a
problem on linux.



On Fri, Nov 20, 2020 at 2:54 PM Mike Drob <[hidden email]> wrote:

> Noggit code was forked into Solr, see SOLR-13427
>
> https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.6.3/solr/solrj/src/java/org/noggit/ObjectBuilder.java
>
> It looks like that particular method was added in 8.4 via
> https://issues.apache.org/jira/browse/SOLR-13824
>
> Is it possible you're using an older SolrJ against a newer Solr server (or
> vice versa).
>
> Mike
>
> On Fri, Nov 20, 2020 at 2:25 PM Susmit Shukla <[hidden email]>
> wrote:
>
> > Hi,
> > got this error using streaming with solrj 8.6.3 . does it use noggit-0.8.
> > It was not mentioned in dependencies
> > https://github.com/apache/lucene-solr/blob/branch_8_6/solr/solrj/ivy.xml
> >
> > Caused by: java.lang.NoSuchMethodError: 'java.lang.Object
> > org.noggit.ObjectBuilder.getValStrict()'
> >
> > at org.apache.solr.common.util.Utils.fromJSON(Utils.java:284)
> > ~[solr-solrj-8.6.3.jar:8.6.3 e001c2221812a0ba9e9378855040ce72f93eced4 -
> > jasongerlowski - 2020-10-03 18:12:06]
> >
>