Crash on startup with Java error

This is for troubleshooting of problems with the FAF client and Forged Alliance game.

Moderator: PhilipJFry

Crash on startup with Java error

Postby PiamondDickaxe » 05 Jan 2020, 02:52

Made the client fullscreen, it crashed and won't start anymore. The. "Downlord's FAF Client" splash screen comes up, the client flashes for all of a frame, and then crashes with the java error.

Error data is as follows:

Code: Select all
java.lang.RuntimeException: Exception in Application start method
   at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown Source)
   at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(Unknown Source)
   at java.base/java.lang.Thread.run(Unknown Source)
Caused by: com.github.nocatch.NoCatchException: javafx.fxml.LoadException:
file:/E:/FAF/lib/downlords-faf-client-0.10.7.jar!/theme/login.fxml

   at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
   at com.github.nocatch.NoCatch.wrapException(NoCatch.java:61)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:53)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:34)
   at com.faforever.client.theme.UiService.loadFxml(UiService.java:412)
   at com.faforever.client.theme.UiService$$FastClassBySpringCGLIB$$2b0b2208.invoke(<generated>)
   at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
   at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:684)
   at com.faforever.client.theme.UiService$$EnhancerBySpringCGLIB$$d69af24f.loadFxml(<generated>)
   at com.faforever.client.main.MainController.enterLoggedOutState(MainController.java:389)
   at com.faforever.client.main.MainController.display(MainController.java:371)
   at com.faforever.client.FafClientApplication.showMainWindow(FafClientApplication.java:116)
   at com.faforever.client.FafClientApplication.start(FafClientApplication.java:100)
   at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
   at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$11(Unknown Source)
   at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$9(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
   at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
   at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
   at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
   ... 1 more
Caused by: javafx.fxml.LoadException:
file:/E:/FAF/lib/downlords-faf-client-0.10.7.jar!/theme/login.fxml

   at javafx.fxml/javafx.fxml.FXMLLoader.constructLoadException(Unknown Source)
   at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
   at javafx.fxml/javafx.fxml.FXMLLoader.loadImpl(Unknown Source)
   at javafx.fxml/javafx.fxml.FXMLLoader.load(Unknown Source)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:49)
   ... 19 more
Caused by: java.lang.reflect.InvocationTargetException
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.base/java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javafx.reflect.Trampoline.invoke(Unknown Source)
   at jdk.internal.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.base/java.lang.reflect.Method.invoke(Unknown Source)
   at javafx.base/com.sun.javafx.reflect.MethodUtil.invoke(Unknown Source)
   at javafx.fxml/com.sun.javafx.fxml.MethodHelper.invoke(Unknown Source)
   ... 23 more
Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)
   at com.google.gson.Gson.fromJson(Gson.java:927)
   at com.google.gson.Gson.fromJson(Gson.java:865)
   at com.faforever.client.preferences.PreferencesService.getRemotePreferences(PreferencesService.java:351)
   at com.faforever.client.login.LoginController.initialize(LoginController.java:150)
   ... 33 more
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
   at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:385)
   at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)
   ... 37 more


I saw a couple solved forum posts, and at a glance its the same error, but none of them included the solution. Help would be appreciated.
PiamondDickaxe
 
Posts: 6
Joined: 28 Mar 2017, 04:11
Has liked: 1 time
Been liked: 0 time
FAF User Name: PiamondDickaxe

Re: Crash on startup with Java error

Postby PhilipJFry » 05 Jan 2020, 10:12

update to the latest version
if that doesn't help try deleting the client prefs stored in
Code: Select all
%appdata%\Forged Alliance Forever\

post the entire log instead of just the error in the popup (read the red text above)
cats>dogs
post logs
User avatar
PhilipJFry
Supreme Commander
 
Posts: 2635
Joined: 23 Mar 2016, 21:16
Location: Austria
Has liked: 232 times
Been liked: 348 times
FAF User Name: PhilipJFry

Re: Crash on startup with Java error

Postby PiamondDickaxe » 05 Jan 2020, 12:39

Ahh, darn missed the fine print. Got the error log below, its mighty small though. Cracked open one of the .gz logs too while I was in there, not sure if thats the one you wanted but its more than 27 thousand lines anyway. Tried deleting the client prefs, didnt work. Haven't updated yet, Ill take a crack at that tomorrow on account of it being 3AM here right now.

https://pastebin.com/CJ2QR9he
PiamondDickaxe
 
Posts: 6
Joined: 28 Mar 2017, 04:11
Has liked: 1 time
Been liked: 0 time
FAF User Name: PiamondDickaxe

Re: Crash on startup with Java error

Postby PhilipJFry » 05 Jan 2020, 13:18

according to the log you're using an outdated version of the client
go to faforever.com and download the latest version and install it
cats>dogs
post logs
User avatar
PhilipJFry
Supreme Commander
 
Posts: 2635
Joined: 23 Mar 2016, 21:16
Location: Austria
Has liked: 232 times
Been liked: 348 times
FAF User Name: PhilipJFry

Re: Crash on startup with Java error

Postby PiamondDickaxe » 06 Jan 2020, 00:43

Alright, will do. Outta curiosity, what made it go off? I mean, it just came outta the blue. Did everyone with the same client version have the same problem at the same time or what?

Thanks anyway, I appreciate it.
PiamondDickaxe
 
Posts: 6
Joined: 28 Mar 2017, 04:11
Has liked: 1 time
Been liked: 0 time
FAF User Name: PiamondDickaxe

Re: Crash on startup with Java error

Postby PhilipJFry » 06 Jan 2020, 10:53

there was some update on the server side to force every connection to use https in order to make our service more secure in general

i assume the outdated client versions are unable to deal with this properly
cats>dogs
post logs
User avatar
PhilipJFry
Supreme Commander
 
Posts: 2635
Joined: 23 Mar 2016, 21:16
Location: Austria
Has liked: 232 times
Been liked: 348 times
FAF User Name: PhilipJFry


Return to Tech Support

Who is online

Users browsing this forum: No registered users and 1 guest