ramccor / esmska

Automatically exported from code.google.com/p/esmska
0 stars 0 forks source link

java.lang.IllegalStateException: Config not yet loaded! #357

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is shown after several successful runs of Esmska on Fedora 15 using java 
webstart. Esmska no longer starts.

Apr 10, 2011 9:48:42 PM esmska.Main main
WARNING: Could not load config file
java.lang.ArrayIndexOutOfBoundsException: 0
    at com.sun.beans.ObjectHandler.dequeueResult(ObjectHandler.java:189)
    at java.beans.XMLDecoder.readObject(XMLDecoder.java:218)
    at esmska.persistence.PersistenceManager.loadConfig(PersistenceManager.java:241)
    at esmska.Main.main(Main.java:164)
    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:616)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:479)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:830)
net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch 
JNLP file.
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:485)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:830)
Caused by: 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:616)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:479)
    ... 1 more
Caused by: java.lang.ExceptionInInitializerError
    at esmska.data.DefaultGateway.<init>(DefaultGateway.java:51)
    at esmska.persistence.ImportManager.importGateways(ImportManager.java:215)
    at esmska.persistence.ImportManager.importGateways(ImportManager.java:173)
    at esmska.persistence.PersistenceManager.loadGateways(PersistenceManager.java:374)
    at esmska.Main.main(Main.java:169)
    ... 6 more
Caused by: java.lang.IllegalStateException: Config not yet loaded!
    at esmska.data.Config.getInstance(Config.java:84)
    at esmska.data.Gateways.<clinit>(Gateways.java:56)
    ... 11 more
Caused by: 
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:616)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:479)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:830)
Caused by: java.lang.ExceptionInInitializerError
    at esmska.data.DefaultGateway.<init>(DefaultGateway.java:51)
    at esmska.persistence.ImportManager.importGateways(ImportManager.java:215)
    at esmska.persistence.ImportManager.importGateways(ImportManager.java:173)
    at esmska.persistence.PersistenceManager.loadGateways(PersistenceManager.java:374)
    at esmska.Main.main(Main.java:169)
    ... 6 more
Caused by: java.lang.IllegalStateException: Config not yet loaded!
    at esmska.data.Config.getInstance(Config.java:84)
    at esmska.data.Gateways.<clinit>(Gateways.java:56)
    ... 11 more

Original issue reported on code.google.com by kamil.paral on 10 Apr 2011 at 7:51

GoogleCodeExporter commented 9 years ago
This precedes the error:

$ javaws http://ripper.profitux.cz/esmska/download/webstart.php
java.lang.ClassNotFoundException: esmska/data/Config
Continuing ...
java.lang.Exception: XMLEncoder: discarding statement 
XMLEncoder.writeObject(Config);
Continuing ...

$ cat .config/esmska/settings.xml 
<?xml version="1.0" encoding="UTF-8"?>
<java version="1.6.0_22" class="java.beans.XMLDecoder">
</java>

Original comment by kamil.paral on 10 Apr 2011 at 7:58

GoogleCodeExporter commented 9 years ago
This problem does not happen if esmska is run as a standard program from the 
multiplatform archive. But once the config file is broken, the program doesn't 
start neither way.

Original comment by kamil.paral on 10 Apr 2011 at 8:03

GoogleCodeExporter commented 9 years ago
java-1.6.0-openjdk-1.6.0.0-55.1.10.fc15.x86_64
icedtea-web-1.0.2-2.fc15.x86_64

Original comment by kamil.paral on 10 Apr 2011 at 8:07

GoogleCodeExporter commented 9 years ago
In r5f233a4b6d04 the crash on start was fixed. But that doesn't fix the problem 
that webstart run does not save the file properly.

Original comment by kamil.paral on 17 Apr 2011 at 7:16

GoogleCodeExporter commented 9 years ago
OpenJDK + WebStart disallowed in redf84919d72f

Original comment by kamil.paral on 17 Apr 2011 at 7:57