FYI - A little old, but interesting background: "The
java.lang.LinkageError: loader constraint violation" demystified"
http://frankkieviet.blogspot.com/2009/03/javalanglinkageerror-loader-constraint.html
...
Recent comments:
Frédéric Esnault said...
Hi all,
About OSGi users, this error happens usually when a class from an
imported package exposes a class
from another package in the exporting bundle, and the using bundle
imports this class from another bundle.
In this case, the class instance exposed is received from the
exporting bundle, and does not match the class imported in the using bundle.
The solution is to use the "uses" constraint, in the exporting
bundle, on the expot-package header.
This may lead to the framework not being able to resolve the using
bundle, so the design of your bundles may have to be rethought.
November 7, 2011 2:48 AM
Anonymous said...
It helped to clear the concept classloader and linkage.
December 9, 2011 3:14 AM
Anonymous said...
Great! I ran into the same problem when a class that used apache
commons logging Log was
loaded by tomcat StandardClassLoader and then by spring
WebAppClassLoader.
The only WA I got was to remove logging from that class
March 15, 2012 4:44 AM
Anonymous said...
We were able to solve after removing the same jar files from
multiple places in the application.
April 17, 2012 2:02 AM
On 4/18/2012 8:39 AM, Benjamin Wulff (Commented) (JIRA) wrote:
[
http://opencast.jira.com/browse/MH-8745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=29884#comment-29884
]
Benjamin Wulff commented on MH-8745:
------------------------------------
First: That wasn't me! ^^
..anyway when executing the WFR endpoint test, this is what's happening in the
felix console:
14:29:32 ERROR (AbstractFaultChainInitiatorObserver:101) - Error occurred
during error handling, give up!
org.apache.cxf.interceptor.Fault: loader constraint violation: loader (instance of
org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated
loading for a different type with name "org/w3c/dom/Node"
at
org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155)
... skip ...
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of
org/apache/felix/framework/BundleWiringImpl$BundleClassLoaderJava5) previously initiated
loading for a different type with name "org/w3c/dom/Node"
at
org.apache.tika.parser.image.ImageParser.loadNode(ImageParser.java:152)
at
org.apache.tika.parser.image.ImageParser.loadMetadata(ImageParser.java:139)
at org.apache.tika.parser.image.ImageParser.parse(ImageParser.java:92)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
at
org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242)
at
org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120)
at
org.opencastproject.workingfilerepository.impl.WorkingFileRepositoryRestEndpoint.extractContentType(WorkingFileRepositoryRestEndpoint.java:245)
at
org.opencastproject.workingfilerepository.impl.WorkingFileRepositoryRestEndpoint.restGet(WorkingFileRepositoryRestEndpoint.java:219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at
org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
... 94 more
Looks like OSGi problems.. :/
Working File Repository Integration Tests Failing
-------------------------------------------------
Key: MH-8745
URL: http://opencast.jira.com/browse/MH-8745
Project: Matterhorn Project
Issue Type: Bug
Components: Architecture& Services
Affects Versions: 1.4
Reporter: Greg Logan
Assignee: Benjamin Wulff
Priority: Critical
Fix For: 1.4
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________