Newbie help : PluginException: Loader constraints violated

Guys i need your help. i get this error when i load my plugin
com.intellij.openapi.application.PluginException: loader constraints violated when linking org/jdom/Element class
my plugin basically is a projectcomponent. its a tool window that pops up. it worked fine until i started implenting JDOMExternalizable. i get this error when i try to addContent or even write in the argument element from writeExternal. but when i use defaultJDOMExternalizer, everythng works fine, or if i remove the tool window itself, i am able to write to the element. i just get this error when i show my tool window and i start writing to the element.

3 comments
Comment actions Permalink

Hi,

Remove jdom.jar from your plugin, it supplies with IDEA.

neow wrote:

Guys i need your help. i get this error when i load my plugin
com.intellij.openapi.application.PluginException: loader constraints violated when linking org/jdom/Element class
my plugin basically is a projectcomponent. its a tool window that pops up. it worked fine until i started implenting JDOMExternalizable. i get this error when i try to addContent or even write in the argument element from writeExternal. but when i use defaultJDOMExternalizer, everythng works fine, or if i remove the tool window itself, i am able to write to the element. i just get this error when i show my tool window and i start writing to the element.



--
Maxim Mossienko
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thank you so much! =)

0
Comment actions Permalink

I have the same problem with LinkageError on QName class (in javax.xml.namespace). This jar in question (jst173_1.0_api.jar) is part of JAXB 2.0 and can not be removed (contains other relevant StAX classes). I had to manually remove the QName.class from this jar in order to circumvent the problem (QName is also part of rt.jar and xml_apis.jar).

Any other way to handle this?

0

Please sign in to leave a comment.