Bug - Edit All Contained Pieces

Hey guys, I’m using the latest build of Vassal but this also happened in 3.1.6.

I chose “Edit all Contained Pieces” on a folder in the Piece Palette. After adding a prototype, I tried to move it higher in the list of traits when this was thrown:

[code]26 Jun 2009 07:52:20.049 0 – Starting
26 Jun 2009 07:52:20.050 0 – OS Windows Vista
26 Jun 2009 07:52:20.050 0 – Java version 1.6.0_03
26 Jun 2009 07:52:20.050 0 – VASSAL version 3.1.7-svn5773
26 Jun 2009 07:52:20.073 0 – Manager
26 Jun 2009 07:52:29.827 0 – Loading module file C:\Users\Public\Gaming Stuff\Iron Tide\Iron_Tide 1.9.vmod
26 Jun 2009 07:52:29.828 0 – Loading module Iron Tide
26 Jun 2009 07:52:29.830 0 C:\Program Files\Java\jre1.6.0_03\bin\java -Xms256M -Xmx512M -DVASSAL.id=1 -cp lib\Vengine.jar;Vengine.jar VASSAL.launch.Editor
26 Jun 2009 07:52:32.564 1 – Iron Tide version 1.9
26 Jun 2009 07:52:32.564 1

26 Jun 2009 07:55:31.709 1 – Exiting
26 Jun 2009 07:55:34.771 0 – Loading module file C:\Users\Public\Gaming Stuff\Iron Tide\Iron_Tide 1.9.vmod
26 Jun 2009 07:55:34.774 0 – Loading module Iron Tide
26 Jun 2009 07:55:34.777 0 C:\Program Files\Java\jre1.6.0_03\bin\java -Xms256M -Xmx512M -DVASSAL.id=2 -cp lib\Vengine.jar;Vengine.jar VASSAL.launch.Editor
26 Jun 2009 07:55:37.496 2 – Iron Tide version 1.9
26 Jun 2009 07:55:37.496 2

26 Jun 2009 07:56:25.709 2 java.lang.ArrayIndexOutOfBoundsException: 3 >= 3
at java.util.Vector.elementAt(Unknown Source)
at javax.swing.DefaultListModel.elementAt(Unknown Source)
at VASSAL.counters.PieceDefiner.moveDecoratorUp(PieceDefiner.java:496)
at VASSAL.counters.MassPieceDefiner.moveDecoratorUp(MassPieceDefiner.java:106)
at VASSAL.counters.PieceDefiner$9.actionPerformed(PieceDefiner.java:423)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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.pumpEventsForFilter(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at VASSAL.configure.EditContainedPiecesAction.actionPerformed(EditContainedPiecesAction.java:56)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(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)[/code]

I’ve seen that bug before, but I wasn’t able to track it down. That’s an old bug.

  • M.

2009/6/26 bsmith <messages@forums.vassalengine.org (messages@forums.vassalengine.org)>

Post generated using Mail2Forum (mail2forum.com)

This has the signature of a threading bug: a low-level exception being thrown from within a Swing component. Probably something that’s being done in a background thread need to to move the Event Dispatch thread.

rk

Post generated using Mail2Forum (mail2forum.com)