You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Surya R <su...@gmail.com> on 2021/12/12 02:49:34 UTC
solr Help
hi Solr Devs,
I need guidance on a problem I am having. We recently upgraded to
solr-8.11. We still use DIH to pull data from postgres DB.
We use solr in a standalone mode, with multiple cores, each core serving a
certain business unit.
When i try kicking off the dataimport handler i get the below error. I
have all the dataimport handlers in solr install path and the path was
mentioned in the solrconfig.xml as well.
Can anyone please let me know what this error is? Why is it referring to
update processor?
Thanks in advance for your help.
java.lang.NoSuchMethodError:
org.apache.solr.update.processor.TemplateUpdateProcessorFactory.replaceTokens(Ljava/lang/String;Lorg/apache/solr/common/util/Cache;Ljava/util/function/Function;)Ljava/lang/String;
from /solr/products/dataimport
*Thanks*
*Aditya*
Re: solr Help
Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/11/2021 7:49 PM, Surya R wrote:
> Can anyone please let me know what this error is? Why is it referring to
> update processor?
>
> Thanks in advance for your help.
>
> java.lang.NoSuchMethodError:
> org.apache.solr.update.processor.TemplateUpdateProcessorFactory.replaceTokens(Ljava/lang/String;Lorg/apache/solr/common/util/Cache;Ljava/util/function/Function;)Ljava/lang/String;
> from /solr/products/dataimport
That class is part of the solr-core jar.
Chances are very good that you are seeing this problem because your
install is loading at least one jar more than once. Specifically, I
believe you have probably loaded the solr-core jar with your config ...
this jar is loaded already from the Solr webapp, so if you load it
again, it can cause problems with any class contained in that jar.
Anytime you request additional jars to be loaded, you must be careful
that none of those jars are already loaded by any other means.
Thanks,
Shawn
Re: solr Help
Posted by David Smiley <ds...@apache.org>.
At a glance, a "NoSuchMethodError" strongly points to using incompatible
JARs. You say you are on Solr 8.11 but perhaps you have JARs for the DIH
of a previous version. They need to match. I checked right now that the
DIH in fact uses the method you point to, which lends credence to my theory.
~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley
On Sun, Dec 12, 2021 at 4:11 AM Surya R <su...@gmail.com> wrote:
> hi Solr Devs,
>
> I need guidance on a problem I am having. We recently upgraded to
> solr-8.11. We still use DIH to pull data from postgres DB.
>
> We use solr in a standalone mode, with multiple cores, each core serving a
> certain business unit.
> When i try kicking off the dataimport handler i get the below error. I
> have all the dataimport handlers in solr install path and the path was
> mentioned in the solrconfig.xml as well.
>
> Can anyone please let me know what this error is? Why is it referring to
> update processor?
>
> Thanks in advance for your help.
>
> java.lang.NoSuchMethodError:
>
> org.apache.solr.update.processor.TemplateUpdateProcessorFactory.replaceTokens(Ljava/lang/String;Lorg/apache/solr/common/util/Cache;Ljava/util/function/Function;)Ljava/lang/String;
> from /solr/products/dataimport
>
>
> *Thanks*
> *Aditya*
>