#263 runtime exception occured

closed
nobody
Other (88)
5
2015-01-14
2004-04-14
Anonymous
No

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)

Discussion

  • James Hsia

    James Hsia - 2004-04-14

    Logged In: YES
    user_id=557360

    Can you tell us if you had multiple documents open? Is this
    bug reproducible? If so, a copy of the files open when this
    occurs would be extremely helpful!

    James

     
  • Michael Dyrby Jensen

    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks