From: SourceForge.net <no...@so...> - 2006-04-11 21:49:17
|
Bugs item #1468880, was opened at 2006-04-11 14:49 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1468880&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: 5: Makes DrJ unstable Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Dr. Java compiling runtime error Initial Comment: I was attempting to compile, and right after I hit the menu bar compile button I got a runtime error: edu.rice.cs.util.UnexpectedException: edu.rice.cs.util.UnexpectedException: javax.swing.text.BadLocationException: Invalid location at edu.rice.cs.drjava.model.AbstractGlobalModel.setActiveDocument (AbstractGlobalModel.java:3047) at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFiles (AbstractGlobalModel.java:1015) at edu.rice.cs.drjava.ui.MainFrame._saveAll(MainFrame.java:2677) at edu.rice.cs.drjava.ui.MainFrame.access$2600(MainFrame.java: 85) at edu.rice.cs.drjava.ui.MainFrame $ModelListener._saveAllBeforeProceeding(MainFrame.java:5869) at edu.rice.cs.drjava.ui.MainFrame$ModelListener.access$13800 (MainFrame.java:5362) at edu.rice.cs.drjava.ui.MainFrame$ModelListener$26.run (MainFrame.java:5818) at edu.rice.cs.util.swing.Utilities.invokeAndWait(Utilities.java:59) at edu.rice.cs.drjava.ui.MainFrame $ModelListener.saveBeforeCompile(MainFrame.java:5816) at edu.rice.cs.drjava.model.GlobalEventNotifier.saveBeforeCompile (GlobalEventNotifier.java:359) at edu.rice.cs.drjava.model.compiler.CompilerEventNotifier.saveBeforeCo mpile(CompilerEventNotifier.java:104) at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compile (DefaultCompilerModel.java:200) at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compileAll (DefaultCompilerModel.java:144) at edu.rice.cs.drjava.ui.MainFrame._compileAll(MainFrame.java: 2981) at edu.rice.cs.drjava.ui.MainFrame.access$3900(MainFrame.java: 85) at edu.rice.cs.drjava.ui.MainFrame$42.actionPerformed (MainFrame.java:649) 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.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:480) 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) Caused by: edu.rice.cs.util.UnexpectedException: javax.swing.text.BadLocationException: Invalid location at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset (CompilerErrorModel.java:247) at edu.rice.cs.drjava.ui.ErrorCaretListener.updateHighlight (ErrorCaretListener.java:89) at edu.rice.cs.drjava.ui.ErrorCaretListener.caretUpdate (ErrorCaretListener.java:67) at javax.swing.text.JTextComponent.fireCaretUpdate (JTextComponent.java:356) at javax.swing.text.JTextComponent$MutableCaretEvent.fire (JTextComponent.java:3165) at javax.swing.text.JTextComponent $MutableCaretEvent.stateChanged(JTextComponent.java:3187) at javax.swing.text.DefaultCaret.fireStateChanged (DefaultCaret.java:638) at javax.swing.text.DefaultCaret.changeCaretPosition (DefaultCaret.java:1010) at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java: 918) at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:899) at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:827) at javax.swing.text.DefaultCaret$UpdateHandler.propertyChange (DefaultCaret.java:1552) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange (SwingPropertyChangeSupport.java:264) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange (SwingPropertyChangeSupport.java:232) at javax.swing.JComponent.firePropertyChange(JComponent.java: 3851) at javax.swing.text.JTextComponent.setDocument (JTextComponent.java:401) at javax.swing.JTextPane.setDocument(JTextPane.java:110) at edu.rice.cs.drjava.ui.DefinitionsPane.notifyInactive (DefinitionsPane.java:851) at edu.rice.cs.drjava.ui.MainFrame._switchDefScrollPane (MainFrame.java:4783) at edu.rice.cs.drjava.ui.MainFrame$ModelListener$7.run (MainFrame.java:5472) at edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:51) at edu.rice.cs.drjava.ui.MainFrame $ModelListener.activeDocumentChanged(MainFrame.java:5469) at edu.rice.cs.drjava.model.GlobalEventNotifier.activeDocumentChanged (GlobalEventNotifier.java:253) at edu.rice.cs.drjava.model.AbstractGlobalModel.refreshActiveDocument (AbstractGlobalModel.java:3127) at edu.rice.cs.drjava.model.AbstractGlobalModel._setActiveDoc (AbstractGlobalModel.java:3117) at edu.rice.cs.drjava.model.AbstractGlobalModel.access$000 (AbstractGlobalModel.java:130) at edu.rice.cs.drjava.model.AbstractGlobalModel$1.itemCase (AbstractGlobalModel.java:295) at edu.rice.cs.drjava.model.AbstractGlobalModel$1.itemCase (AbstractGlobalModel.java:316) at edu.rice.cs.util.docnavigation.JListNavigator$1$1$2.execute (JListNavigator.java:109) at edu.rice.cs.drjava.model.AbstractGlobalModel $2.gainedSelection(AbstractGlobalModel.java:320) at edu.rice.cs.util.docnavigation.JListNavigator$1$1.run (JListNavigator.java:113) at edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:51) at edu.rice.cs.util.docnavigation.JListNavigator$1.valueChanged (JListNavigator.java:98) at javax.swing.JList.fireSelectionValueChanged(JList.java:1321) at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java: 1335) at javax.swing.DefaultListSelectionModel.fireValueChanged (DefaultListSelectionModel.java:187) at javax.swing.DefaultListSelectionModel.fireValueChanged (DefaultListSelectionModel.java:167) at javax.swing.DefaultListSelectionModel.fireValueChanged (DefaultListSelectionModel.java:214) at javax.swing.DefaultListSelectionModel.changeSelection (DefaultListSelectionModel.java:402) at javax.swing.DefaultListSelectionModel.changeSelection (DefaultListSelectionModel.java:411) at javax.swing.DefaultListSelectionModel.setSelectionInterval (DefaultListSelectionModel.java:435) at javax.swing.JList.setSelectedIndex(JList.java:1733) at javax.swing.JList.setSelectedValue(JList.java:1832) at edu.rice.cs.util.docnavigation.JListNavigator.setActiveDoc (JListNavigator.java:232) at edu.rice.cs.drjava.model.AbstractGlobalModel$16.run (AbstractGlobalModel.java:3044) at edu.rice.cs.util.swing.Utilities.invokeAndWait(Utilities.java:59) at edu.rice.cs.drjava.model.AbstractGlobalModel.setActiveDocument (AbstractGlobalModel.java:3043) ... 39 more Caused by: javax.swing.text.BadLocationException: Invalid location at javax.swing.text.GapContent.getChars(GapContent.java:172) at javax.swing.text.GapContent.getString(GapContent.java:150) at javax.swing.text.AbstractDocument.getText (AbstractDocument.java:772) at edu.rice.cs.drjava.model.AbstractGlobalModel $ConcreteOpenDefDoc.getText(AbstractGlobalModel.java:2629) at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset (CompilerErrorModel.java:244) ... 85 more Caused by: edu.rice.cs.util.UnexpectedException: javax.swing.text.BadLocationException: Invalid location at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset (CompilerErrorModel.java:247) at edu.rice.cs.drjava.ui.ErrorCaretListener.updateHighlight (ErrorCaretListener.java:89) at edu.rice.cs.drjava.ui.ErrorCaretListener.caretUpdate (ErrorCaretListener.java:67) at javax.swing.text.JTextComponent.fireCaretUpdate (JTextComponent.java:356) at javax.swing.text.JTextComponent$MutableCaretEvent.fire (JTextComponent.java:3165) at javax.swing.text.JTextComponent $MutableCaretEvent.stateChanged(JTextComponent.java:3187) at javax.swing.text.DefaultCaret.fireStateChanged (DefaultCaret.java:638) at javax.swing.text.DefaultCaret.changeCaretPosition (DefaultCaret.java:1010) at javax.swing.text.DefaultCaret.handleSetDot(DefaultCaret.java: 918) at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:899) at javax.swing.text.DefaultCaret.setDot(DefaultCaret.java:827) at javax.swing.text.DefaultCaret$UpdateHandler.propertyChange (DefaultCaret.java:1552) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange (SwingPropertyChangeSupport.java:264) at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange (SwingPropertyChangeSupport.java:232) at javax.swing.JComponent.firePropertyChange(JComponent.java: 3851) at javax.swing.text.JTextComponent.setDocument (JTextComponent.java:401) at javax.swing.JTextPane.setDocument(JTextPane.java:110) at edu.rice.cs.drjava.ui.DefinitionsPane.notifyInactive (DefinitionsPane.java:851) at edu.rice.cs.drjava.ui.MainFrame._switchDefScrollPane (MainFrame.java:4783) at edu.rice.cs.drjava.ui.MainFrame$ModelListener$7.run (MainFrame.java:5472) at edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:51) at edu.rice.cs.drjava.ui.MainFrame $ModelListener.activeDocumentChanged(MainFrame.java:5469) at edu.rice.cs.drjava.model.GlobalEventNotifier.activeDocumentChanged (GlobalEventNotifier.java:253) at edu.rice.cs.drjava.model.AbstractGlobalModel.refreshActiveDocument (AbstractGlobalModel.java:3127) at edu.rice.cs.drjava.model.AbstractGlobalModel._setActiveDoc (AbstractGlobalModel.java:3117) at edu.rice.cs.drjava.model.AbstractGlobalModel.access$000 (AbstractGlobalModel.java:130) at edu.rice.cs.drjava.model.AbstractGlobalModel$1.itemCase (AbstractGlobalModel.java:295) at edu.rice.cs.drjava.model.AbstractGlobalModel$1.itemCase (AbstractGlobalModel.java:316) at edu.rice.cs.util.docnavigation.JListNavigator$1$1$2.execute (JListNavigator.java:109) at edu.rice.cs.drjava.model.AbstractGlobalModel $2.gainedSelection(AbstractGlobalModel.java:320) at edu.rice.cs.util.docnavigation.JListNavigator$1$1.run (JListNavigator.java:113) at edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:51) at edu.rice.cs.util.docnavigation.JListNavigator$1.valueChanged (JListNavigator.java:98) at javax.swing.JList.fireSelectionValueChanged(JList.java:1321) at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java: 1335) at javax.swing.DefaultListSelectionModel.fireValueChanged (DefaultListSelectionModel.java:187) at javax.swing.DefaultListSelectionModel.fireValueChanged (DefaultListSelectionModel.java:167) at javax.swing.DefaultListSelectionModel.fireValueChanged (DefaultListSelectionModel.java:214) at javax.swing.DefaultListSelectionModel.changeSelection (DefaultListSelectionModel.java:402) at javax.swing.DefaultListSelectionModel.changeSelection (DefaultListSelectionModel.java:411) at javax.swing.DefaultListSelectionModel.setSelectionInterval (DefaultListSelectionModel.java:435) at javax.swing.JList.setSelectedIndex(JList.java:1733) at javax.swing.JList.setSelectedValue(JList.java:1832) at edu.rice.cs.util.docnavigation.JListNavigator.setActiveDoc (JListNavigator.java:232) at edu.rice.cs.drjava.model.AbstractGlobalModel$16.run (AbstractGlobalModel.java:3044) at edu.rice.cs.util.swing.Utilities.invokeAndWait(Utilities.java:59) at edu.rice.cs.drjava.model.AbstractGlobalModel.setActiveDocument (AbstractGlobalModel.java:3043) at edu.rice.cs.drjava.model.AbstractGlobalModel.saveAllFiles (AbstractGlobalModel.java:1015) at edu.rice.cs.drjava.ui.MainFrame._saveAll(MainFrame.java:2677) at edu.rice.cs.drjava.ui.MainFrame.access$2600(MainFrame.java: 85) at edu.rice.cs.drjava.ui.MainFrame $ModelListener._saveAllBeforeProceeding(MainFrame.java:5869) at edu.rice.cs.drjava.ui.MainFrame$ModelListener.access$13800 (MainFrame.java:5362) at edu.rice.cs.drjava.ui.MainFrame$ModelListener$26.run (MainFrame.java:5818) at edu.rice.cs.util.swing.Utilities.invokeAndWait(Utilities.java:59) at edu.rice.cs.drjava.ui.MainFrame $ModelListener.saveBeforeCompile(MainFrame.java:5816) at edu.rice.cs.drjava.model.GlobalEventNotifier.saveBeforeCompile (GlobalEventNotifier.java:359) at edu.rice.cs.drjava.model.compiler.CompilerEventNotifier.saveBeforeCo mpile(CompilerEventNotifier.java:104) at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compile (DefaultCompilerModel.java:200) at edu.rice.cs.drjava.model.compiler.DefaultCompilerModel.compileAll (DefaultCompilerModel.java:144) at edu.rice.cs.drjava.ui.MainFrame._compileAll(MainFrame.java: 2981) at edu.rice.cs.drjava.ui.MainFrame.access$3900(MainFrame.java: 85) at edu.rice.cs.drjava.ui.MainFrame$42.actionPerformed (MainFrame.java:649) 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.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:480) 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) Caused by: javax.swing.text.BadLocationException: Invalid location at javax.swing.text.GapContent.getChars(GapContent.java:172) at javax.swing.text.GapContent.getString(GapContent.java:150) at javax.swing.text.AbstractDocument.getText (AbstractDocument.java:772) at edu.rice.cs.drjava.model.AbstractGlobalModel $ConcreteOpenDefDoc.getText(AbstractGlobalModel.java:2629) at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset (CompilerErrorModel.java:244) ... 85 more ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1468880&group_id=44253 |