From: SourceForge.net <no...@so...> - 2004-04-15 20:10:37
|
Bugs item #935208, was opened at 2004-04-14 14:18 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=935208&group_id=44253 Category: Other Group: Could cause data loss Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: runtime exception occured Initial Comment: edu.rice.cs.util.UnexpectedException: javax.swing.text.BadLocationException: Invalid location at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.get ErrorAtOffset(CompilerErrorModel.java:287) at edu.rice.cs.drjava.ui.ErrorCaretListener.updateHighlight (ErrorCaretListener.java:121) at edu.rice.cs.drjava.ui.MainFrame$107.run (MainFrame.java:4335) at edu.rice.cs.drjava.ui.MainFrame$ModelListener.activeDoc umentChanged(MainFrame.java:4386) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel$1.noti fyListener(DefaultSingleDisplayModel.java:450) at edu.rice.cs.drjava.model.GlobalEventNotifier.notifyListene rs(GlobalEventNotifier.java:102) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel._setA ctiveDoc(DefaultSingleDisplayModel.java:444) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel.acces s$300(DefaultSingleDisplayModel.java:95) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel$Selec tionModelListener.valueChanged (DefaultSingleDisplayModel.java:472) at javax.swing.DefaultListSelectionModel.fireValueChanged (Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged (Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged (Unknown Source) at javax.swing.DefaultListSelectionModel.removeIndexInterv al(Unknown Source) at javax.swing.plaf.basic.BasicListUI$ListDataHandler.interva lRemoved(Unknown Source) at javax.swing.AbstractListModel.fireIntervalRemoved (Unknown Source) at javax.swing.DefaultListModel.removeElement (Unknown Source) at edu.rice.cs.drjava.model.DefaultGlobalModel.closeFile (DefaultGlobalModel.java:608) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel.close File(DefaultSingleDisplayModel.java:355) at edu.rice.cs.drjava.model.DefaultGlobalModel.closeAllFiles (DefaultGlobalModel.java:625) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel.close AllFiles(DefaultSingleDisplayModel.java:385) at edu.rice.cs.drjava.model.DefaultGlobalModel.quit (DefaultGlobalModel.java:650) at edu.rice.cs.drjava.ui.MainFrame._quit (MainFrame.java:2055) at edu.rice.cs.drjava.ui.MainFrame.access$2700 (MainFrame.java:103) at edu.rice.cs.drjava.ui.MainFrame$67.windowClosing (MainFrame.java:1208) at java.awt.AWTEventMulticaster.windowClosing(Unknown Source) at java.awt.Window.processWindowEvent (Unknown Source) at javax.swing.JFrame.processWindowEvent (Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl (Unknown Source) at java.awt.Container.dispatchEventImpl (Unknown Source) at java.awt.Window.dispatchEventImpl (Unknown Source) at java.awt.Component.dispatchEvent (Unknown Source) at java.awt.EventQueue.dispatchEvent (Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarch y(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy (Unknown Source) at java.awt.EventDispatchThread.pumpEvents (Unknown Source) at java.awt.EventDispatchThread.pumpEvents (Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: javax.swing.text.BadLocationException: Invalid location at javax.swing.text.GapContent.getChars (Unknown Source) at javax.swing.text.GapContent.getString (Unknown Source) at javax.swing.text.AbstractDocument.getText (Unknown Source) at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.get ErrorAtOffset(CompilerErrorModel.java:280) at edu.rice.cs.drjava.ui.ErrorCaretListener.updateHighlight (ErrorCaretListener.java:121) at edu.rice.cs.drjava.ui.MainFrame$107.run (MainFrame.java:4335) at edu.rice.cs.drjava.ui.MainFrame$ModelListener.activeDoc umentChanged(MainFrame.java:4386) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel$1.noti fyListener(DefaultSingleDisplayModel.java:450) at edu.rice.cs.drjava.model.GlobalEventNotifier.notifyListene rs(GlobalEventNotifier.java:102) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel._setA ctiveDoc(DefaultSingleDisplayModel.java:444) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel.acces s$300(DefaultSingleDisplayModel.java:95) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel$Selec tionModelListener.valueChanged (DefaultSingleDisplayModel.java:472) at javax.swing.DefaultListSelectionModel.fireValueChanged (Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged (Unknown Source) at javax.swing.DefaultListSelectionModel.fireValueChanged (Unknown Source) at javax.swing.DefaultListSelectionModel.removeIndexInterv al(Unknown Source) at javax.swing.plaf.basic.BasicListUI$ListDataHandler.interva lRemoved(Unknown Source) at javax.swing.AbstractListModel.fireIntervalRemoved (Unknown Source) at javax.swing.DefaultListModel.removeElement (Unknown Source) at edu.rice.cs.drjava.model.DefaultGlobalModel.closeFile (DefaultGlobalModel.java:608) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel.close File(DefaultSingleDisplayModel.java:355) at edu.rice.cs.drjava.model.DefaultGlobalModel.closeAllFiles (DefaultGlobalModel.java:625) at edu.rice.cs.drjava.model.DefaultSingleDisplayModel.close AllFiles(DefaultSingleDisplayModel.java:385) at edu.rice.cs.drjava.model.DefaultGlobalModel.quit (DefaultGlobalModel.java:650) at edu.rice.cs.drjava.ui.MainFrame._quit (MainFrame.java:2055) at edu.rice.cs.drjava.ui.MainFrame.access$2700 (MainFrame.java:103) at edu.rice.cs.drjava.ui.MainFrame$67.windowClosing (MainFrame.java:1208) at java.awt.AWTEventMulticaster.windowClosing(Unknown Source) at java.awt.Window.processWindowEvent (Unknown Source) at javax.swing.JFrame.processWindowEvent (Unknown Source) at java.awt.Window.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl (Unknown Source) at java.awt.Container.dispatchEventImpl (Unknown Source) at java.awt.Window.dispatchEventImpl (Unknown Source) at java.awt.Component.dispatchEvent (Unknown Source) at java.awt.EventQueue.dispatchEvent (Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarch y(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy (Unknown Source) at java.awt.EventDispatchThread.pumpEvents (Unknown Source) at java.awt.EventDispatchThread.pumpEvents (Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=935208&group_id=44253 |
From: SourceForge.net <no...@so...> - 2005-10-26 17:28:59
|
Bugs item #1338665, was opened at 2005-10-26 10:28 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=1338665&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: Other Group: Crashes Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: runtime exception occured Initial Comment: As I was compiling unfinished prog - a Simple NIM for my college projects - error occured JDK 1.5.05 if you try to compile the project attached, although it's unfinished, DrJava will trow same error again. See attached Stack Copy: edu.rice.cs.util.UnexpectedException: javax.swing.text.BadLocationException: Invalid location at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset(CompilerErrorModel.java:248) at edu.rice.cs.drjava.ui.ErrorCaretListener.updateHighlight(ErrorCaretListener.java:93) at edu.rice.cs.drjava.ui.ErrorCaretListener.caretUpdate(ErrorCaretListener.java:71) at javax.swing.text.JTextComponent.fireCaretUpdate(Unknown Source) at javax.swing.text.JTextComponent$MutableCaretEvent.fire(Unknown Source) at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(Unknown Source) at javax.swing.text.DefaultCaret.fireStateChanged(Unknown Source) at javax.swing.text.DefaultCaret.changeCaretPosition(Unknown Source) at javax.swing.text.DefaultCaret.handleSetDot(Unknown Source) at javax.swing.text.DefaultCaret.setDot(Unknown Source) at javax.swing.text.DefaultCaret$Handler.removeUpdate(Unknown Source) at javax.swing.text.AbstractDocument.fireRemoveUpdate(Unknown Source) at javax.swing.text.AbstractDocument.handleRemove(Unknown Source) at javax.swing.text.AbstractDocument.remove(Unknown Source) at edu.rice.cs.util.text.SwingDocument.remove(SwingDocument.java:165) at edu.rice.cs.drjava.model.AbstractDJDocument.remove(AbstractDJDocument.java:1442) at edu.rice.cs.drjava.model.definitions.DefinitionsDocument.remove(DefinitionsDocument.java:390) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.clear(AbstractGlobalModel.java:2869) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.revertFile(AbstractGlobalModel.java:2417) at edu.rice.cs.drjava.ui.MainFrame._revert(MainFrame.java:2748) at edu.rice.cs.drjava.ui.MainFrame.access$2800(MainFrame.java:95) at edu.rice.cs.drjava.ui.MainFrame$30.actionPerformed(MainFrame.java:554) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: javax.swing.text.BadLocationException: Invalid location at javax.swing.text.GapContent.getChars(Unknown Source) at javax.swing.text.GapContent.getString(Unknown Source) at javax.swing.text.AbstractDocument.getText(Unknown Source) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.getText(AbstractGlobalModel.java:2652) at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset(CompilerErrorModel.java:245) ... 48 more Caused by: javax.swing.text.BadLocationException: Invalid location at javax.swing.text.GapContent.getChars(Unknown Source) at javax.swing.text.GapContent.getString(Unknown Source) at javax.swing.text.AbstractDocument.getText(Unknown Source) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.getText(AbstractGlobalModel.java:2652) at edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset(CompilerErrorModel.java:245) at edu.rice.cs.drjava.ui.ErrorCaretListener.updateHighlight(ErrorCaretListener.java:93) at edu.rice.cs.drjava.ui.ErrorCaretListener.caretUpdate(ErrorCaretListener.java:71) at javax.swing.text.JTextComponent.fireCaretUpdate(Unknown Source) at javax.swing.text.JTextComponent$MutableCaretEvent.fire(Unknown Source) at javax.swing.text.JTextComponent$MutableCaretEvent.stateChanged(Unknown Source) at javax.swing.text.DefaultCaret.fireStateChanged(Unknown Source) at javax.swing.text.DefaultCaret.changeCaretPosition(Unknown Source) at javax.swing.text.DefaultCaret.handleSetDot(Unknown Source) at javax.swing.text.DefaultCaret.setDot(Unknown Source) at javax.swing.text.DefaultCaret$Handler.removeUpdate(Unknown Source) at javax.swing.text.AbstractDocument.fireRemoveUpdate(Unknown Source) at javax.swing.text.AbstractDocument.handleRemove(Unknown Source) at javax.swing.text.AbstractDocument.remove(Unknown Source) at edu.rice.cs.util.text.SwingDocument.remove(SwingDocument.java:165) at edu.rice.cs.drjava.model.AbstractDJDocument.remove(AbstractDJDocument.java:1442) at edu.rice.cs.drjava.model.definitions.DefinitionsDocument.remove(DefinitionsDocument.java:390) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.clear(AbstractGlobalModel.java:2869) at edu.rice.cs.drjava.model.AbstractGlobalModel$ConcreteOpenDefDoc.revertFile(AbstractGlobalModel.java:2417) at edu.rice.cs.drjava.ui.MainFrame._revert(MainFrame.java:2748) at edu.rice.cs.drjava.ui.MainFrame.access$2800(MainFrame.java:95) at edu.rice.cs.drjava.ui.MainFrame$30.actionPerformed(MainFrame.java:554) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.AbstractButton.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1338665&group_id=44253 |