Exception Class org/jdom/Element violates loader constraints

I'm working with build #6111

I got this exception when my project component is trying to write itself to xml.

public void writeExternal(Element element) throws WriteExternalException {
.
.

  • Element myDataElement = new Element("config");*


.
.
}

trying to instantiate Element cause this exception:

Class org/jdom/Element violates loader constraints
java.lang.LinkageError: Class org/jdom/Element violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:72)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:68)
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:49)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:23)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
* at wfplugins.wfrun.run.WDUserDefinedOptionsManager.writeExternal(WDUserDefinedOptionsManager.java:143)* at com.intellij.openapi.components.impl.ComponentManagerImpl.serializeComponent(ComponentManagerImpl.java:27)
at com.intellij.openapi.project.impl.BaseFileConfigurable.saveToXml(BaseFileConfigurable.java:147)
at com.intellij.openapi.project.impl.BaseFileConfigurable._save(BaseFileConfigurable.java:78)
at com.intellij.openapi.project.impl.ProjectImpl$3.run(ProjectImpl.java:9)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:26)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:23)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:222)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:46)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:1)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:0)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:2)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:4)
at com.intellij.util.Alarm$1.run(Alarm.java:106)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:250)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:57)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:91)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:48)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Thanks
Boaz

2 comments
Comment actions Permalink

Remove JDOM lib from your plugin (it intercepts with IDEA bundled one)

Boaz Nahum wrote:

I'm working with build #6111

I got this exception when my project component is trying to write itself to xml.

public void writeExternal(Element element) throws WriteExternalException {
.
.

  • Element myDataElement = new Element("config");*


.
.
}

trying to instantiate Element cause this exception:

Class org/jdom/Element violates loader constraints
java.lang.LinkageError: Class org/jdom/Element violates loader constraints
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:72)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:68)
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:49)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:23)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
* at wfplugins.wfrun.run.WDUserDefinedOptionsManager.writeExternal(WDUserDefinedOptionsManager.java:143)* at com.intellij.openapi.components.impl.ComponentManagerImpl.serializeComponent(ComponentManagerImpl.java:27)
at com.intellij.openapi.project.impl.BaseFileConfigurable.saveToXml(BaseFileConfigurable.java:147)
at com.intellij.openapi.project.impl.BaseFileConfigurable._save(BaseFileConfigurable.java:78)
at com.intellij.openapi.project.impl.ProjectImpl$3.run(ProjectImpl.java:9)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:26)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:23)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:222)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:46)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:1)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:0)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:2)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:4)
at com.intellij.util.Alarm$1.run(Alarm.java:106)
at com.intellij.util.Alarm$MyThread$1.run(Alarm.java:250)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:57)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:91)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:48)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Thanks
Boaz



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks !!!

It was so fast. plugin IdeaJad decompile Element and put it under my plugin source root !!!

0

Please sign in to leave a comment.