This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes geting error while loading data into JTable at run time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "geting error while loading data into JTable at run time" Watch "geting error while loading data into JTable at run time" New topic
Author

geting error while loading data into JTable at run time

Pankaj Jha
Greenhorn

Joined: May 20, 2000
Posts: 21
hi gurus,
i am getting follwing errors while loading data in the table at run time what could be the cause....

Exception occurred during event dispatching:
java.lang.NullPointerException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.NullPointerException()
java.lang.String(java.lang.String)
java.lang.String(java.lang.String)
java.lang.Object dcr.com.dtracker.ui.ManageProjectScreen$TableValues.getValueAt(int, int)
java.lang.Object javax.swing.JTable.getValueAt(int, int)
java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintCell(java.awt.Graphics, java.awt.Rectangle, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintRow(java.awt.Graphics, int)
void javax.swing.plaf.basic.BasicTableUI.paint(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.JComponent.paintComponent(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JViewport.paintViaBackingStore(java.awt.Graphics, java.awt.Rectangle)
void javax.swing.JViewport.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JLayeredPane.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void java.awt.Container.paint(java.awt.Graphics)
void javax.swing.JFrame.update(java.awt.Graphics)
void sun.awt.windows.WComponentPeer.handleEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
Exception occurred during event dispatching:
java.lang.NullPointerException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.NullPointerException()
java.lang.String(java.lang.String)
java.lang.String(java.lang.String)
java.lang.Object dcr.com.dtracker.ui.ManageProjectScreen$TableValues.getValueAt(int, int)
java.lang.Object javax.swing.JTable.getValueAt(int, int)
java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintCell(java.awt.Graphics, java.awt.Rectangle, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintRow(java.awt.Graphics, int)
void javax.swing.plaf.basic.BasicTableUI.paint(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.JComponent.paintComponent(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JViewport.paintViaBackingStore(java.awt.Graphics)
void javax.swing.JViewport.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JLayeredPane.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void java.awt.Container.paint(java.awt.Graphics)
void sun.awt.windows.WComponentPeer.handleEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()
Exception occurred during event dispatching:
java.lang.NullPointerException
java.lang.Throwable()
java.lang.Exception()
java.lang.RuntimeException()
java.lang.NullPointerException()
java.lang.String(java.lang.String)
java.lang.String(java.lang.String)
java.lang.Object dcr.com.dtracker.ui.ManageProjectScreen$TableValues.getValueAt(int, int)
java.lang.Object javax.swing.JTable.getValueAt(int, int)
java.awt.Component javax.swing.JTable.prepareRenderer(javax.swing.table.TableCellRenderer, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintCell(java.awt.Graphics, java.awt.Rectangle, int, int)
void javax.swing.plaf.basic.BasicTableUI.paintRow(java.awt.Graphics, int)
void javax.swing.plaf.basic.BasicTableUI.paint(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
void javax.swing.JComponent.paintComponent(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JViewport.paintViaBackingStore(java.awt.Graphics)
void javax.swing.JViewport.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void javax.swing.JLayeredPane.paint(java.awt.Graphics)
void javax.swing.JComponent.paintChildren(java.awt.Graphics)
void javax.swing.JComponent.paint(java.awt.Graphics)
void java.awt.Container.paint(java.awt.Graphics)
void sun.awt.windows.WComponentPeer.handleEvent(java.awt.AWTEvent)
void java.awt.Component.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Container.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Window.dispatchEventImpl(java.awt.AWTEvent)
void java.awt.Component.dispatchEvent(java.awt.AWTEvent)
void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
boolean java.awt.EventDispatchThread.pumpOneEvent()
void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
void java.awt.EventDispatchThread.run()

please help me!!
thanks

Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Most likely one of your columns had no data. So when it tried the getValueAt() the data type was not known.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: geting error while loading data into JTable at run time
 
Similar Threads
Table sorter going nuts once added another itam
JTable woes
Why NullPointerException?
How do I implement my own table model (using JTable)?
how to "clear" jTable