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 164407

Summary: com.sun.jdi.InternalException: Unexpected JDWP Error: 21
Product: debugger Reporter: ranbato <ranbato>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: CLOSED INCOMPLETE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=150568
Issue Type: DEFECT Exception Reporter: 150568
Attachments: stacktrace

Description ranbato 2009-05-04 18:02:10 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
ranbato: Debugging in Glassfish 2.1



Stacktrace: 
com.sun.jdi.InternalException: Unexpected JDWP Error: 21
        at com.sun.tools.jdi.JDWPException.toJDIException(JDWPException.java:47)
        at com.sun.tools.jdi.ClassTypeImpl.superclass(ClassTypeImpl.java:34)
        at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.superclass(ClassTypeWrapper.java:218)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getSuper(AbstractObjectVariable.java:289)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getFilter(VariablesTreeModelFilter.java:508)
        at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.isLeaf(VariablesTreeModelFilter.java:255)
Comment 1 ranbato 2009-05-04 18:02:24 UTC
Created attachment 81487 [details]
stacktrace
Comment 2 Martin Entlicher 2009-05-04 19:19:05 UTC
We're still getting new and new JDWPExceptions... really nice! Number 21 was not here yet!

Are you able to reproduce this? Do you have an idea what class could cause this, which variables did you see when this
happened?
Comment 3 Martin Entlicher 2009-05-04 19:51:26 UTC
From JDWP specification INVALID_CLASS (which is the number 21) can be returned from a bunch of calls. It would be really
valuable to know how this happens (steps to reproduce).
Without reproducibility I can only mask the error by catching the exception and pretending that this class does not have
any superclass. Which is not correct, of course.
Comment 4 ranbato 2009-05-05 19:21:08 UTC
So far, I am unable to reproduce the error.

It is basically a sample JMS project (see some of the other issues I have reported).  I believe this occurred while I
was debugging the message bean.
Comment 5 Vojtech Sigler 2009-09-18 12:59:44 UTC
Without requested information for long time - INVALID. We can't do anything in this case. Reporter, please add some
steps to reproduce or any other relevant information and reopen issue. Thanks in advance.
Comment 6 Marian Mirilovic 2010-05-06 11:51:31 UTC
closing incomplete issues