drneau.com Forum Index drneau.com
A discussion board for drneau.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BUG: Table Consolidation

 
Post new topic   Reply to topic    drneau.com Forum Index -> Seating
View previous topic :: View next topic  
Author Message
Java2Junkie
"Twos full of Threes"


Joined: 14 May 2005
Posts: 134
Location: Waltham, MA

PostPosted: Fri Feb 27, 2009 10:19 am    Post subject: BUG: Table Consolidation Reply with quote

Entering a tounament containing 56 players. I got the following error when consolidating to 6 tables (9 players per table). Looking at the Seating panel, the number of seated players is 50. Four players were left unseated.

Code:
User's Description of Problem:
Consolidate from 7 tables to 6 tables

Date: Fri Feb 27 11:08:58 EST 2009
Build: February 23 2009 - 2040
Exception: class java.lang.ArrayIndexOutOfBoundsException
Stack Trace:
java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
   at java.util.Vector.get(Unknown Source)
   at com.drneau.tournamentManager.l.a.db.e.i(e.java:97)
   at com.drneau.tournamentManager.l.a.db.e.a(e.java:798)
   at com.drneau.tournamentManager.l.a.db.e.a(e.java:62)
   at com.drneau.tournamentManager.l.a.n.p.a(p.java:43)
   at com.drneau.tournamentManager.l.a.ab.w.actionPerformed(w.java:4)
   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.AWTEventMulticaster.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 com.drneau.tournamentManager.l.b.b.dispatchEvent(b.java:1)
   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)
Back to top
View user's profile Send private message
drneau
Site Admin


Joined: 13 Feb 2005
Posts: 2385
Location: Woodbury, MN

PostPosted: Sat Feb 28, 2009 12:21 pm    Post subject: Reply with quote

Fixed for the next release. I'm actually surprised nobody has run into this before.

The random seating wizard grabs the initial list of active tables that have space when it is called by going through all tables and ignoring all tables that aren't active and don't have space.

The bug was that it was testing for space with (availableSeatCount > 1). D'oh!

BTW, I also noticed that the random seating wizard is backloading tables...so the tables lower on the list always get loaded first. That shouldn't be happening either, and that will be fixed for next release.
_________________
--
Dr. Neau (not a real doctor)
http://drneau.com
http://home.comcast.net/~jneau
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    drneau.com Forum Index -> Seating All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group