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 - NullPointerException at com.sun.tools.jdi.MirrorImpl.validateMirror
Summary: NullPointerException at com.sun.tools.jdi.MirrorImpl.validateMirror
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
: 258930 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-02-24 10:14 UTC by Exceptions Reporter
Modified: 2016-04-21 09:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222686


Attachments
stacktrace (958 bytes, text/plain)
2016-02-24 10:14 UTC, Exceptions Reporter
Details

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