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
Access Methods of Plugin [message #814882] Wed, 07 March 2012 01:05 Go to next message
Raj is currently offline RajFriend
Messages: 67
Registered: July 2009
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 ";)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 from file:/C:/dev/workspace01March/pluginA/]

My plugins are all in the active state.

Any pointers why i am getting the java.lang.LinkageError:
Re: Access Methods of Plugin [message #816450 is a reply to message #814882] Thu, 08 March 2012 21:46 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Sorry Raj,

but this does not sound like a RAP problem and I have no clue what the
problem is.

LinkageError usually means that a piece of code has been compiled
against a different version of another piece of code than the one
present at runtime.

Regards, Ralf

Ralf Sternberg

Twitter: @EclipseRAP

Professional services for RAP and RCP?
Previous Topic:Access Methods of Plugin
Next Topic:Suggestion for tableviewer
Goto Forum:

Current Time: Thu May 24 06:38:24 GMT 2018

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

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

Back to the top