Skip to content

Commit

Permalink
Fix #30
Browse files Browse the repository at this point in the history
01:33:29.607 [AWT-EventQueue-0] WARN
o.jdesktop.application.LocalStorage - unspecified resource
Application.vendorId using UnknownApplicationVendor
01:33:29.609 [AWT-EventQueue-0] INFO  org.chris.portmapper.PortMapperApp
- Using default configuration directory
'C:\Users\Nathan\AppData\Roaming\UnknownApplicationVendor\PortMapper'.
01:33:29.610 [AWT-EventQueue-0] DEBUG org.chris.portmapper.PortMapperApp
- Loading settings from file settings.xml
01:33:29.625 [AWT-EventQueue-0] ERROR
org.jdesktop.application.Application - Application class
org.chris.portmapper.PortMapperApp failed to launch
java.lang.ArrayIndexOutOfBoundsException: 0
        at java.beans.XMLDecoder.readObject(Unknown Source)
        at org.jdesktop.application.LocalStorage.load(LocalStorage.java:197)
        at org.chris.portmapper.PortMapperApp.loadSettings(PortMapperApp.java:159)
        at org.chris.portmapper.PortMapperApp.startup(PortMapperApp.java:78)
        at org.jdesktop.application.Application$1.run(Application.java:187)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application
class org.chris.portmapper.PortMapperApp failed to launch
        at org.jdesktop.application.Application$1.run(Application.java:192)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at java.beans.XMLDecoder.readObject(Unknown Source)
        at org.jdesktop.application.LocalStorage.load(LocalStorage.java:197)
        at org.chris.portmapper.PortMapperApp.loadSettings(PortMapperApp.java:159)
        at org.chris.portmapper.PortMapperApp.startup(PortMapperApp.java:78)
        at org.jdesktop.application.Application$1.run(Application.java:187)
        ... 14 more
  • Loading branch information
kaklakariada committed Feb 15, 2018
1 parent 265c1d2 commit b61db92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/chris/portmapper/PortMapperApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private void loadSettings() {
logger.debug("Loading settings from file {}", SETTINGS_FILENAME);
try {
settings = (Settings) getContext().getLocalStorage().load(SETTINGS_FILENAME);
} catch (final IOException e) {
} catch (final IOException | ArrayIndexOutOfBoundsException e) {
logger.warn("Could not load settings from file " + SETTINGS_FILENAME, e);
}

Expand Down

0 comments on commit b61db92

Please sign in to comment.