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] Tue, 06 March 2012 20:05
Raj  is currently offline Raj
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:How to have multi-user
Next Topic:About, Set on the number of viewpart the show
Goto Forum:
  


Current Time: Thu Apr 17 11:27:28 EDT 2014

Powered by FUDForum. Page generated in 0.01952 seconds