|Weird linkage error [message #487872]
||Thu, 24 September 2009 16:01
| Raja Kannappan
Registered: July 2009
I get this strange error:|
java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name
I have three plugins say A, B and C. All three of them uses common dependency, say X. X is a normal java jar, not an eclipse project. Plugin A is our base plugin and Plugins B and C use A as compile time dependency.
When plugins B and C try to create objects from X, everything works fine as expected. But when plugins A and B or A and C try to create objects from X, then I get this linkage error. I think this happens because plugins B and C depend on A and when they both try to instantiate the same class collision happens. But, it does not make sense to me.
Does anyone know what I'm doing wrong or have any suggestions to get around this problem?
Powered by FUDForum
. Page generated in 0.02136 seconds