• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

geting error while loading data into JTable at run time

 
Pankaj Jha
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most likely one of your columns had no data. So when it tried the getValueAt() the data type was not known.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic