File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: geting error while loading data into JTable at run time