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 250068 - NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.concreteMethodByName
Summary: NullPointerException at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapp...
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-28 13:55 UTC by Jiri Kovalsky
Modified: 2015-02-02 15:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 215048


Attachments
stacktrace (1.04 KB, text/plain)
2015-01-28 13:55 UTC, Jiri Kovalsky
Details
Some more exceptions thrown before the NPE. (2.53 KB, text/plain)
2015-01-28 14:44 UTC, Jiri Kovalsky
Details
Project reproducing the issue. (15.77 KB, application/x-java-archive)
2015-01-28 15:24 UTC, Jiri Kovalsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Kovalsky 2015-01-28 13:55:12 UTC
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)
Comment 1 Jiri Kovalsky 2015-01-28 13:55:15 UTC
Created attachment 151708 [details]
stacktrace
Comment 2 Jiri Kovalsky 2015-01-28 14:44:06 UTC
Created attachment 151709 [details]
Some more exceptions thrown before the NPE.
Comment 3 Jiri Kovalsky 2015-01-28 14:45:08 UTC
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)
Comment 4 Jiri Kovalsky 2015-01-28 15:24:33 UTC
Created attachment 151710 [details]
Project reproducing the issue.

Just toggle line 2 breakpoint in calculator.js file and invoke "Debug" on project node.
Comment 5 Jiri Kovalsky 2015-01-28 15:29:19 UTC
Since these exceptions occur whenever Truffle code is about to be debugged, I am increasing priority to P2.
Comment 6 Martin Entlicher 2015-01-30 12:45:37 UTC
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.
Comment 7 Martin Entlicher 2015-01-30 13:46:59 UTC
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
Comment 8 Quality Engineering 2015-01-31 07:57:54 UTC
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.
Comment 9 Jiri Kovalsky 2015-02-02 15:37:54 UTC
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.