[
https://issues.apache.org/jira/browse/NUTCH-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16303688#comment-16303688
]
Markus Jelsma commented on NUTCH-2487:
--------------------------------------
It seems Nutch and your plugin are using a different version of slf4j, that
should resolve your problem. I will close this ticket as it is not a problem of
Nutch itself. You are welcome on the mailing list for more discussion.
> Fetcher thread stopped due to constraint violation
> --------------------------------------------------
>
> Key: NUTCH-2487
> URL: https://issues.apache.org/jira/browse/NUTCH-2487
> Project: Nutch
> Issue Type: Bug
> Components: fetcher
> Affects Versions: 1.14
> Environment: ubuntu 14.04 64 bit
> java details: openjdk 1.8
> Reporter: dhirajforyou
> Priority: Blocker
>
> FetcherThread 42 fetch of https://nutch.apache.org/ failed with:
> 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:299)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
> at
> ir.co.bayan.simorq.zal.extractor.nutch.ExtractorParser.<clinit>(ExtractorParser.java:29)
> 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.parse.ParserFactory.getParsers(ParserFactory.java:138)
> at org.apache.nutch.parse.ParseUtil.parse(ParseUtil.java:80)
> at org.apache.nutch.fetcher.FetcherThread.output(FetcherThread.java:631)
> at org.apache.nutch.fetcher.FetcherThread.run(FetcherThread.java:375)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)