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 080723) VM: Java HotSpot(TM) Client VM, 11.0-b14, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b27 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1055) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:81) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
*** Issue 141646 has been marked as a duplicate of this issue. ***
Fixed. changeset f8ecb6bca0d6 in main details: http://hg.netbeans.org/main?cmd=changeset;node=f8ecb6bca0d6
Reopening - reproduced in NetBeans IDE 6.5 Beta (Build 200808111757) http://statistics.netbeans.org/exceptions/detail.do?id=79550
*** Issue 156578 has been marked as a duplicate of this issue. ***
Error 13 means THREAD_NOT_SUSPENDED - "If the specified thread has not been suspended by an event." It's hard to believe though that the thread must be suspended by an event in order to get the current contended monitor. IMHO suspended state is enough. Better synchronization is necessary.
Build: NetBeans IDE Dev (Build 200902010201) VM: Java HotSpot(TM) Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.currentContendedMonitor(ThreadReferenceWrapper.java:60) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1197) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 76518 [details] stacktrace
Build: NetBeans IDE Dev (Build 20090206071818) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.6, x86_64 User Comments: Applying code changes Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.currentContendedMonitor(ThreadReferenceWrapper.java:60) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1202) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 76797 [details] stacktrace
Build: NetBeans IDE Dev (Build 200902091451) VM: Java HotSpot(TM) 64-Bit Server VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03 OS: Linux, 2.6.27-11-generic, amd64 User Comments: was using F8 while debugging Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.currentContendedMonitor(ThreadReferenceWrapper.java:60) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1202) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 76812 [details] stacktrace
Build: NetBeans IDE Dev (Build 20090206071818) VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153 OS: Mac OS X, 10.5.6, x86_64 User Comments: Neverending stream of exceptions while having debugger session active. Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.currentContendedMonitor(ThreadReferenceWrapper.java:60) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1202) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 77096 [details] stacktrace
Build: NetBeans IDE Dev (Build 20090321211250) VM: OpenJDK Client VM, 14.0-b10, Java(TM) SE Runtime Environment, 1.6.0_14-ea-b01 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.currentContendedMonitor(ThreadReferenceWrapper.java:60) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1220) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 78645 [details] stacktrace
153 duplicates so far ... P2
Unexpected JDWP Error: 13 is clearly a defect of JDI, not NetBeans. Unfortunately we can not expect this to be fixed, thus we must find what exactly triggers this and what JDI/JDWP expects. After that we can try to create a workaround.
The documentation is really poor, http://java.sun.com/javase/6/docs/platform/jpda/jdwp/jdwp-protocol.html#JDWP_ThreadReference_CurrentContendedMonitor says that the thread must be suspended, but THREAD_NOT_SUSPENDED is not listed in it's error codes. I've submitted http://bugs.sun.com/view_bug.do?bug_id=6822609 for the poor JDWP documentation. And http://bugs.sun.com/view_bug.do?bug_id=6822613 for InternalException being thrown.
Workarounded in changeset: 123880:f69f00b6ffa7 http://hg.netbeans.org/main/rev/f69f00b6ffa7
Integrated into 'main-golden', will be available in build *200903281400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/f69f00b6ffa7 User: mentlicher@netbeans.org Log: #141644 - Workaround implemented, instead of "InternalException: Unexpected JDWP Error: 13" we throw the expected "IncompatibleThreadStateException".
verified for netbeans ... hope we can expect fix in jdwp soon ...
Build: NetBeans IDE Dev (Build 200902231810) VM: Java HotSpot(TM) Client VM, 10.0-b19, Java(TM) SE Runtime Environment, 1.6.0_05-b13 OS: Windows XP, 5.1, x86 User Comments: Stacktrace: com.sun.jdi.InternalException: Unexpected JDWP Error: 13 at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47) at com.sun.tools.jdi.ThreadReferenceImpl.currentContendedMonitor(ThreadReferenceImpl.java:433) at org.netbeans.modules.debugger.jpda.jdi.ThreadReferenceWrapper.currentContendedMonitor(ThreadReferenceWrapper.java:60) at org.netbeans.modules.debugger.jpda.models.JPDAThreadImpl.checkForBlockingThreads(JPDAThreadImpl.java:1227) at org.netbeans.modules.debugger.jpda.SingleThreadWatcher.run(SingleThreadWatcher.java:83) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:573)
Created attachment 79492 [details] stacktrace
verified on Product Version: NetBeans IDE 6.7 Beta (Build 200904192254) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02