NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
egster
Joined: 21 Apr 2010 Posts: 1
|
Posted: Wed Apr 21, 2010 8:30 am Post subject: Multiple table columns throw errors |
|
|
Hello!
I'm quite new to NetBeans and currently making my first database application. The problem is with the second (bottom) table, which throws errors and doesen't start:
| Code: | [TopLink Info]: 2010.04.21 10:22:28.312--ServerSession(4875224)--file:/C:/Documents%20and%20Settings/Development/My%20Documents/NetBeansProjects/RentACar/build/classes/-xzPU login successful
21.4.2010 10:22:28 org.jdesktop.application.Application$1 run
SEVERE: Application class rentacar.RentACarApp failed to launch
java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:427)
at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
at rentacar.RentACarView.initComponents(RentACarView.java:419)
at rentacar.RentACarView.<init>(RentACarView.java:39)
at rentacar.RentACarApp.startup(RentACarApp.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class rentacar.RentACarApp failed to launch
at org.jdesktop.application.Application$1.run(Application.java:177)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:427)
at javax.swing.table.DefaultTableColumnModel.getColumn(DefaultTableColumnModel.java:277)
at rentacar.RentACarView.initComponents(RentACarView.java:419)
at rentacar.RentACarView.<init>(RentACarView.java:39)
at rentacar.RentACarApp.startup(RentACarApp.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
... 8 more
BUILD SUCCESSFUL (total time: 3 seconds) |
My application was working fine, then suddenly stopped. If I remove all the columns from the second table and add only one column, it works. As soon as I add another column in the GUI, it throws this error.
Please help!
Thanks! |
|
| Back to top |
|
 |
|
|
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 You can attach files in this forum You can download files in this forum
|
|