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 200902131548) 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: fzamboj: NPE while steping into the method using F7 while debugging my code. It's application using AWT if that somehow helps. Stacktrace: java.lang.IllegalStateException: java.lang.NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ReferenceTypeWrapper.constantPool(ReferenceTypeWrapper.java:227) at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:168) at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:102) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.collectOperations(MethodChooser.java:306) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.run(MethodChooser.java:189) at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.doMethodSelection(StepIntoActionProvider.java:170)
Created attachment 77046 [details] stacktrace
Build: NetBeans IDE Dev (Build 200902180201) VM: Java HotSpot(TM) 64-Bit Server VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-ea-b03 OS: Linux, 2.6.27-11-generic, amd64 User Comments: This one is thrown right after assertion errror reported as http://www.netbeans.org/issues/show_bug.cgi?id=154992 if you try to continue by stepping into method. Stacktrace: java.lang.IllegalStateException: java.lang.NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ReferenceTypeWrapper.constantPool(ReferenceTypeWrapper.java:227) at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:168) at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:102) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.collectOperations(MethodChooser.java:306) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.run(MethodChooser.java:189) at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.doMethodSelection(StepIntoActionProvider.java:170)
Created attachment 77106 [details] stacktrace
*** Issue 158737 has been marked as a duplicate of this issue. ***
*** Issue 158860 has been marked as a duplicate of this issue. ***
It'd be nice to have exact steps to reproduce this. It would help us to identify whether the issue is in NetBeans or JDI/JDWP layer.
I can reliably reproduce it. See http://statistics.netbeans.org/analytics/exception.do?id=168337 for environment. 1. add a break point to MoveRefactoringPlugin.java at line 337 2. run action Refactoring/Move Class on some selected java file in j2se project 3. dialog appears; switch Location combo to 'Test Packages' 4. the debugger should stop on the break point and do Step Over 5. I get always the NPE
4. Step Over has to be done at line 338
Created attachment 77424 [details] messages.log
Build: NetBeans IDE Dev (Build 200902231810) VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows XP, 5.1, x86 User Comments: stepping through code in debug mode Stacktrace: java.lang.IllegalStateException: java.lang.NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ReferenceTypeWrapper.constantPool(ReferenceTypeWrapper.java:227) at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:168) at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:102) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.collectOperations(MethodChooser.java:306) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.run(MethodChooser.java:189) at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.doMethodSelection(StepIntoActionProvider.java:170)
Created attachment 77809 [details] stacktrace
Build: NetBeans IDE Dev (Build 200903040201) VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04 OS: Windows XP, 5.1, x86 User Comments: Tried to step (F7) into a Method (at debugging) Stacktrace: java.lang.IllegalStateException: java.lang.NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ReferenceTypeWrapper.constantPool(ReferenceTypeWrapper.java:227) at org.netbeans.modules.debugger.jpda.ExpressionPool.createExpressionAt(ExpressionPool.java:168) at org.netbeans.modules.debugger.jpda.ExpressionPool.getExpressionAt(ExpressionPool.java:102) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.collectOperations(MethodChooser.java:306) at org.netbeans.modules.debugger.jpda.actions.MethodChooser.run(MethodChooser.java:189) at org.netbeans.modules.debugger.jpda.actions.StepIntoActionProvider.doMethodSelection(StepIntoActionProvider.java:170)
Created attachment 77823 [details] stacktrace
This issue has already 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=146392
*** Issue 160895 has been marked as a duplicate of this issue. ***
Defect in JDI: http://bugs.sun.com/view_bug.do?bug_id=6822627. Unfortunately, we'll not be able to obtain constant pool when this is thrown. We have to just catch it, I do not think that a workaround is possible.
Workarounded in changeset: 123879:3f7b8a04f32c http://hg.netbeans.org/main/rev/3f7b8a04f32c
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/3f7b8a04f32c User: mentlicher@netbeans.org Log: #158634 - Added ability to customize generation of higher version methods. We do catch NPE thrown from ReferenceType.constantPool().
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.