Bug - Fixed Modifier maximizer gives unexpected error

Southwest

New member
I'm running v16.2 r13516.

Summary:
Modifier maximizer doesn't run and instead throws an "unexpected error".

Steps to reproduce:
  1. Open KoLmafia v16.2 r13516. Login.
  2. Click Tools->Modifier Maximizer.
  3. Select any entry in the "Maximize" drop-down and click the "Update" button.

Expected result:
KoLmafia calculates how to maximize that stat and outputs a list of gear to equip or actions to take in the "Modifier Maximizer" window.

Actual result:
The "Modifier Maximizer" window prints the message "Unexpected error, debug log printed," and doesn't provide any gear/action recommendations. The CLI reads, "Maximizing... Unexpected error, debug log printed."

I've attached the debug log, with a number of instances of this happening.

Thanks!
 

Attachments

  • DEBUG_20140113.txt
    20 KB · Views: 110

jbouzanquet

Member
Maximizer creates ClassCastException

Any expression in the maximizer causes a ClassCastException. Using mafia 13516 on Windows 7, Oracle Java 1.7.45. The error occurs regardless of the maximizer expression, selected adventure location, current outfit, or current familiar. Setting equipment radio button to none prevents error.
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:36:21 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ActionConfirmListener.execute(GenericPanel.java:615)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:36:35 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:627)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:36:36 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:627)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:37:45 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ActionConfirmListener.execute(GenericPanel.java:615)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:37:57 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ActionConfirmListener.execute(GenericPanel.java:615)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:42:00 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:627)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:42:47 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:627)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
         KoLmafia v16.2 r13516, Windows 7, 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: Sun Jan 12 21:44:10 PST 2014
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


Unexpected error, debug log printed.
class java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lnet.sourceforge.kolmafia.AdventureResult;
    at net.sourceforge.kolmafia.SpecialOutfit.getPieces(SpecialOutfit.java:249)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryOutfits(MaximizerSpeculation.java:201)
    at net.sourceforge.kolmafia.maximizer.MaximizerSpeculation.tryAll(MaximizerSpeculation.java:184)
    at net.sourceforge.kolmafia.maximizer.Evaluator.enumerateEquipment(Evaluator.java:1392)
    at net.sourceforge.kolmafia.maximizer.Maximizer.maximize(Maximizer.java:166)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame.maximize(MaximizerFrame.java:195)
    at net.sourceforge.kolmafia.swingui.MaximizerFrame$MaximizerPanel.actionConfirmed(MaximizerFrame.java:240)
    at net.sourceforge.kolmafia.swingui.panel.GenericPanel$ConfirmedListener.execute(GenericPanel.java:627)
    at net.sourceforge.kolmafia.swingui.listener.ThreadedListener.run(ThreadedListener.java:239)
    at net.sourceforge.kolmafia.RequestThread$ThreadWrappedRunnable.run(RequestThread.java:400)
 
Top