Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Weird linkage error(Weird linkage error while trying to create classes from common dependency)
Weird linkage error [message #487872] Thu, 24 September 2009 12:01
Raja Kannappan is currently offline Raja Kannappan
Messages: 24
Registered: July 2009
Junior Member
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?

Thanks,

- Raja.
Previous Topic:Dynamic extension of Perspective from other Bundles
Next Topic:UI Forms Title Area Toolbar & Commands
Goto Forum:
  


Current Time: Wed Aug 20 12:45:24 EDT 2014

Powered by FUDForum. Page generated in 0.06435 seconds