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 Raj
Messages: 67
Registered: July 2009
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:
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 Sternberg
Messages: 1290
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
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:rap the default.css in that plug-in
Next Topic:New RichText support in Tables
Goto Forum:
  


Current Time: Tue Sep 30 11:57:06 GMT 2014

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

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