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.
When debugging a JavaFX application, an agent that is necessary for visual FX debugger, is being uploaded into the running JVM. However, it ends up with following exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.netbeans.modules.debugger.jpda.visual.remote.RemoteFXService$FXAccessLoop.run(RemoteFXService.java:122) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.IllegalStateException: Toolkit not initialized at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:153) at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:148) at javafx.application.Platform.runLater(Platform.java:52) ... 6 more This exception is thrown by the debugging program, since the agent is not able to contact the toolkit. As a result, visual debugging of FX applications is not possible. To reproduce: - Create Brick Breaker sample application - Press Debug Project - After the application starts, press Take GUI Snapshot - See the error in the Output Window
Fixed in trunk by changeset: 244382:258d3f30f7e0 http://hg.netbeans.org/core-main/rev/258d3f30f7e0 Can someone please verify, after it's propagated to a build? Thanks.
Integrated into 'main-golden', will be available in build *201301150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/258d3f30f7e0 User: mentlicher@netbeans.org Log: #224860: Load FX service agent by the QuantumToolkit's class loader.
verified in trunk
(In reply to comment #2) > Changeset: http://hg.netbeans.org/main-golden/rev/258d3f30f7e0 The changeset seems fine to me.
Transplanted into release73 branch by changeset: 251745:460e3d1d6bc7 http://hg.netbeans.org/releases/rev/460e3d1d6bc7
Integrated into 'releases', will be available in build *201301162100* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/460e3d1d6bc7 User: mentlicher@netbeans.org Log: #224860: Load FX service agent by the QuantumToolkit's class loader. (transplanted from 258d3f30f7e04e81ffb9e530421fa4dc95eb7de9)
verified in 7.3 RC1