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 155239 - org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
Summary: org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on: 161270
Blocks:
  Show dependency tree
 
Reported: 2008-12-11 15:21 UTC by Filip Zamboj
Modified: 2009-07-07 15:51 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143304


Attachments
stacktrace (1.39 KB, text/plain)
2008-12-11 15:22 UTC, Filip Zamboj
Details
stacktrace (1.39 KB, text/plain)
2008-12-16 12:15 UTC, Filip Zamboj
Details
entering exception (207.31 KB, image/png)
2008-12-16 12:58 UTC, Filip Zamboj
Details
stacktrace (1.39 KB, text/plain)
2008-12-17 14:30 UTC, Filip Zamboj
Details
breakpoint_dialog (226.86 KB, image/png)
2008-12-17 14:35 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2008-12-11 15:21:57 UTC
Build: NetBeans IDE Dev (Build 200812110201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments:
fzamboj: - trying to debug using exception breakpoint
- IDE throws exception after Array Index Out Of Bound Exception is thrown 
- it doesn't stop when throw exc. as specified in breakpoint proerties

fzamboj: - trying to debug using exception breakpoint
- IDE throws exception after Array Index Out Of Bound Exception is thrown 
- it doesn't stop when throw exc. as specified in breakpoint proerties



Stacktrace: 
org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:915)
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:903)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:432)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:373)
        at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.substitute(BreakpointOutput.java:315)
        at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.breakpointReached(BreakpointOutput.java:147)
Comment 1 Filip Zamboj 2008-12-11 15:22:03 UTC
Created attachment 74861 [details]
stacktrace
Comment 2 Martin Entlicher 2008-12-12 09:44:36 UTC
Filip, did you customize the exception breakpoint somehow - e.g. the Suspend property?
I'm not able to reproduce this so far...
Comment 3 Filip Zamboj 2008-12-16 12:15:13 UTC
Build: NetBeans IDE Dev (Build 200812160201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
add an exception breakpoint for java.lang.* 
run debugging session 

Stacktrace: 
org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:915)
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:903)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:432)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:373)
        at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.substitute(BreakpointOutput.java:316)
        at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.breakpointReached(BreakpointOutput.java:148)
Comment 4 Filip Zamboj 2008-12-16 12:15:17 UTC
Created attachment 75018 [details]
stacktrace
Comment 5 Filip Zamboj 2008-12-16 12:58:13 UTC
Created attachment 75021 [details]
entering exception
Comment 6 Filip Zamboj 2008-12-16 12:59:36 UTC
no, I didn't. I attached screenshot. it was nightly build (Build 200812160201)
Comment 7 Filip Zamboj 2008-12-16 13:00:33 UTC
and, one more thing ... I run with clear userdir, of course
Comment 8 Filip Zamboj 2008-12-17 14:30:49 UTC
Build: NetBeans IDE Dev (Build 200812170242)
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-9-generic, amd64

User Comments: 
Add a new exception breakpoint. 
Set it to stop on java.io.IOException 
Run debugging session 
and here you go ... the exception is thrown

Stacktrace: 
org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:915)
        at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:903)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:432)
        at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:373)
        at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.substitute(BreakpointOutput.java:316)
        at org.netbeans.modules.debugger.jpda.ui.BreakpointOutput.breakpointReached(BreakpointOutput.java:148)
Comment 9 Filip Zamboj 2008-12-17 14:30:58 UTC
Created attachment 75089 [details]
stacktrace
Comment 10 Filip Zamboj 2008-12-17 14:33:20 UTC
I reported again, because of NB 7.0M1 test. 
Comment 11 Filip Zamboj 2008-12-17 14:35:22 UTC
Created attachment 75090 [details]
breakpoint_dialog
Comment 12 Exceptions Reporter 2009-01-09 16:37:56 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=143304
Comment 13 Martin Entlicher 2009-07-07 15:51:05 UTC
Should be fixed after http://hg.netbeans.org/main/rev/ee23e0e1b5a6