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 165715 - com.sun.jdi.InternalException: Unexpected JDWP Error: 25
Summary: com.sun.jdi.InternalException: Unexpected JDWP Error: 25
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-21 15:50 UTC by Andrei Chistiakov
Modified: 2012-05-31 14:00 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151576


Attachments
stacktrace (2.51 KB, text/plain)
2009-05-21 15:50 UTC, Andrei Chistiakov
Details
stacktrace (2.51 KB, text/plain)
2009-05-21 15:58 UTC, Andrei Chistiakov
Details
stacktrace (2.12 KB, text/plain)
2010-04-19 09:58 UTC, Andrei Chistiakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Chistiakov 2009-05-21 15:50:26 UTC
Build: NetBeans IDE Dev (Build 200905210201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b02
OS: Windows XP, 5.1, x86

User Comments:
ca: I was expanding variables tree



Stacktrace: 
com.sun.jdi.InternalException: Unexpected JDWP Error: 25
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47)
        at com.sun.tools.jdi.ObjectReferenceImpl.getValues(ObjectReferenceImpl.java:196)
        at com.sun.tools.jdi.ObjectReferenceImpl.getValue(ObjectReferenceImpl.java:148)
        at org.netbeans.modules.debugger.jpda.jdi.ObjectReferenceWrapper.getValue(ObjectReferenceWrapper.java:146)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getField(AbstractObjectVariable.java:832)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.initFieldsOfClass(AbstractObjectVariable.java:797)
Comment 1 Andrei Chistiakov 2009-05-21 15:50:34 UTC
Created attachment 82562 [details]
stacktrace
Comment 2 Andrei Chistiakov 2009-05-21 15:58:28 UTC
Build: NetBeans IDE Dev (Build 200905210201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows Vista, 6.0, x86

User Comments: 
Expanded a node of Variables tree

Stacktrace: 
com.sun.jdi.InternalException: Unexpected JDWP Error: 25
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47)
        at com.sun.tools.jdi.ObjectReferenceImpl.getValues(ObjectReferenceImpl.java:196)
        at com.sun.tools.jdi.ObjectReferenceImpl.getValue(ObjectReferenceImpl.java:148)
        at org.netbeans.modules.debugger.jpda.jdi.ObjectReferenceWrapper.getValue(ObjectReferenceWrapper.java:146)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getField(AbstractObjectVariable.java:832)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.initFieldsOfClass(AbstractObjectVariable.java:797)
Comment 3 Andrei Chistiakov 2009-05-21 15:58:32 UTC
Created attachment 82564 [details]
stacktrace
Comment 4 Martin Entlicher 2009-05-22 08:39:22 UTC
I guess that IllegalArgumentException should be thrown instead of "Unexpected JDWP Error: 25" according to
http://java.sun.com/javase/6/docs/jdk/api/jpda/jdi/com/sun/jdi/ObjectReference.html#getValue(com.sun.jdi.Field)
Unexpected JDWP Error: 25 is INVALID_FIELDID - Invalid field.

Do you have some steps how can we reproduce this? It looks like some inconsistency in JPDA. We'd need a test-case to
identify that.

There is some variable type that you've had opened in Variables view that triggers this. Can you please provide more
info about what you're debugging or provide some test-case?
Were you debugging J2SE or J2ME application?
Comment 5 Andrei Chistiakov 2009-05-22 08:50:43 UTC
To reproduce:
- install recent version of NB with Mobility module bundled with Java ME SDK 3.0
- create a new Mobile Application with HelloMIDlet
- switch the opened HelloMIDlet to Source view and set breakpoint at line 51 (switchDisplayable(null, getForm());)
- debug the project
- once the execution stops at the breakpoint, open Variables and expand the following path:
this|Static|classSecurityToken

The exception is thrown.
Comment 6 Martin Entlicher 2009-05-22 09:10:10 UTC
Thanks for the steps.
Comment 7 Martin Entlicher 2009-07-01 09:51:55 UTC
Java ME SDK 3.0 is available for Windows only. :-((
Comment 8 Exceptions Reporter 2009-07-28 13:40:55 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151576
Comment 9 Exceptions Reporter 2010-02-11 09:58:07 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151576
Comment 10 Andrei Chistiakov 2010-04-19 09:58:58 UTC
Created attachment 97604 [details]
stacktrace
Comment 11 Exceptions Reporter 2010-12-11 22:40:13 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151576
Comment 12 Martin Entlicher 2010-12-14 13:48:51 UTC
A bug in J2ME, downgrading to P3 and will explore on Windows...
Comment 13 Martin Entlicher 2012-05-31 14:00:37 UTC
A bug on J2ME only, occurs rarely, leaving for a further exploration as a P4.