This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 252248

Summary: IllegalThreadStateException at com.sun.tools.jdi.JDWPException.toJDIException
Product: debugger Reporter: Martin Entlicher <mentlicher>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217129
Attachments: stacktrace

Description Martin Entlicher 2015-05-05 15:06:59 UTC
Build: NetBeans IDE Dev (Build 20150505-22969547375f)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b12, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b12
OS: Linux

User Comments:
mentlicher: Stepping into a script engine's eval().




Stacktrace: 
java.lang.IllegalThreadStateException
   at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:63)
   at com.sun.tools.jdi.ThreadReferenceImpl.interrupt(ThreadReferenceImpl.java:262)
   at org.netbeans.modules.debugger.jpda.truffle.StepIntoScriptHandler$CurrentSFTracker.propertyChange(StepIntoScriptHandler.java:152)
   at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
   at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328)
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.firePropertyChange(JPDADebuggerImpl.java:2199)
Comment 1 Martin Entlicher 2015-05-05 15:07:03 UTC
Created attachment 153529 [details]
stacktrace
Comment 2 Martin Entlicher 2015-05-05 15:12:50 UTC
Trying to interrupt a thread, which is probably suspended at the moment.
Comment 3 Martin Entlicher 2015-05-05 16:09:01 UTC
Fixed by changeset:   287493:4d2f24d43ffd
http://hg.netbeans.org/core-main/rev/4d2f24d43ffd
Comment 4 Quality Engineering 2015-05-07 03:27:37 UTC
Integrated into 'main-silver', will be available in build *201505070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4d2f24d43ffd
User: mentlicher@netbeans.org
Log: #252248: A utility method that safely interrupts an access thread is added.