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 201501280002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17 OS: Linux User Comments: jkovalsky: I toggled line breakpoint in calculator.js file and then invoked "Debug" on my JavaApplication10 project which used ScriptEngine.eval() method to call a function from that JavaScript file. When breakpoint was hit this exception occured. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.concreteMethodByName(ClassTypeWrapper.java:168) at org.netbeans.modules.debugger.jpda.truffle.DebugManagerHandler.breakpointReached(DebugManagerHandler.java:153) at org.netbeans.api.debugger.jpda.JPDABreakpoint.fireJPDABreakpointChange(JPDABreakpoint.java:300) at org.netbeans.api.debugger.jpda.JPDADebugger.fireBreakpointEvent(JPDADebugger.java:491) at org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.fireBreakpointEvent(JPDADebuggerImpl.java:652) at org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.perform(BreakpointImpl.java:559)
Created attachment 151708 [details] stacktrace
Created attachment 151709 [details] Some more exceptions thrown before the NPE.
BTW, this happened with: java version "1.8.0_11" Java(TM) SE Runtime Environment (build 1.8.0_11-b12) OpenJDK 64-Bit Graal VM (build 25.0-b63-internal-graal-0.6-dev, mixed mode)
Created attachment 151710 [details] Project reproducing the issue. Just toggle line 2 breakpoint in calculator.js file and invoke "Debug" on project node.
Since these exceptions occur whenever Truffle code is about to be debugged, I am increasing priority to P2.
Well, the build 25.0-b63-internal-graal-0.6-dev is not compatible with the current code. This is manifested by NoClassDefFoundError: com/oracle/truffle/debug/DebugClient I'm afraid that no build from the recent Truffle debugging code is available for public.
The NPE and a proliferation of further exceptions should be fixed by changeset: 283504:179cf3254012 But NoClassDefFoundError is still thrown to indicate that there is a problem in loading of the debugger backend clases. http://hg.netbeans.org/core-main/rev/179cf3254012
Integrated into 'main-silver', will be available in build *201501310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/179cf3254012 User: mentlicher@netbeans.org Log: #250068: Prevent from NPE when Truffle debugger backend fails to load.
Product Version: NetBeans IDE Dev (Build 201502020002) Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b17 System: Linux version 3.13.0-24-generic running on amd64; UTF-8; en_US (nb) Exceptions seem to be really fixed. Verifying.