Skip to main content

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 16:01
Raja Kannappan is currently offline Raja KannappanFriend
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?


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

Current Time: Fri May 25 17:02:40 GMT 2018

Powered by FUDForum. Page generated in 0.01996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top