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 98012 - Endless exception in Threads view.
Summary: Endless exception in Threads view.
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-15 17:05 UTC by Peter Pis
Modified: 2007-03-21 11:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The proposed fix. Silently ignore the strange exception like others. (1.05 KB, patch)
2007-03-15 17:37 UTC, Martin Entlicher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Pis 2007-03-15 17:05:43 UTC
Steps:
MemoryView test application.
1. start debugging
2. stop on a breakpoint
3. open threads view
4. invoke Continue action - the application should run in debug mode without
stopping

The exception is thrown periodically. It is hard to stop debugger or close
Threads view because the exception dialog is modal and after closing of one
another is opened.

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.getContendedMonitor(JPDAThreadImpl.java:392)
        at
org.netbeans.modules.debugger.jpda.ui.models.MonitorModel.getChildren(MonitorModel.java:107)
        at
org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:590)
        at
org.netbeans.spi.viewmodel.Models$CompoundModel.getChildren(Models.java:2208)
[catch] at
org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:522)
        at
org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:907)
Comment 1 Martin Entlicher 2007-03-15 17:33:47 UTC
This is a part of a more complex problem described in issue #96519.
I plan to create a "masking" fix specifically for 5.5.1 release, since the
complex fix of issue #96519 is too risky.

Thus we will just silently catch com.sun.jdi.InternalException, similar to other
exceptions which we already catch there.
Comment 2 Martin Entlicher 2007-03-15 17:37:19 UTC
Created attachment 39549 [details]
The proposed fix. Silently ignore the strange exception like others.
Comment 3 Roman Ondruska 2007-03-15 17:48:01 UTC
This is a bug in JDI. Proposed solution is the only way NB debugger can
work-around it, the fix is safe enough for integration into NB 5.5.1.
Comment 4 Martin Entlicher 2007-03-16 18:14:00 UTC
Fixed in release551:

/shared/data/ccvs/repository/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/JPDAThreadImpl.java,v
 <--  JPDAThreadImpl.java
new revision: 1.13.2.1.2.1.22.1; previous revision: 1.13.2.1.2.1
Comment 5 ehucka 2007-03-19 18:10:00 UTC
Continue with steps:

5. toggle breakpoint somewhere and let debugger to stop
6. invoke step over

Result: there is some timeout which blocks debugger for about 10 seconds,
threads view contains 'Please wait...' in this time.
Is it possible to do something with it? 

But timeout is definitely better than endless exceptions :).
Comment 6 Peter Pis 2007-03-21 11:38:50 UTC
Verified.