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 210032 - com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ClassTypeImpl.invokeMethod
Summary: com.sun.jdi.IncompatibleThreadStateException at com.sun.tools.jdi.ClassTypeIm...
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 252730 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-03-24 13:38 UTC by sunbiz
Modified: 2017-04-07 07:10 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185259


Attachments
stacktrace (1.17 KB, text/plain)
2012-03-24 13:38 UTC, sunbiz
Details
stacktrace (1.17 KB, text/plain)
2012-03-31 21:38 UTC, sunbiz
Details
stacktrace (1.17 KB, text/plain)
2012-09-26 13:23 UTC, Jiri Kovalsky
Details
stacktrace (1.17 KB, text/plain)
2012-10-17 09:08 UTC, Jiri Kovalsky
Details
stacktrace (1.17 KB, text/plain)
2012-10-17 09:29 UTC, Jiri Kovalsky
Details
stacktrace (1.17 KB, text/plain)
2013-02-21 15:08 UTC, Petr Cyhelsky
Details
stacktrace (1.17 KB, text/plain)
2013-02-21 15:11 UTC, Petr Cyhelsky
Details
stacktrace (1.17 KB, text/plain)
2013-06-02 13:55 UTC, Martin Entlicher
Details
stacktrace (1.17 KB, text/plain)
2013-08-09 12:53 UTC, Martin Entlicher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sunbiz 2012-03-24 13:38:26 UTC
Build: NetBeans IDE Dev (Build 201203200400)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
sunbiz: Debug app, Pause GUI threads and click on Take GUI Snapshot




Stacktrace: 
com.sun.jdi.IncompatibleThreadStateException
   at com.sun.tools.jdi.ClassTypeImpl.invokeMethod(ClassTypeImpl.java:231)
   at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.invokeMethod(ClassTypeWrapper.java:280)
   at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot$1.run(RemoteAWTScreenshot.java:258)
   at org.netbeans.modules.debugger.jpda.visual.RemoteServices.runOnStoppedThread(RemoteServices.java:396)
   at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.take(RemoteAWTScreenshot.java:234)
   at org.netbeans.modules.debugger.jpda.visual.RemoteAWTScreenshot.takeCurrent(RemoteAWTScreenshot.java:178)
Comment 1 sunbiz 2012-03-24 13:38:27 UTC
Created attachment 117193 [details]
stacktrace
Comment 2 Martin Entlicher 2012-03-26 13:59:35 UTC
The problem likely is, that in order to invoke methods, the thread needs to be paused by an event and not by explicit suspend() call.
We need to find a way how to make it suspended on an event.
Comment 3 sunbiz 2012-03-31 21:38:21 UTC
Created attachment 117597 [details]
stacktrace
Comment 4 Jiri Kovalsky 2012-09-26 13:23:11 UTC
Created attachment 124939 [details]
stacktrace

F7-ed MemoryView project, then pressed F8 but green line disappeared so I pressed Pause which showed the green line back and then Continue and Take GUI Snapshot.
Comment 5 Jiri Kovalsky 2012-10-17 09:08:17 UTC
Created attachment 126061 [details]
stacktrace

started debugging MemoryView project with F7, continued with F8 and F5. Finally decided to "Take GUI Snapshot".
Comment 6 Jiri Kovalsky 2012-10-17 09:29:17 UTC
Created attachment 126064 [details]
stacktrace

started to debug Maven based MemoryView project, then paused it and invoked "Take GUI Snapshot".
Comment 7 Petr Cyhelsky 2013-02-21 15:08:00 UTC
Created attachment 131680 [details]
stacktrace
Comment 8 Exceptions Reporter 2013-02-21 15:08:04 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=185259
Comment 9 Petr Cyhelsky 2013-02-21 15:11:00 UTC
Created attachment 131681 [details]
stacktrace
Comment 10 Exceptions Reporter 2013-02-21 15:11:06 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=185259
Comment 11 Martin Entlicher 2013-06-02 13:55:25 UTC
Created attachment 135226 [details]
stacktrace

Try to take a snapshot of a paused application.
Comment 12 Martin Entlicher 2013-08-09 12:53:16 UTC
Created attachment 138494 [details]
stacktrace

GUI snapshot on paused debugger.
Comment 13 Martin Entlicher 2015-06-02 07:32:15 UTC
*** Bug 252730 has been marked as a duplicate of this bug. ***