Results 1 to 5 of 5
  1. #1
    Mike018 is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Default 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!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,300
    Rep Power
    20

    Default Re: Array IndexOutOfBounds Exception

    Quote Originally Posted by Mike018 View Post
    The binding expression of my Detail JTable is ${selectedElement.classetournoiCollection}
    That isn't Java. Whatever is it?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    Suende's Avatar
    Suende is offline Member
    Join Date
    Apr 2011
    Posts
    22
    Rep Power
    0

    Default Re: Array IndexOutOfBounds Exception

    Is that... Javascript/ using Jquery?

  4. #4
    Mike018 is offline Member
    Join Date
    Jun 2012
    Posts
    2
    Rep Power
    0

    Default Re: Array IndexOutOfBounds Exception

    Quote Originally Posted by Suende View Post
    Is that... Javascript/ using Jquery?
    Finally, we made it done with a hancoded sql query instead of binding via the Netbeans GUI Interface.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,300
    Rep Power
    20

    Default 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
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. ArrayList IndexOutOfBounds
    By graympa in forum New To Java
    Replies: 7
    Last Post: 05-13-2011, 09:04 AM
  2. Replies: 3
    Last Post: 04-13-2011, 04:07 PM
  3. Java IndexOutOfBounds Exception: Index 0, Size 0
    By Maricica in forum Threads and Synchronization
    Replies: 7
    Last Post: 03-29-2011, 01:01 PM
  4. need help with IndexOutOfBounds error
    By ShinTec in forum Advanced Java
    Replies: 3
    Last Post: 04-29-2010, 09:21 AM
  5. ArrayList IndexOutOfBounds... error
    By Arius in forum New To Java
    Replies: 7
    Last Post: 01-17-2010, 10:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •