LinkageError: loader constraint violation: loader (instance of com/intellij/ide/plugins/cl/PluginClassLoader) previously initiated loading for a different type with name "org/jdom/Element"

Answered

I am developing a relatively simple plugin. Functionality that is called from menu action that supposed to get some JSON data from internet and write it to file worked fine.

But now it stopped working. I found that it happens after I add this extension to plugin xml:

<fileEditorProvider implementation="foo.MyLogicEditorProvider"/>

This class just adds another tab to JSON file editor under specific circumstances (specific file name). 

Any idea?

 

0
2 comments

Solved by removing dependency on JDOM from one of the modules on which the plugin module is dependent.

0

Yes, JDOM library is bundled with IDEA platform so you shouldn't bundle it with your plugin.

0

Please sign in to leave a comment.