Exception occurred as a result of selecting and cutting
a number of lines of text within a comment block.
Selection contained some non alphanumeric characters
but that hasn't been a problem in past operations.
Exception reappears after closing the Unexpected Error
dialog upon selecting the problem java file in the
project file structure tree on the left. Not possible
to save changes made to this file so any changes made
could have been lost.
Stack Trace:
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(Unknown
Source)
at
javax.swing.text.JTextComponent$MutableCaretEvent.fire(Unknown
Source)
at
javax.swing.text.JTextComponent$MutableCaretEvent.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.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:2629)
at
edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset(CompilerErrorModel.java:244)
... 27 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:2629)
at
edu.rice.cs.drjava.model.compiler.CompilerErrorModel.getErrorAtOffset(CompilerErrorModel.java:244)
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(Unknown
Source)
at
javax.swing.text.JTextComponent$MutableCaretEvent.fire(Unknown
Source)
at
javax.swing.text.JTextComponent$MutableCaretEvent.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.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)
System Properties:
awt.toolkit sun.awt.windows.WToolkit
file.encoding Cp1252
file.encoding.pkg sun.io
file.separator \
java.awt.graphicsenv sun.awt.Win32GraphicsEnvironment
java.awt.printerjob sun.awt.windows.WPrinterJob
java.class.path C:\Program Files\Dr
Java\drjava.exe;C:\Program
Files\Java\jdk1.5.0_02\lib\tools.jar;
java.class.version 49.0
java.endorsed.dirs C:\Program
Files\Java\jre1.5.0_06\lib\endorsed
java.ext.dirs C:\Program Files\Java\jre1.5.0_06\lib\ext
java.home C:\Program Files\Java\jre1.5.0_06
java.io.tmpdir C:\DOCUME~1\JD\LOCALS~1\Temp\
java.library.path C:\Program
Files\Java\jre1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\ATI Technologies\ATI Control Panel;C:\Program
Files\Microsoft SQL Server\80\Tools\BINN;C:\Program
Files\Java\jdk1.5.0_02\bin;C:\Program
Files\QuickTime\QTSystem\;C:\Program
Files\GNU\GnuPG;C:\Program Files\Common
Files\Adobe\AGL;;C:\Program Files\SSH Communications
Security\SSH Secure Shell
java.rmi.server.hostname 127.0.0.1
java.runtime.name Java(TM) 2 Runtime Environment,
Standard Edition
java.runtime.version 1.5.0_06-b05
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.5
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug
http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.5.0_06
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Client VM
java.vm.specification.name Java Virtual Machine
Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 1.5.0_06-b05
line.separator
os.arch x86
os.name Windows XP
os.version 5.1
path.separator ;
sun.arch.data.model 32
sun.awt.exception.handler
edu.rice.cs.drjava.ui.AWTExceptionHandler
sun.boot.class.path C:\Program
Files\Java\jre1.5.0_06\lib\rt.jar;C:\Program
Files\Java\jre1.5.0_06\lib\i18n.jar;C:\Program
Files\Java\jre1.5.0_06\lib\sunrsasign.jar;C:\Program
Files\Java\jre1.5.0_06\lib\jsse.jar;C:\Program
Files\Java\jre1.5.0_06\lib\jce.jar;C:\Program
Files\Java\jre1.5.0_06\lib\charsets.jar;C:\Program
Files\Java\jre1.5.0_06\classes
sun.boot.library.path C:\Program Files\Java\jre1.5.0_06\bin
sun.cpu.endian little
sun.cpu.isalist pentium_pro+mmx pentium_pro pentium+mmx
pentium i486 i386 i86
sun.desktop windows
sun.io.unicode.encoding UnicodeLittle
sun.jnu.encoding Cp1252
sun.management.compiler HotSpot Client Compiler
sun.os.patch.level Service Pack 2
user.country US
user.dir C:\Documents and Settings\JD\My
Documents\Rice\Academics\COMP 212\Assignments\mbs2a
user.home C:\Documents and Settings\JD
user.language en
user.name JD
user.timezone America/Chicago
user.variant
Logged In: YES
user_id=1075744
Originator: NO
We cannot attempt to fix this bug without more information. Please post another comment detailing what you were doing to cause this to happen. If you have it, please include the information from the DrJava error window.
Thanks,
The DrJava Team
Logged In: YES
user_id=1075744
Originator: NO
Try a newer version of DrJava, we have made many changes in this area.
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).