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 171198 - com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames
Summary: com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ThreadRefer...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-31 17:52 UTC by rhinoguy
Modified: 2010-02-11 06:43 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 157478


Attachments
stacktrace (576 bytes, text/plain)
2009-08-31 17:52 UTC, rhinoguy
Details
stacktrace (576 bytes, text/plain)
2009-11-03 18:48 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rhinoguy 2009-08-31 17:52:18 UTC
This issue was originally marked as duplicate of issue 158750, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE Dev (Build 200908210201)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows 7, 6.1, x86

User Comments:
stefan79: Step by step - Debugging

GUEST: 'Continue' while debugging

rhinoguy: Pressed my HotKey (F10) to step over a breakpoint.

GUEST: When I debug my multi-threaded desktop application I get this exception often when I try to do a debugging session.

fzamboj: This one happened when I was stepping over method in java.awt.Container.java

GUEST: (I changed debugging options)
Set breakpoint before running program
Hit breakpoint
Step over

GUEST: debugging a test file. JMS based project

GUEST: Placed a breakpoint - app broke - then tried to step over line in debugger - instead of stepping over - action acted like a "continue" where the application is now running

cyhelsky: on step over while debugging netbeans

limo42: Hit 'Step Over' after hitting a breakpoint

GUEST: debugging

GUEST: ARrrrrrrggggg Can't work like this anymore

tkhh: changed the Java debugging options to stop all threads at breakpoint and to resume all threads at step forward.
Since then breakpoints in debugging are effectively no longer correctly working, probably due to this error occuring when pushing next step after the first breakpoint was hit.

mgoe: I was trying to continue a program which has stopped at a breakpoint.

bburette: Pressing F8 to step over



Stacktrace: 
com.sun.jdi.IncompatibleThreadStateException
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:365)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:277)
        at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.frame(ThreadReferenceWrapper.java:132)
        at org.netbeans.modules.debugger.jpda.actions.StepActionProvider.exec(StepActionProvider.java:364)
        at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:433)
        at java.lang.Thread.run(Thread.java:619)
Comment 1 rhinoguy 2009-08-31 17:52:33 UTC
Created attachment 86874 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-08-31 17:52:38 UTC
This issue already has 21 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=157478
Comment 3 Martin Entlicher 2009-09-01 11:09:08 UTC
It's apparent that the fix of issue #158750 was not good enough...
Comment 4 Martin Entlicher 2009-09-03 16:47:27 UTC
Moving to P3 - there are just 3 duplicates from 6.8 dev. The rest belongs to issue #158750.
We will try to analyze how this can happen, any steps that leads to this error are welcomed.
Comment 5 alied 2009-11-03 18:48:17 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-4202-on-091103)
VM: Java HotSpot(TM) Client VM, 16.0-b06, Java(TM) SE Runtime Environment, 1.7.0-ea-b66
OS: Windows Vista, 6.0, x86

User Comments: 
stepping thru
the debugger stopped ina a breakpoint, and exception raised.
this is the second time I try to debug.
first time, instead of stepping, it just continued.

Stacktrace: 
com.sun.jdi.IncompatibleThreadStateException
        at com.sun.tools.jdi.ThreadReferenceImpl.privateFrames(ThreadReferenceImpl.java:436)
        at com.sun.tools.jdi.ThreadReferenceImpl.frame(ThreadReferenceImpl.java:355)
        at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.frame(ThreadReferenceWrapper.java:132)
        at org.netbeans.modules.debugger.jpda.actions.StepActionProvider.exec(StepActionProvider.java:364)
        at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:447)
        at java.lang.Thread.run(Thread.java:717)
Comment 6 alied 2009-11-03 18:48:21 UTC
Created attachment 90462 [details]
stacktrace
Comment 7 Martin Entlicher 2010-02-11 06:43:41 UTC
This was likely fixed by changeset:   159887:eda9ba0c105e along with issue #156408
http://hg.netbeans.org/main/rev/eda9ba0c105e