Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Access Methods of Plugin(java.lang.LinkageError: loader constraint violation:)
Access Methods of Plugin [message #814877] Wed, 07 March 2012 01:05
Raj  is currently offline Raj Friend
Messages: 74
Registered: August 2011
Member
I have plugin A which uses activation-1.0.2.jar for sending the email.

I am using RAP 1.5 and when i try to access the plugin A from another plugin B and pass the 'javax.activation.DataSource' I am getting the below error

java.lang.LinkageError: loader constraint violation: when resolving
method "test.email.EmailMessage.addAttachment(Ljavax/activation/DataSource;)V" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, ztest/View$1, and the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) for resolved class, test/email/EmailMessage, have different Class objects for the type javax/activation/DataSource used in the signature

When i run the server with -verbose command i notice
[Loaded javax.activation.DataSource from C:\jdk1.6.0_13\jre\lib\rt.jar]
[Loaded javax.activation.DataSource from file:/C:/dev/workspace01March/pluginA/lib/activation-1.0.2.jar]
[Loaded test.email.ByteArrayDataSource from file:/C:/dev/workspace01March/pluginA/]

My plugins are all in the active state.

Any pointers why i am getting the java.lang.LinkageError:
Previous Topic:Setting "ID" for TableItem
Next Topic:Access Methods of Plugin
Goto Forum:
  


Current Time: Fri Apr 26 03:50:22 GMT 2024

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

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

Back to the top