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 258129

Summary: NullPointerException at com.sun.tools.jdi.MirrorImpl.validateMirror
Product: debugger Reporter: Exceptions Reporter <exceptions_reporter>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: JayChristopher
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 222686
Attachments: stacktrace

Description Exceptions Reporter 2016-02-24 10:14:37 UTC
This bug was originally marked as duplicate of bug 246342, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.65-b01, Java(TM) SE Runtime Environment, 1.8.0_65-b17
OS: Windows 7

User Comments:
JayChristopher: Taking debug screenshot of (undecorated) FX stage.

GUEST: While trying to take a GUI snapshot, I am facing this issue. I am debugging a JavaFx based application.




Stacktrace: 
java.lang.NullPointerException
   at com.sun.tools.jdi.MirrorImpl.validateMirror(MirrorImpl.java:67)
   at com.sun.tools.jdi.ClassTypeImpl.setValue(ClassTypeImpl.java:126)
   at org.netbeans.modules.debugger.jpda.jdi.ClassTypeWrapper.setValue(ClassTypeWrapper.java:469)
   at org.netbeans.modules.debugger.jpda.visual.RemoteServices.runOnStoppedThread(RemoteServices.java:488)
   at org.netbeans.modules.debugger.jpda.visual.RemoteFXScreenshot.take(RemoteFXScreenshot.java:235)
   at org.netbeans.modules.debugger.jpda.visual.RemoteFXScreenshot.takeCurrent(RemoteFXScreenshot.java:202)
Comment 1 Exceptions Reporter 2016-02-24 10:14:39 UTC
Created attachment 158629 [details]
stacktrace
Comment 2 Martin Entlicher 2016-03-01 14:23:13 UTC
Reproduced. Happens when AWT is initialized as well.
Comment 3 Martin Entlicher 2016-03-02 16:29:31 UTC
Fixed by changeset:   295880:855387214700
http://hg.netbeans.org/core-main/rev/855387214700
Comment 4 Quality Engineering 2016-03-04 02:07:52 UTC
Integrated into 'main-silver', will be available in build *201603040002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/855387214700
User: mentlicher@netbeans.org
Log: #258129: Allow to initialize both AWT and FX service classes and take both screenshots.
Comment 5 Martin Entlicher 2016-04-21 09:47:59 UTC
*** Bug 258930 has been marked as a duplicate of this bug. ***