When I open jEdit's build.xml file, I get the exception below and the file is not parsed into Sidekick. The exception message is correct, there is no getBuffer method in JEditTextArea.
Exception while sending message on EditBus:
java.lang.NoSuchMethodError: org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
at com.bluemarsh.jswat.plugins.jedit.BreakpointHighlight.handleMessage(BreakpointHighlight.java:236)
at org.gjt.sp.jedit.EditBus.dispatch(EditBus.java:246)
at org.gjt.sp.jedit.EditBus.sendImpl(EditBus.java:281)
at org.gjt.sp.jedit.EditBus.access$200(EditBus.java:87)
at org.gjt.sp.jedit.EditBus$SendMessage.run(EditBus.java:461)
at org.gjt.sp.jedit.EditBus.send(EditBus.java:206)
at org.gjt.sp.jedit.Buffer.propertiesChanged(Buffer.java:987)
at org.gjt.sp.jedit.jEdit.propertiesChanged(jEdit.java:1044)
at xml.JEdit5Support.setShortcut(JEdit5Support.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at xml.XmlActions$1.run(XmlActions.java:1178)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
XMLPlugin version 3.0.3.
4:50:11 PM [main] [message] Log: java.version=1.8.0_77
4:50:11 PM [main] [message] Log: java.vm.version=25.77-b03
4:50:11 PM [main] [message] Log: java.vm.name=OpenJDK 64-Bit Server VM
4:50:11 PM [main] [message] Log: java.runtime.version=1.8.0_77-b03
4:50:11 PM [main] [message] Log: java.runtime.name=OpenJDK Runtime Environment
4:50:11 PM [main] [message] Log: java.vendor=Oracle Corporation
4:50:11 PM [main] [message] Log: java.compiler=null
4:50:11 PM [main] [message] Log: os.name=Linux
4:50:11 PM [main] [message] Log: os.version=4.4.5-1-ARCH
4:50:11 PM [main] [message] Log: os.arch=amd64
4:50:11 PM [main] [message] Log: user.home=/home/danson
4:50:11 PM [main] [message] Log: java.home=/usr/lib/jvm/java-8-openjdk/jre
4:50:11 PM [main] [message] Log: java.class.path=/home/danson/apps/jedit/current/jedit.jar
4:50:11 PM [main] [message] jEdit: starting with command line arguments: -reuseview
From the stacktrace, this looks like a JSwat plugin bug.
But why XmlActions.propertiesChanged() is invoked on parse (far below in the stack) is unclear to me.
Ok, removing jswat removes the problem. It looks like development of jswat was discontinued in 2013, and I can't find any code newer than what's in plugin manager.
Dale,
this is clearly an issue with JSwatPlugin : I get the same error when showing JSwatPlugin on an empty file (stacktrace below).
XmlActions.propertiesChanged is also called on XMLPlugin startup.
This may be why it is in your stacktrace.