JonathanGiles / scenic-view

Scenic View is a JavaFX application designed to make it simple to understand the current state of your application scenegraph, and to also easily manipulate properties of the scenegraph without having to keep editing your code. This lets you find bugs, and get things pixel perfect without having to do the compile-check-compile dance.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception on startup with 8u60

JonathanGiles opened this issue · comments

Original report by Michael Ennen (Bitbucket: brcolow, GitHub: brcolow).


Hello,

I have used Scenic View a few times over the past year when developing my application when I need to get down to the real nitty gritty of the user interface. I am using 8u60 early access because I need some of the new features (hidpi on windows being the major one) for my app.

Using 8u60 with Scenic View results in the following exception when trying to start Scenic View:

#!java

	java.lang.reflect.InvocationTargetException
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:497)
		at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
		at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
		at java.lang.reflect.Method.invoke(Method.java:497)
		at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
	Caused by: java.lang.RuntimeException: Exception in Application start method
		at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)
		at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)
		at java.lang.Thread.run(Thread.java:745)
	Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/Utils
		at org.scenicview.model.attach.AttachHandlerFactory.getAttachHandler(AttachHandlerFactory.java:162)
		at org.scenicview.model.attach.AttachHandlerFactory.initAttachAPI(AttachHandlerFactory.java:67)
		at org.scenicview.ScenicView.start(ScenicView.java:160)
		at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)
		at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)
		at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
		at java.security.AccessController.doPrivileged(Native Method)
		at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
		at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
	Caused by: java.lang.ClassNotFoundException: com.sun.javafx.Utils
		at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
		at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
		... 9 more

Just reporting in case you didn't know - it's a different exception from what I can tell than what's in #15.

Original comment by zarnikov (Bitbucket: zarnikov, GitHub: Unknown).


I've fixed this and I've created a pull request. Until the pull request is merged and released you can use:

https://www.dropbox.com/s/p5i9z99uaehupbu/scenic-view-8.0.jar?dl=0
or if you're paranoid build from the fixed source:
https://bitbucket.org/zarnikov/scenic-view