spheenik / clarity-analyzer

JavaFX-Application to interactively visualize the raw data of a Dota 2, CSGO, CS2 or Deadlock replay.
BSD 3-Clause "New" or "Revised" License
49 stars 19 forks source link

Exception on opening replay file #3

Closed niliur closed 8 years ago

niliur commented 8 years ago

Hi @spheenik,

Program compiles and runs but throws exception when I attempt to open a replay file.

Exception: Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java .lang.reflect.InvocationTargetException at javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source) at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown So urce) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unkn own Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at javafx.event.Event.fireEvent(Unknown Source) at javafx.scene.control.MenuItem.fire(Unknown Source) at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContaine r.doSelect(Unknown Source) at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContaine r.lambda$createChildren$343(Unknown Source) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.h andleBubblingEvent(Unknown Source) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unkn own Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(U nknown Source) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at javafx.event.Event.fireEvent(Unknown Source) at javafx.scene.Scene$MouseHandler.process(Unknown Source) at javafx.scene.Scene$MouseHandler.access$1500(Unknown Source) at javafx.scene.Scene.impl_processMouseEvent(Unknown Source) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio n.run(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio n.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve nt$355(Unknown Source) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unkn own Source) at com.sun.glass.ui.View.handleMouseEvent(Unknown Source) at com.sun.glass.ui.View.notifyMouse(Unknown Source) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$149(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.misc.Trampoline.invoke(Unknown Source) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.misc.MethodUtil.invoke(Unknown Source) ... 44 more Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/Utils at org.controlsfx.tools.Platform.getCurrentPlatform(Platform.java:65) at org.controlsfx.tools.Platform.<clinit>(Platform.java:41) at org.controlsfx.dialog.HeavyweightDialog.<clinit>(HeavyweightDialog.ja va:70) at org.controlsfx.dialog.Dialog.<init>(Dialog.java:340) at org.controlsfx.dialog.Dialogs.buildDialog(Dialogs.java:1009) at org.controlsfx.dialog.Dialogs.showException(Dialogs.java:586) at skadistats.clarity.analyzer.main.MainPresenter.actionOpen(MainPresent er.java:155) ... 53 more Caused by: java.lang.ClassNotFoundException: com.sun.javafx.Utils at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:71 3) at java.lang.ClassLoader.loadClass(Unknown Source) at com.simontuffs.onejar.JarClassLoader.loadClass(JarClassLoader.java:63 0) at java.lang.ClassLoader.loadClass(Unknown Source) ... 60 more Exception in thread "JavaFX Application Thread" java.lang.RuntimeException: java .lang.reflect.InvocationTargetException at javafx.fxml.FXMLLoader$MethodHandler.invoke(Unknown Source) at javafx.fxml.FXMLLoader$ControllerMethodEventHandler.handle(Unknown So urce) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unkn own Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at javafx.event.Event.fireEvent(Unknown Source) at javafx.scene.control.MenuItem.fire(Unknown Source) at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContaine r.doSelect(Unknown Source) at com.sun.javafx.scene.control.skin.ContextMenuContent$MenuItemContaine r.lambda$createChildren$343(Unknown Source) at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.h andleBubblingEvent(Unknown Source) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unkn own Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknow n Source) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(U nknown Source) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Sourc e) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Sou rce) at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source) at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source) at javafx.event.Event.fireEvent(Unknown Source) at javafx.scene.Scene$MouseHandler.process(Unknown Source) at javafx.scene.Scene$MouseHandler.access$1500(Unknown Source) at javafx.scene.Scene.impl_processMouseEvent(Unknown Source) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio n.run(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotificatio n.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEve nt$355(Unknown Source) at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unkn own Source) at com.sun.glass.ui.View.handleMouseEvent(Unknown Source) at com.sun.glass.ui.View.notifyMouse(Unknown Source) at com.sun.glass.ui.win.WinApplication._runLoop(Native Method) at com.sun.glass.ui.win.WinApplication.lambda$null$149(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.misc.Trampoline.invoke(Unknown Source) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.misc.MethodUtil.invoke(Unknown Source) ... 44 more Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.contro lsfx.dialog.HeavyweightDialog at org.controlsfx.dialog.Dialog.<init>(Dialog.java:340) at org.controlsfx.dialog.Dialogs.buildDialog(Dialogs.java:1009) at org.controlsfx.dialog.Dialogs.showException(Dialogs.java:586) at skadistats.clarity.analyzer.main.MainPresenter.actionOpen(MainPresent er.java:155) ... 53 more

Config: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00) Maven home: C:\Users\David\Desktop\apache-maven-3.3.9\bin\.. Java version: 1.8.0_60, vendor: Oracle Corporation Java home: C:\Program Files\Java\jdk1.8.0_60\jre Default locale: en_CA, platform encoding: GBK OS name: "windows 8", version: "6.2", arch: "amd64", family: "dos"

If there's any insight you can share on this it would be greatly appreciated.

spheenik commented 8 years ago

Hey niliur,

|Caused by: java.lang.ClassNotFoundException: com.sun.javafx.Utils|

|Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.controlsfx.dialog.HeavyweightDialog

Looks like some stuff is missing from your classpath. How did you build / run this?

It should be||

Build: mvn package||

Run: java -jar target\analyzer.one-jar.jar

|||

niliur commented 8 years ago

Hi Spheenik,

I made no changes to the original files and I ran them according to your instructions.

I am able to access the UI, the error only occurs when I attempt to access a replay.

http://puu.sh/pBJPC/92d5b1e4b9.png

spheenik commented 8 years ago

Can you send the |analyzer.one-jar.jar to clarity@martin.schrodt.org?|

niliur commented 8 years ago

Couldn't send it directly but shared on OneDrive.

spheenik commented 8 years ago

Got it and tried it: works here. So there's a problem that your installed JDK misses certain JavaFX classes. I do not know why... I'd suggest installing 8u92 for your architecture from here:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

HTH!

niliur commented 8 years ago

Alright, I will try that, thanks for all your help.

spheenik commented 8 years ago

You're welcome!