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 - 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: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-25 14:20 UTC by bht
Modified: 2013-01-26 03:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 197932


Attachments
stacktrace (1.04 KB, text/plain)
2013-01-25 14:20 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
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.