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 219982

Summary: IllegalStateException: Different suspend counts! JPDA Thread = 2, thread instance of java.lang.Thread(name='main', id=1) = 1
Product: debugger Reporter: Chiana
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 193458
Attachments: stacktrace

Description Chiana 2012-10-12 10:32:51 UTC
Build: NetBeans IDE Dev (Build 201210110002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
Chiana: Occured while debugging a package that involves heavy synchronization and Thread creation/deletion. My guess is that this occured because one of the treads finished between step and next instruction in the main thread.




Stacktrace: 
java.lang.IllegalStateException: Different suspend counts! JPDA Thread = 2, thread instance of java.lang.Thread(name='main', id=1) = 1
   at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.notifyMethodInvoking(JPDAThreadImpl.java:1295)
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:998)
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:962)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:594)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:531)
   at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.substitute(BreakpointOutput.java:334)
Comment 1 Chiana 2012-10-12 10:32:54 UTC
Created attachment 125842 [details]
stacktrace
Comment 2 Martin Entlicher 2012-10-23 09:58:58 UTC

*** This bug has been marked as a duplicate of bug 214331 ***