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 103129 - com.sun.jdi.InternalException: Unexpected JDWP Error: 32
Summary: com.sun.jdi.InternalException: Unexpected JDWP Error: 32
Status: STARTED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-02 13:45 UTC by ehucka
Modified: 2009-12-02 07:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2007-05-02 13:46:02 UTC
NetBeans IDE 6.0 Preview (M9, build 070501)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.16-1.2122_FC5 running on i386
en_US (nb); UTF-8


The exception is thrown when switch to Local Variables or Call Stack views of
paused debugger.

Steps:

1. start debugging
2. stop on a breakpoint
3. browse call stack
4. remove all breakpoints
5. press Continue button
6. press Pause button - usually a Thread.java is opened (sleep/wait)
7. switch to Local Variables view




com.sun.jdi.InternalException: Unexpected JDWP Error: 32
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47)
        at
com.sun.tools.jdi.StackFrameImpl.getArgumentValues(StackFrameImpl.java:343)
Caused: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
[catch] at
org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getArgumentValues(CallStackFrameImpl.java:381)
        at
org.netbeans.modules.debugger.jpda.models.CallStackFrameImpl.getMethodArguments(CallStackFrameImpl.java:259)
        at
org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getLocalVariables(LocalsTreeModel.java:447)
        at
org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getLocalVariables(LocalsTreeModel.java:383)
        at
org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildrenImpl(LocalsTreeModel.java:107)
        at
org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildren(LocalsTreeModel.java:94)
        at
org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(Models.java:1010)
        at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilterSI.getChildren(VariablesTreeModelFilterSI.java:143)
        at
org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:590)
        at
org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildren(VariablesTreeModelFilter.java:165)
        at
org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:590)
        at
org.netbeans.spi.viewmodel.Models$CompoundModel.getChildren(Models.java:2208)
        at
org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.evaluateLazily(TreeModelNode.java:522)
        at
org.netbeans.modules.viewmodel.TreeModelNode$LazyEvaluator.run(TreeModelNode.java:940)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Martin Entlicher 2007-05-02 14:51:49 UTC
This is an unexpected limitation of StackFrame.getArgumentValues() method.
Javadoc does not mention any restrictions, but there are some. I've already
submitted bug http://bt2ws.central.sun.com/CrPrint?id=6545876 for that problem.

We need to modify our code and check for native methods. We will not be able to
display any arguments for native methods.
Comment 2 Martin Entlicher 2007-05-03 16:50:14 UTC
This has a bad impact on expression stepping. :-( We're not able to retrieve
arguments of native methods due to this.

The unexpected error is fixed, but we need to do some patches to expression
stepping logic.

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/expr/Evaluator.java,v 
<--  Evaluator.java
new revision: 1.36; previous revision: 1.35

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/CallStackFrameImpl.java,v
 <--  CallStackFrameImpl.java
new revision: 1.26; previous revision: 1.25

/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/models/LocalsTreeModel.java,v
 <--  LocalsTreeModel.java
new revision: 1.44; previous revision: 1.43

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/Bundle.properties,v
 <--  Bundle.properties
new revision: 1.42; previous revision: 1.41

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesNodeModel.java,v
 <--  VariablesNodeModel.java
new revision: 1.17; previous revision: 1.16
Comment 3 Daniel Prusa 2009-10-01 15:12:53 UTC
The reported exception has been fixed. Decreasing priority to P4 to keep a record on the problem with retrieving
arguments of native methods.