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 245689 - 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
Summary: IllegalStateException: Different suspend counts! JPDA Thread = 1, thread inst...
Status: RESOLVED DUPLICATE of bug 241071
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-15 11:40 UTC by markiewb
Modified: 2014-07-22 15:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191162


Attachments
stacktrace (4.27 KB, text/plain)
2014-07-15 11:40 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2014-07-15 11:40:34 UTC
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)
Comment 1 markiewb 2014-07-15 11:40:36 UTC
Created attachment 148064 [details]
stacktrace
Comment 2 Martin Entlicher 2014-07-22 15:39:21 UTC

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