Menu

#2232 Runtime Exception in Open File Dialog on Mac OS X

closed
nobody
None
5
2004-11-04
2004-09-13
tem mcewen
No

Every once in a while jEdit displays a BeanShell Error
when I go to open a file (via menu, toolbar button or
command-o) or other file dialog (such as save as, save
a copy, etc). This seems to happen most often when
jEdit has been running for a while and I've put my
laptop to sleep a few times. Quiting and restarting
jEdit resolves the problem.

java.lang.RuntimeException: Non-Java exception raised,
not handled! (Original problem: *** -[NSCFArray
objectAtIndex:]: index (1) beyond bounds (1))
at
apple.awt.CGraphicsConfig.getBoundsForDisplay(Native
Method)
at
apple.awt.CGraphicsConfig.getBounds(CGraphicsConfig.java:85)
at
org.gjt.sp.jedit.OperatingSystem.getScreenBounds(OperatingSystem.java:100)
at
org.gjt.sp.jedit.GUIUtilities.adjustForScreenBounds(GUIUtilities.java:969)
at
org.gjt.sp.jedit.GUIUtilities.loadGeometry(GUIUtilities.java:948)
at
org.gjt.sp.jedit.browser.VFSFileChooserDialog.<init>(VFSFileChooserDialog.java:137)
at
org.gjt.sp.jedit.GUIUtilities.showVFSFileDialog(GUIUtilities.java:673)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at bsh.Reflect.invokeOnMethod(Reflect.java:149)
at bsh.Reflect.invokeStaticMethod(Reflect.java:100)
at bsh.Name.invokeMethod(Name.java:872)
at
bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:72)
at
bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at
bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at bsh.BSHBlock.evalBlock(BSHBlock.java:130)
at bsh.BSHBlock.eval(BSHBlock.java:80)
at bsh.BshMethod.invokeImpl(BshMethod.java:349)
at bsh.BshMethod.invoke(BshMethod.java:246)
at bsh.BshMethod.invoke(BshMethod.java:171)
at
org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:523)
at
org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:76)
at
org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:229)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2910)
at
org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:216)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1819)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1872)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:247)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at
java.awt.Component.processMouseEvent(Component.java:5166)
at java.awt.Component.processEvent(Component.java:4963)
at java.awt.Container.processEvent(Container.java:1613)
at
java.awt.Component.dispatchEventImpl(Component.java:3681)
at
java.awt.Container.dispatchEventImpl(Container.java:1671)
at java.awt.Component.dispatchEvent(Component.java:3543)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3527)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3242)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3172)
at
java.awt.Container.dispatchEventImpl(Container.java:1657)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3543)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Discussion

  • tem mcewen

    tem mcewen - 2004-09-13

    Logged In: YES
    user_id=49517

    Forgot to mention versions... This is on Mac OS X 10.3.5
    with Java 1.4.2_05-141 (1.4.2 update 1). Is been happening
    (about once every month or two) since the early 4.2
    preleases through the 4.2 final release.

     
  • Slava Pestov

    Slava Pestov - 2004-11-04

    Logged In: YES
    user_id=2280

    I have a workaround in 4.3pre1.

     
  • Slava Pestov

    Slava Pestov - 2004-11-04
    • status: open --> closed
     
  • Paul Libbrecht

    Paul Libbrecht - 2004-11-04

    Logged In: YES
    user_id=647450

    I fear this is not only jEdit related but more related to the Java 1.4 on
    Macs... at least, so I seemed to experience.
    paul

     

Log in to post a comment.