[ 
https://issues.apache.org/jira/browse/NUTCH-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lewis John McGibbney updated NUTCH-2473:
----------------------------------------
    Fix Version/s: 1.14

> Elasticsearch REST Indexer broken due to wrong depenency
> --------------------------------------------------------
>
>                 Key: NUTCH-2473
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2473
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 1.14
>            Reporter: Moreno Feltscher
>            Assignee: Sebastian Nagel
>             Fix For: 1.14
>
>
> When trying to index into Elasticsearch using {{indexer-elastic-rest}} the 
> following error is being thrown:
> {code}
> Exception in thread "main" java.lang.LinkageError: loader constraint 
> violation: when resolving method 
> "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;"
>  the class loader (instance of org/apache/nutch/plugin/PluginClassLoader) of 
> the current class, org/slf4j/LoggerFactory, and the class loader (instance of 
> sun/misc/Launcher$AppClassLoader) for the method's defining class, 
> org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type 
> org/slf4j/ILoggerFactory used in the signature
>     at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:418)
>     at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
>     at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
>     at 
> org.apache.nutch.indexwriter.elasticrest.ElasticRestIndexWriter.<clinit>(ElasticRestIndexWriter.java:71)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>     at java.lang.Class.newInstance(Class.java:442)
>     at 
> org.apache.nutch.plugin.Extension.getExtensionInstance(Extension.java:161)
>     at org.apache.nutch.indexer.IndexWriters.<init>(IndexWriters.java:57)
>     at org.apache.nutch.indexer.IndexingJob.index(IndexingJob.java:123)
>     at org.apache.nutch.indexer.IndexingJob.run(IndexingJob.java:230)
>     at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>     at org.apache.nutch.indexer.IndexingJob.main(IndexingJob.java:239)
> {code}
> [e66d44d|https://github.com/apache/nutch/commit/e66d44d9c290c550e78edb425a43e010b861172c#diff-aefa48b9ce916d2e33dc27b153c44977]
>  removed the runtime dependency on {{slf4j-api-1.7.21.jar}} everywhere but in 
> {{indexer-elastic-rest}}.
> Possible fix: https://github.com/apache/nutch/pull/253



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to