Menu

#491 jEdit reports java.lang.reflect.InvocationTargetException

open
nobody
None
5
2006-04-06
2006-04-06
Chuck Bing
No

Configuration:
Jalopy jedit-0.2-1.5rc3, February 14, 2006
Windows XP Pro SP2
Java 1.5.0_06
jEdit 4.3pre3

Upon invoking Jalopy's jEdit plug-in, the formatting
occurs, but a popup window then appears with the
following text:

"java.lang.reflect.InvocationTargetException:
<no further information available>"

Pressing the popup's "Show Details" button dismisses
the popup window, and jEdit's status line then
displays the message "Format succeded. Format took xx
seconds."

jEdit's activity log contains the following warning
message:

"[warning] MessageViewPlugin:
org.gjt.sp.jedit.view.message.MessageViewPlugin
should extend EditPlugin not EBPlugin since it has an
empty handleMessage()"

If Jalopy reports a format error in the MessageView
window, the popup window does not appear - everything
appears normal.

I have attached a copy of the activity log, and in it
marked the above line.

Discussion

  • Chuck Bing

    Chuck Bing - 2006-04-06

    jEdit activity.log

     
  • Heklaz

    Heklaz - 2006-04-11

    Logged In: YES
    user_id=56541

    On MacOS X I got the details below from the exception dialog.

    (A subsequent "format buffer" gave this message in the message view: /<path
    to code>/t.java:0:0: String index out of range: -2)

    java.lang.reflect.InvocationTargetException
    at java.awt.EventQueue.invokeAndWait(EventQueue.java:851)
    at de.hunsicker.jalopy.plugin.AbstractPlugin.executeSynchron
    (AbstractPlugin.java:375)
    at de.hunsicker.jalopy.plugin.AbstractPlugin.format(AbstractPlugin.java:
    564)
    at de.hunsicker.jalopy.plugin.AbstractPlugin$ActionWorker.construct
    (AbstractPlugin.java:902)
    at de.hunsicker.swing.util.SwingWorker$2.call(SwingWorker.java:323)
    at de.hunsicker.util.concurrent.FutureResult$1.run(FutureResult.java:
    198)
    at de.hunsicker.swing.util.SwingWorker.run(SwingWorker.java:346)
    at java.lang.Thread.run(Thread.java:613)
    Caused by: java.lang.NoSuchMethodError:
    org.gjt.sp.jedit.textarea.JEditTextArea.getBuffer()Lorg/gjt/sp/jedit/Buffer;
    at de.hunsicker.jalopy.plugin.jedit.JEditEditor.getLength(JEditEditor.java:
    115)
    at de.hunsicker.jalopy.plugin.jedit.JEditEditor.setCaretPosition
    (JEditEditor.java:57)
    at de.hunsicker.jalopy.plugin.jedit.JEditEditor.setCaretPosition
    (JEditEditor.java:79)
    at de.hunsicker.jalopy.plugin.AbstractPlugin$3.run(AbstractPlugin.java:
    575)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy
    (EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
    184)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
    176)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

     
  • Heklaz

    Heklaz - 2006-04-11

    Logged In: YES
    user_id=56541

    The console log gives this extra information:

    [error] EditBus: Exception while sending message on EditBus:
    [error] EditBus: java.lang.NoSuchFieldError: MODE_CHANGED
    [error] EditBus: at de.hunsicker.jalopy.plugin.jedit.JEditPlugin.handleMessage
    (JEditPlugin.java:299)
    [error] EditBus: at org.gjt.sp.jedit.EditBus.send(EditBus.java:148)
    [error] EditBus: at org.gjt.sp.jedit.Buffer$1.run(Buffer.java:264)
    [error] EditBus: at org.gjt.sp.util.WorkThreadPool.doAWTRequest
    (WorkThreadPool.java:392)
    [error] EditBus: at org.gjt.sp.util.WorkThreadPool.doAWTRequests
    (WorkThreadPool.java:380)
    [error] EditBus: at org.gjt.sp.util.WorkThreadPool.access$200
    (WorkThreadPool.java:37)
    [error] EditBus: at org.gjt.sp.util.WorkThreadPool
    $RunRequestsInAWTThread.run(WorkThreadPool.java:477)
    [error] EditBus: at java.awt.event.InvocationEvent.dispatch
    (InvocationEvent.java:209)
    [error] EditBus: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    [error] EditBus: at java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (EventDispatchThread.java:269)
    [error] EditBus: at java.awt.EventDispatchThread.pumpEventsForHierarchy
    (EventDispatchThread.java:190)
    [error] EditBus: at java.awt.EventDispatchThread.pumpEvents
    (EventDispatchThread.java:184)
    [error] EditBus: at java.awt.EventDispatchThread.pumpEvents
    (EventDispatchThread.java:176)
    [error] EditBus: at java.awt.EventDispatchThread.run
    (EventDispatchThread.java:110)

     

Log in to post a comment.