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 225350

Summary: org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
Product: debugger Reporter: bht <bht>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 197932
Attachments: stacktrace

Description bht 2013-01-25 14:20:24 UTC
This issue was reported manually by mentlicher.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201301230001)
VM: Java HotSpot(TM) Client VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_11-b21
OS: Windows XP

User Comments:
bht: Debugging Wicket 6.4.0 Page.java breakpoint set line 471. [F5] continue hitting the same line. Then hovering over component to see its name.




Stacktrace: 
org.netbeans.api.debugger.jpda.InvalidExpressionException: No current context
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:1001)
   at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.invokeMethod(JPDADebuggerImpl.java:950)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:476)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.getToStringValue(AbstractObjectVariable.java:425)
   at sun.reflect.GeneratedMethodAccessor369.invoke(GeneratedMethodAccessor369.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Comment 1 bht 2013-01-25 14:20:27 UTC
Created attachment 130649 [details]
stacktrace
Comment 2 Martin Entlicher 2013-01-25 17:54:04 UTC
The exception is fixed by changeset:   244922:9938912f8635
http://hg.netbeans.org/core-main/rev/9938912f8635
Comment 3 Quality Engineering 2013-01-26 03:03:26 UTC
Integrated into 'main-golden', will be available in build *201301260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/9938912f8635
User: mentlicher@netbeans.org
Log: #225350: Call the original getToStringValue(), which truncates long Strings by default to prevent from memory overflow.