Exception starting sample application [message #1774141] |
Wed, 11 October 2017 01:16 |
Marcelo Ruiz Messages: 80 Registered: April 2017 |
Member |
|
|
Hi,
My application does not start due to a NullPointerException. I though I broke things when trying to use the Reactor 3 library.
To be sure I did something wrong, I created a new application using the wizard and following the steps of Tutorial 4, where I edited the Application.e4xmi and added a trimmed window (defining its size and position on the screen) and added also an empty part.
To my surprise, I still get the same exception and the application does not start:
!ENTRY org.eclipse.equinox.app 4 0 2017-10-10 21:05:35.210
!MESSAGE Exception in Application start method
!STACK 0
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$155(LauncherImpl.java:182)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at org.eclipse.fx.ui.workbench.base.internal.EFX_ResourceHandler.loadMostRecentModel(EFX_ResourceHandler.java:176)
at org.eclipse.fx.ui.workbench.base.AbstractE4Application.loadApplicationModel(AbstractE4Application.java:422)
at org.eclipse.fx.ui.workbench.base.AbstractE4Application.createE4Workbench(AbstractE4Application.java:267)
at org.eclipse.fx.ui.workbench.fx.E4Application.initE4Workbench(E4Application.java:358)
at org.eclipse.fx.ui.workbench.fx.E4Application$1.run(E4Application.java:215)
at org.eclipse.fx.ui.workbench.fx.E4Application.jfxStart(E4Application.java:253)
at org.eclipse.fx.ui.workbench.fx.DefaultJFXApp.start(DefaultJFXApp.java:57)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at com.sun.glass.ui.gtk.GtkApplication.lambda$null$49(GtkApplication.java:139)
... 1 more
Any idea of what might be the cause for this? I thought this problem was caused by having Java 9 running on my system, but I uninstalled it and reinstalled Java 8 and it is still there.
Maybe a good addition to the sample app, will be to make it at least display an empty window without requiring the developer to touch anything. Once that window is displayed, proving the configuration is correct, development could start on a sound base.
Thanks!
[Updated on: Thu, 12 October 2017 16:23] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06974 seconds