Array IndexOutOfBounds Exception
Hello,
i do an application for a chess player association. In an internal frame, I have put a master JTable (Tournament) that list all the Tournament and a Detail JTable (Category) that lists the categories. (a tournament can have 1 or more categories). I have generated the entity classes. I have bind the master JTable and tournaments are listed as expected to, so it's ok. However, I have bind the Detail JTable in a way that it list the categories (in the Detail JTable) of the tournament selected in the Master JTable. I got this error :
GRAVE: Application class esp.ESPApp failed to launch
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:427)
at javax.swing.table.DefaultTableColumnModel.getColum n(DefaultTableColumnModel.java:277)
at esp.ESPView.initComponents(ESPView.java:253)
at esp.ESPView.<init>(ESPView.java:27)
at esp.ESPApp.startup(ESPApp.java:19)
at org.jdesktop.application.Application$1.run(Applica tion.java:171)
at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at
I understand the signification of the error, but I don't understand why it does that?
The binding expression of my Detail JTable is ${selectedElement.classetournoiCollection}
Is selectedElement empty?
I would like to have some help.
Thanks!
Re: Array IndexOutOfBounds Exception
Quote:
Originally Posted by
Mike018
The binding expression of my Detail JTable is ${selectedElement.classetournoiCollection}
That isn't Java. Whatever is it?
db
Re: Array IndexOutOfBounds Exception
Is that... Javascript/ using Jquery?
Re: Array IndexOutOfBounds Exception
Quote:
Originally Posted by
Suende
Is that... Javascript/ using Jquery?
Finally, we made it done with a hancoded sql query instead of binding via the Netbeans GUI Interface.
Re: Array IndexOutOfBounds Exception
Since this was apparently related to some feature of the NetBeans IDE, I'm moving it out of New to Java.
db