Bug - Fixed Adventure Tab will not load

Malurth

Member
I get this in the Graphical CLI every time on login: "net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded" (Edit: There is no space between 'Fra' and 'me.' I don't know why the forum is displaying this.)

And sure enough, the Adventure Tab is missing. I have tried fiddling with the settings and manually adding it in the past, but it does not work. If I go to General > Adventure, it will add the tab to the right, but upon clicking it it just repeats the same error and the contents of the tab are whatever tab was loaded last.

This has persisted through several builds over the past couple of weeks. Every other tab/function in KoLMafia loads/works without any error. I was hoping it would resolve itself, but here we are.

Here are some error logs:

Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13508, Windows 8, Java 1.7.0_45
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread of KoL's
 Gameplay-Discussion forum. If you would like the KoLmafia dev team
 to look at it, please write a bug report at kolmafia.us. Include
 specific information about what you were doing when you made this
 and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Thu Jan 09 06:20:09 EST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded
class java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at net.sourceforge.kolmafia.CreateFrameRunnable.runConstruction(CreateFrameRunnable.java:286)
	at net.sourceforge.kolmafia.CreateFrameRunnable.createFrame(CreateFrameRunnable.java:182)
	at net.sourceforge.kolmafia.CreateFrameRunnable.run(CreateFrameRunnable.java:164)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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$1.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.IllegalArgumentException: setSelectedIndex: 21 out of bounds
	at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel.setSelectedIndex(RestoreOptionsPanel.java:216)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel.access$500(RestoreOptionsPanel.java:58)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel$ManaOptionsPanel.<init>(RestoreOptionsPanel.java:347)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel.<init>(RestoreOptionsPanel.java:76)
	at net.sourceforge.kolmafia.swingui.AdventureFrame.getSouthernTabs(AdventureFrame.java:222)
	at net.sourceforge.kolmafia.swingui.AdventureFrame.<init>(AdventureFrame.java:100)
	... 21 more
net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded
class java.lang.IllegalArgumentException: setSelectedIndex: 21 out of bounds
java.lang.IllegalArgumentException: setSelectedIndex: 21 out of bounds
	at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel.setSelectedIndex(RestoreOptionsPanel.java:216)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel.access$500(RestoreOptionsPanel.java:58)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel$ManaOptionsPanel.<init>(RestoreOptionsPanel.java:347)
	at net.sourceforge.kolmafia.swingui.panel.RestoreOptionsPanel.<init>(RestoreOptionsPanel.java:76)
	at net.sourceforge.kolmafia.swingui.AdventureFrame.getSouthernTabs(AdventureFrame.java:222)
	at net.sourceforge.kolmafia.swingui.AdventureFrame.<init>(AdventureFrame.java:100)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at net.sourceforge.kolmafia.CreateFrameRunnable.runConstruction(CreateFrameRunnable.java:286)
	at net.sourceforge.kolmafia.CreateFrameRunnable.createFrame(CreateFrameRunnable.java:182)
	at net.sourceforge.kolmafia.CreateFrameRunnable.run(CreateFrameRunnable.java:164)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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$1.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)
net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13508, Windows 8, Java 1.7.0_45
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Please note: do not post this log in the KoLmafia thread of KoL's
 Gameplay-Discussion forum. If you would like the KoLmafia dev team
 to look at it, please write a bug report at kolmafia.us. Include
 specific information about what you were doing when you made this
 and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Timestamp: Thu Jan 09 06:22:33 EST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded
class java.lang.NullPointerException: null
java.lang.NullPointerException
	at net.sourceforge.kolmafia.KoLDesktop.showComponent(KoLDesktop.java:314)
	at net.sourceforge.kolmafia.CreateFrameRunnable.createFrame(CreateFrameRunnable.java:228)
	at net.sourceforge.kolmafia.CreateFrameRunnable.run(CreateFrameRunnable.java:164)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(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$1.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)
net.sourceforge.kolmafia.swingui.AdventureFrame could not be loaded
 
Last edited:

lostcalpolydude

Developer
Staff member
With mafia closed, try opening <charactername>_prefs.txt in a basic text editor and removing the line that starts with AdventureFrame= .
 

Bale

Minion
Edit: There is no space between 'Fra' and 'me.' I don't know why the forum is displaying this.

If you lack spaces, the forum software will introduce a space every 45 characters. Code tags are useful since they prevent the forum from modifying formatting in that way.
 

Veracity

Developer
Staff member
Well, I am sure that has an invalid value: it is supposed to be between -0.05 to 0.95, and you have it set to 1.0 or higher - but revision 13510 will correctly choose the maximum index in the dropdown rather than that index + 1 (hence the ABE) when given too big a value.
 

Malurth

Member
Ayup, the lastest build fixed it. Thanks a ton, Veracity.

(Also, my manaBurningThreshold was/is apparently at a whopping 635.0. I had been fiddling with mana burning, but I don't know how that happened @_@)
 
Last edited:
Top