Skip to main content



      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
Eclipse UserFriend
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: Sat Jun 14 23:47:13 EDT 2025

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

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

Back to the top