[ 
https://issues.apache.org/jira/browse/NUTCH-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16287338#comment-16287338
 ] 

ASF GitHub Bot commented on NUTCH-2473:
---------------------------------------

mfeltscher commented on issue #253: fix for NUTCH-2473 Remove broken slf4j 
dependecy from indexer-elastic-rest
URL: https://github.com/apache/nutch/pull/253#issuecomment-350996991
 
 
   @sebastian-nagel Any news on this? This is a blocking issue for us.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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
>
> 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