Exception in StrutsPlugin v454 and Idea build 5321

Hey Yann,

Just thought I'd post this exception I get in Idea build 5321 when using Struts_Plugin_454.jar. It happens everytime I open the struts-config.xml file. No idea if it is a bad config file problem or a strutsplugin/build 5321 type problem?

Thanks
Scott


com.intellij.javaee.model.xml.impl.BaseImpl$$EnhancerByCGLIB$$37a62392
java.lang.ClassCastException: com.intellij.javaee.model.xml.impl.BaseImpl$$EnhancerByCGLIB$$37a62392
at de.lineas.lit.strutsplugin.util.WebXmlHelper.getActionServletUrlPattern(WebXmlHelper.java:55)
at de.lineas.lit.strutsplugin.util.WebXmlHelper.getStrutsConfigFilesForModule(WebXmlHelper.java:74)
at de.lineas.lit.strutsplugin.navigation.tilesdefs.TilesDefsExtendsAttributeReferenceProvider$TilesExtendsReference.(TilesDefsExtendsAttributeReferenceProvider.java:79) at de.lineas.lit.strutsplugin.navigation.tilesdefs.TilesDefsExtendsAttributeReferenceProvider.getReferencesByElement(TilesDefsExtendsAttributeReferenceProvider.java:44) at com.intellij.psi.impl.source.resolve.ResolveUtil.getReferencesFromProviders(ResolveUtil.java:55) at com.intellij.psi.impl.source.xml.XmlAttributeValueImpl.getReferences(XmlAttributeValueImpl.java:7) at com.intellij.psi.impl.SharedPsiElementImplUtil.a(SharedPsiElementImplUtil.java:54) at com.intellij.psi.impl.SharedPsiElementImplUtil.findReferenceAt(SharedPsiElementImplUtil.java:24) at com.intellij.psi.CompositeLanguageFileViewProvider.findReferenceAt(CompositeLanguageFileViewProvider.java:204) at com.intellij.psi.impl.source.PsiFileImpl.findReferenceAt(PsiFileImpl.java:134) at com.intellij.codeInsight.TargetElementUtil.findReference(TargetElementUtil.java:66) at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:56) at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$400(CtrlMouseHandler.java:79) at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.execute(CtrlMouseHandler.java:39) at com.intellij.codeInsight.navigation.CtrlMouseHandler$5.mouseMoved(CtrlMouseHandler.java:1) at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:72) at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:20) at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:51) at $Proxy8.mouseMoved(Unknown Source) at com.intellij.openapi.editor.impl.EditorImpl$MyMouseMotionListener.mouseMoved(EditorImpl.java:23) at java.awt.Component.processMouseMotionEvent(Unknown Source) at javax.swing.JComponent.processMouseMotionEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:66) at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:8) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:120) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) java.lang.ClassCastException: com.intellij.javaee.model.xml.impl.BaseImpl$$EnhancerByCGLIB$$37a62392 at de.lineas.lit.strutsplugin.util.WebXmlHelper.getActionServletUrlPattern(WebXmlHelper.java:55) at de.lineas.lit.strutsplugin.util.WebXmlHelper.getStrutsConfigFilesForModule(WebXmlHelper.java:74) at de.lineas.lit.strutsplugin.navigation.tilesdefs.TilesDefsExtendsAttributeReferenceProvider$TilesExtendsReference.]]>(TilesDefsExtendsAttributeReferenceProvider.java:79)
at de.lineas.lit.strutsplugin.navigation.tilesdefs.TilesDefsExtendsAttributeReferenceProvider.getReferencesByElement(TilesDefsExtendsAttributeReferenceProvider.java:44)
at com.intellij.psi.impl.source.resolve.ResolveUtil.getReferencesFromProviders(ResolveUtil.java:55)
at com.intellij.psi.impl.source.xml.XmlAttributeValueImpl.getReferences(XmlAttributeValueImpl.java:7)
at com.intellij.psi.impl.SharedPsiElementImplUtil.a(SharedPsiElementImplUtil.java:54)
at com.intellij.psi.impl.SharedPsiElementImplUtil.findReferenceAt(SharedPsiElementImplUtil.java:24)
at com.intellij.psi.CompositeLanguageFileViewProvider.findReferenceAt(CompositeLanguageFileViewProvider.java:204)
at com.intellij.psi.impl.source.PsiFileImpl.findReferenceAt(PsiFileImpl.java:134)
at com.intellij.codeInsight.TargetElementUtil.findReference(TargetElementUtil.java:66)
at com.intellij.codeInsight.navigation.CtrlMouseHandler.a(CtrlMouseHandler.java:56)
at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$400(CtrlMouseHandler.java:79)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.execute(CtrlMouseHandler.java:39)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$5.mouseMoved(CtrlMouseHandler.java:1)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:72)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:20)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:51)
at $Proxy8.mouseMoved(Unknown Source)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseMotionListener.mouseMoved(EditorImpl.java:23)
at java.awt.Component.processMouseMotionEvent(Unknown Source)
at javax.swing.JComponent.processMouseMotionEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:66)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:8)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:120)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Message was edited by:
Scott Curtis

1 comment
Comment actions Permalink

Hello Scott,

thanks for posting, this is a known incompatibility. Unfortunately the Demetra-Builds don't seem to check <since-version> attribute of plugin.xml in order to disable it.

Greetings,
Yann

0

Please sign in to leave a comment.