Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#4 Plugin crashes when you select its menu item

open
UR6LAD
5
2009-08-05
2009-02-11
Martin McCallion
No

jEdit 4.3pre16 using Java 1.6.0_11; Xilize plugin version 3.0.3.31

When you pull down the Plugins menu and select the Xilize option, you get a BeanShell error, as shown below. I'm sure I had this working in one version of jEdit, maybe a year or two ago, but this is the current state.

I can't find any references to this online. I'm a programmer, but I haven't got time to learn all about jEdit plugins just now. It looks like there's no implementation for the Exec.StateChangeListener interface, though.

Here's the stack trace:

java.lang.NoClassDefFoundError: xilize/Exec$StateChangeListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.gjt.sp.jedit.JARClassLoader._loadClass(JARClassLoader.java:389)
at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:108)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.gjt.sp.jedit.bsh.classpath.ClassManagerImpl.classForName(ClassManagerImpl.java:203)
at org.gjt.sp.jedit.bsh.NameSpace.classForName(NameSpace.java:1318)
at org.gjt.sp.jedit.bsh.NameSpace.getClassImpl(NameSpace.java:1218)
at org.gjt.sp.jedit.bsh.NameSpace.getClass(NameSpace.java:1159)
at org.gjt.sp.jedit.bsh.Name.consumeNextObjectField(Name.java:298)
at org.gjt.sp.jedit.bsh.Name.toObject(Name.java:199)
at org.gjt.sp.jedit.bsh.Name.toObject(Name.java:182)
at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:829)
at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:387)
at org.gjt.sp.jedit.menu.EnhancedMenu.init(EnhancedMenu.java:114)
at org.gjt.sp.jedit.menu.EnhancedMenu.menuSelected(EnhancedMenu.java:99)
at javax.swing.JMenu.fireMenuSelected(Unknown Source)
at javax.swing.JMenu$MenuChangeListener.stateChanged(Unknown Source)
at javax.swing.DefaultButtonModel.fireStateChanged(Unknown Source)
at javax.swing.DefaultButtonModel.setSelected(Unknown Source)
at javax.swing.JMenu.setSelected(Unknown Source)
at javax.swing.JMenu.menuSelectionChanged(Unknown Source)
at javax.swing.MenuSelectionManager.setSelectedPath(Unknown Source)
at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(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.trackMouseEnterExit(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 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(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)
Caused by: java.lang.ClassNotFoundException: xilize.Exec$StateChangeListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.gjt.sp.jedit.JARClassLoader.loadFromParent(JARClassLoader.java:469)
at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:86)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 54 more

Discussion

  • UR6LAD
    UR6LAD
    2009-08-05

    • assigned_to: nobody --> ur6lad
     
  • Jose Quesada
    Jose Quesada
    2009-12-09

    I can replicate this.

     
  • SPelosi
    SPelosi
    2012-05-26

    I experience the following error using jEdit 4.5.1 with Xilize plugin version 3.0.3.31 and Java 1.6 Update 29 on Windows 7 Enterprise SP1 32-Bit.
    java.lang.NoClassDefFoundError: xilize/Exec$StateChangeListener
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at org.gjt.sp.jedit.JARClassLoader._loadClass(JARClassLoader.java:439)
    at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:109)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.gjt.sp.jedit.bsh.classpath.ClassManagerImpl.classForName(ClassManagerImpl.java:203)
    at org.gjt.sp.jedit.bsh.NameSpace.classForName(NameSpace.java:1318)
    at org.gjt.sp.jedit.bsh.NameSpace.getClassImpl(NameSpace.java:1218)
    at org.gjt.sp.jedit.bsh.NameSpace.getClass(NameSpace.java:1159)
    at org.gjt.sp.jedit.bsh.Name.consumeNextObjectField(Name.java:298)
    at org.gjt.sp.jedit.bsh.Name.toObject(Name.java:199)
    at org.gjt.sp.jedit.bsh.Name.toObject(Name.java:182)
    at org.gjt.sp.jedit.bsh.Name.invokeMethod(Name.java:829)
    at org.gjt.sp.jedit.bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:75)
    at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
    at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
    at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
    at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
    at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
    at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
    at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
    at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:369)
    at org.gjt.sp.jedit.menu.EnhancedMenu.init(EnhancedMenu.java:116)
    at org.gjt.sp.jedit.menu.EnhancedMenu.menuSelected(EnhancedMenu.java:101)
    at javax.swing.JMenu.fireMenuSelected(Unknown Source)
    at javax.swing.JMenu$MenuChangeListener.stateChanged(Unknown Source)
    at javax.swing.DefaultButtonModel.fireStateChanged(Unknown Source)
    at javax.swing.DefaultButtonModel.setSelected(Unknown Source)
    at javax.swing.JMenu.setSelected(Unknown Source)
    at javax.swing.JMenu.menuSelectionChanged(Unknown Source)
    at javax.swing.MenuSelectionManager.setSelectedPath(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(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.trackMouseEnterExit(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.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(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)
    Caused by: java.lang.ClassNotFoundException: xilize.Exec$StateChangeListener
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at org.gjt.sp.jedit.JARClassLoader.loadFromParent(JARClassLoader.java:522)
    at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:87)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 66 more