Menu

#364 open file problem

open
nobody
None
5
2005-01-31
2005-01-31
Anonymous
No

java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
at java.util.Vector.elementAt(Vector.java:427)
at
javax.swing.DefaultListModel.get(DefaultListModel.java:428)
at
apple.laf.AquaFileChooserUI$FilterComboBoxModel.getSelect
edItem(AquaFileChooserUI.java:1312)
at
javax.swing.JComboBox.contentsChanged(JComboBox.java:1
263)
at
javax.swing.AbstractListModel.fireContentsChanged(Abstract
ListModel.java:100)
at
apple.laf.AquaFileChooserUI$FilterComboBoxModel.propertyC
hange(AquaFileChooserUI.java:1278)
at
javax.swing.event.SwingPropertyChangeSupport.fireProperty
Change(SwingPropertyChangeSupport.java:264)
at
javax.swing.event.SwingPropertyChangeSupport.fireProperty
Change(SwingPropertyChangeSupport.java:232)
at
javax.swing.JComponent.firePropertyChange(JComponent.jav
a:3814)
at
javax.swing.JFileChooser.addChoosableFileFilter(JFileChooser
.java:1073)
at
javax.swing.JFileChooser.resetChoosableFileFilters(JFileChoo
ser.java:1114)
at
edu.rice.cs.drjava.ui.MainFrame$3.getFiles(MainFrame.java:
326)
at
edu.rice.cs.drjava.ui.MainFrame._openFileOrProject(MainFra
me.java:2025)
at
edu.rice.cs.drjava.ui.MainFrame.access$1200(MainFrame.jav
a:101)
at
edu.rice.cs.drjava.ui.MainFrame$11.actionPerformed(MainFr
ame.java:436)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButt
on.java:1797)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerfo
rmed(AbstractButton.java:1850)
at
javax.swing.DefaultButtonModel.fireActionPerformed(Default
ButtonModel.java:419)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonMo
del.java:257)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(B
asicButtonListener.java:247)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMul
ticaster.java:227)
at
java.awt.Component.processMouseEvent(Component.java:50
93)
at
java.awt.Component.processEvent(Component.java:4890)
at
java.awt.Container.processEvent(Container.java:1566)
at
java.awt.Component.dispatchEventImpl(Component.java:359
8)
at
java.awt.Container.dispatchEventImpl(Container.java:1623)
at
java.awt.Component.dispatchEvent(Component.java:3439)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Containe
r.java:3450)
at
java.awt.LightweightDispatcher.processMouseEvent(Containe
r.java:3165)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java
:3095)
at
java.awt.Container.dispatchEventImpl(Container.java:1609)
at
java.awt.Window.dispatchEventImpl(Window.java:1585)
at
java.awt.Component.dispatchEvent(Component.java:3439)
at
java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(E
ventDispatchThread.java:230)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Eve
ntDispatchThread.java:183)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThr
ead.java:177)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThr
ead.java:169)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java
:99)

Discussion

  • Dan Smith

    Dan Smith - 2005-02-01

    Logged In: YES
    user_id=1060117

    This is due to an error in Mac OS X's implementation of the GUI.
    We have only seen this bug under version 10.2. Is that the
    version of Mac OS X that you're using?

    The workaround is to select something besides
    "apple.laf.AquaLookAndFeel" under DrJava -- Preferences --
    Display Options -- Look and Feel. You lose the nice Aqua-like
    interface, but that's where the bug is. We may try to avoid using
    the broken look and feel code in the future, but for now this is
    your best option.

    See bug #992525 for more details.

     
  • Nobody/Anonymous

    Logged In: NO

    I saw a similar bug using DrJava 20050806-2057 under MacOS 10.4.2. I
    opened DrJava (clicked on its dock icon), the clicked the "open" button
    and navigated to the directory I wanted. I hit apple-a to select all the
    files in the directory (all .java source files), and clicked "open" in the
    dialoge box, yeilding the following. Clicking "open" and using apple-a
    failed to reproduce the bug; however quitting a re-opening DrJava and
    doing the same did reproduce the bug.

    Exact steps (including mouse clicks, since window focus may be an
    issue):
    Click on DrJava in dock
    Click "open" button in DrJava window
    Press command (apple), then tap a to select all
    Click in the dialoge box to get the "Open" button to turn blue
    Press return to open the files
    Get error messsage

    ...and it does look like the key variable is having the dialoge box coming
    up without focus, then clicking in.

    Contact: naib.webhop.org/emailme.php

    java.lang.ArrayIndexOutOfBoundsException: 5 >= 5
    at java.util.Vector.elementAt(Vector.java:432)
    at apple.laf.AquaDirectoryModel.getValueAt
    (AquaDirectoryModel.java:227)
    at apple.laf.AquaFileChooserUI
    $MacListSelectionModel.isSelectableInListIndex
    (AquaFileChooserUI.java:2318)
    at apple.laf.AquaFileChooserUI
    $MacListSelectionModel.addSelectionInterval(AquaFileChooserUI.java:
    2390)
    at javax.swing.JTable.selectAll(JTable.java:1323)
    at javax.swing.plaf.basic.BasicTableUI$Actions.actionPerformed
    (BasicTableUI.java:541)
    at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1576)
    at javax.swing.JComponent.processKeyBinding(JComponent.java:
    2730)
    at javax.swing.JTable.processKeyBinding(JTable.java:3458)
    at javax.swing.JComponent.processKeyBindings(JComponent.java:
    2776)
    at javax.swing.JComponent.processKeyEvent(JComponent.java:
    2693)
    at java.awt.Component.processEvent(Component.java:5339)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4029)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3877)
    at java.awt.KeyboardFocusManager.redispatchEvent
    (KeyboardFocusManager.java:1810)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent
    (DefaultKeyboardFocusManager.java:668)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent
    (DefaultKeyboardFocusManager.java:916)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions
    (DefaultKeyboardFocusManager.java:794)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent
    (DefaultKeyboardFocusManager.java:632)
    at java.awt.Component.dispatchEventImpl(Component.java:3915)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Window.dispatchEventImpl(Window.java:1766)
    at java.awt.Component.dispatchEvent(Component.java:3877)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (EventDispatchThread.java:267)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy
    (EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy
    (EventDispatchThread.java:186)
    at java.awt.Dialog$1.run(Dialog.java:515)
    at java.awt.Dialog.show(Dialog.java:536)
    at javax.swing.JFileChooser.showDialog(JFileChooser.java:717)
    at javax.swing.JFileChooser.showOpenDialog(JFileChooser.java:
    620)
    at edu.rice.cs.drjava.ui.MainFrame.getOpenFiles(MainFrame.java:
    2089)
    at edu.rice.cs.drjava.ui.MainFrame$3.getFiles(MainFrame.java:272)
    at edu.rice.cs.drjava.ui.MainFrame._openFileOrProject
    (MainFrame.java:2246)
    at edu.rice.cs.drjava.ui.MainFrame.access$1700(MainFrame.java:
    95)
    at edu.rice.cs.drjava.ui.MainFrame$16.actionPerformed
    (MainFrame.java:415)
    at javax.swing.AbstractButton.fireActionPerformed
    (AbstractButton.java:1882)
    at javax.swing.AbstractButton$Handler.actionPerformed
    (AbstractButton.java:2202)
    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:234)
    at java.awt.AWTEventMulticaster.mouseReleased
    (AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5562)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:
    3093)
    at java.awt.Component.processEvent(Component.java:5327)
    at java.awt.Container.processEvent(Container.java:2010)
    at java.awt.Component.dispatchEventImpl(Component.java:4029)
    at java.awt.Container.dispatchEventImpl(Container.java:2068)
    at java.awt.Component.dispatchEvent(Component.java:3877)
    at java.awt.LightweightDispatcher.retargetMouseEvent
    (Container.java:4256)
    at java.awt.LightweightDispatcher.processMouseEvent
    (Container.java:3936)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:
    3866)
    at java.awt.Container.dispatchEventImpl(Container.java:2054)
    at java.awt.Window.dispatchEventImpl(Window.java:1766)
    at java.awt.Component.dispatchEvent(Component.java:3877)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (EventDispatchThread.java:267)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy
    (EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents
    (EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents
    (EventDispatchThread.java:182)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:
    110)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.