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 254612

Summary: NoSuchMethodException: jdk.nashorn.internal.runtime.Context.eval : (Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Z)Ljava/lang/Object;
Product: debugger Reporter: Vladimir Riha <vriha>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219357
Attachments: stacktrace

Description Vladimir Riha 2015-08-22 14:20:36 UTC
Build: NetBeans IDE Dev (Build 201508220002)
VM: Java HotSpot(TM) Client VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
vriha: debugging JS on Nashhorn




Stacktrace: 
java.lang.NoSuchMethodException: jdk.nashorn.internal.runtime.Context.eval : (Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Z)Ljava/lang/Object;
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:633)
   at org.netbeans.modules.debugger.jpda.models.AbstractObjectVariable.invokeMethod(AbstractObjectVariable.java:574)
   at org.netbeans.modules.debugger.jpda.js.vars.DebuggerSupport.doEvaluate(DebuggerSupport.java:284)
   at org.netbeans.modules.debugger.jpda.js.vars.DebuggerSupport.evaluate(DebuggerSupport.java:211)
   at org.netbeans.modules.debugger.jpda.js.vars.DebuggerSupport.evaluate(DebuggerSupport.java:206)
   at org.netbeans.modules.debugger.jpda.js.vars.tooltip.ToolTipAnnotation.evaluate(ToolTipAnnotation.java:87)
Comment 1 Vladimir Riha 2015-08-22 14:20:39 UTC
Created attachment 155546 [details]
stacktrace
Comment 2 Vladimir Riha 2015-08-22 14:23:20 UTC
To reproduce:
 - use project http://services.netbeans.org/synergy/server/api/attachment.php?id=197
 - open test1.js and add line breakpoint to line 18
 - debug the project
 - hover over "this" on test1.js:18
Comment 3 Martin Entlicher 2015-08-26 15:34:40 UTC
Reproduced. In 1.8.0_51 it works.
This is caused by some change in u60. :-(
Comment 4 Martin Entlicher 2015-08-27 12:36:59 UTC
Fixed by changeset:   291163:a770aa12e552
http://hg.netbeans.org/core-main/rev/a770aa12e552
Comment 5 Quality Engineering 2015-08-30 01:37:53 UTC
Integrated into 'main-silver', will be available in build *201508300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a770aa12e552
User: mentlicher@netbeans.org
Log: #254612: Use a different eval method when the old one is not found (since JDK 1.8.0_60).