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.
Build: NetBeans IDE Dev (Build 201407090001) VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b70, Java(TM) SE Runtime Environment, 1.8.0-b132 OS: Windows 7 User Comments: GUEST: I was debugging an APP with 8 threads, suspending and running each thread, one by one, in order to find the bug. When the thread tried to access a synchronized Hibernate Session, this exception happened. tomzi: . markiewb: Happens when breakpoint is first hit. In NB dev build tomzi: new debug session Stacktrace: java.lang.IllegalStateException: Different suspend counts! JPDA Thread = 1, thread instance of org.apache.tomcat.util.threads.TaskThread(name='http-bio-8080-exec-4', id=11) = 2, thread's state: Thread 'http-bio-8080-exec-4': status = 1, is suspended = true, suspend count = 2, is at breakpoint = true at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.notifyMethodInvoking(JPDAThreadImpl.java:1325) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl$1.run(JPDADebuggerImpl.java:939) at org.netbeans.spi.debugger.jpda.Evaluator$Context.notifyMethodToBeInvoked(Evaluator.java:231) at org.netbeans.modules.debugger.jpda.JavaEvaluator$1.run(JavaEvaluator.java:94) at org.netbeans.modules.debugger.jpda.expr.EvaluationContext.methodToBeInvoked(EvaluationContext.java:203) at org.netbeans.modules.debugger.jpda.expr.EvaluatorVisitor.invokeMethod(EvaluatorVisitor.java:3675)
Created attachment 148064 [details] stacktrace
*** This bug has been marked as a duplicate of bug 241071 ***