Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#415 IllegalStateException whilst debugging

closed-fixed
nobody
Debugger (51)
5
2007-03-08
2005-10-18
George Shore
No

Hey,

I did a bad thing and I typed "System.exit(0)" while
debugging, thinking it'd force the debugee to quit, but
instead I got a runtime exception. Silly me!

Using DrJava version: 20050814-2234, and Sun JDK
1.5.0.05 on a Gentoo 2005.0 box

Hope this all helps,

:o)
G.
-------
Stack Trace:
java.lang.IllegalStateException: Same thread cannot
read or write multiple times! (Would cause deadlock.)
at
edu.rice.cs.util.ReaderWriterLock._ensureNotAlreadyRunning(ReaderWriterLock.java:281)
at
edu.rice.cs.util.ReaderWriterLock.startWrite(ReaderWriterLock.java:202)
at
edu.rice.cs.drjava.model.EventNotifier.removeListener(EventNotifier.java:87)
at
edu.rice.cs.drjava.model.AbstractGlobalModel.removeListener(AbstractGlobalModel.java:724)
at
edu.rice.cs.drjava.model.debug.JPDADebugger.shutdown(JPDADebugger.java:322)
at
edu.rice.cs.drjava.ui.MainFrame$ModelListener$24.run(MainFrame.java:5713)
at
edu.rice.cs.util.swing.Utilities.invokeLater(Utilities.java:51)
at
edu.rice.cs.drjava.ui.MainFrame$ModelListener.interpreterResetting(MainFrame.java:5727)
at
edu.rice.cs.drjava.model.GlobalEventNotifier.interpreterResetting(GlobalEventNotifier.java:295)
at
edu.rice.cs.drjava.model.repl.InteractionsEventNotifier.interpreterResetting(InteractionsEventNotifier.java:97)
at
edu.rice.cs.drjava.model.repl.DefaultInteractionsModel$6.run(DefaultInteractionsModel.java:152)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Discussion

  • Logged In: YES
    user_id=666678
    Originator: NO

    Fixed in the latest stable at http://www.drjava.org/

     
    • status: open --> closed-fixed