Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#6 NPE in HelpfulJTable using SQL plugin

closed-out-of-date
None
5
2003-05-29
2001-12-17
Anonymous
No

I've intermittently had problems with the 'Copy as
CSV' function of the resultset window of the SQL
plugin. After having problems again today, I finally
popped open the Activity Log today to see if there
were any messages. The error text is as follows:

[error] AWT-EventQueue-0: Exception occurred during
event dispatching:
[error] AWT-EventQueue-0:
java.lang.NullPointerException
[error] AWT-EventQueue-0: at
sql.ResultSetWindowPopup$CopyActionHandler.actionPerfor
med(Unknown Source)
[error] AWT-EventQueue-0: at
javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
[error] AWT-EventQueue-0: at
javax.swing.AbstractButton$ForwardActionEvents.actionPe
rformed(AbstractButton.java:1504)
[error] AWT-EventQueue-0: at
javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
[error] AWT-EventQueue-0: at
javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
[error] AWT-EventQueue-0: at
javax.swing.AbstractButton.doClick
(AbstractButton.java:279)
[error] AWT-EventQueue-0: at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandle
r.mouseReleased(BasicMenuItemUI.java:886)
[error] AWT-EventQueue-0: at
java.awt.Component.processMouseEvent
(Component.java:3715)
[error] AWT-EventQueue-0: at
java.awt.Component.processEvent(Component.java:3544)
[error] AWT-EventQueue-0: at
java.awt.Container.processEvent(Container.java:1164)
[error] AWT-EventQueue-0: at
java.awt.Component.dispatchEventImpl
(Component.java:2593)
[error] AWT-EventQueue-0: at
java.awt.Container.dispatchEventImpl
(Container.java:1213)
[error] AWT-EventQueue-0: at
java.awt.Component.dispatchEvent(Component.java:2497)
[error] AWT-EventQueue-0: at
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
[error] AWT-EventQueue-0: at
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2216)
[error] AWT-EventQueue-0: at
java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2125)
[error] AWT-EventQueue-0: at
java.awt.Container.dispatchEventImpl
(Container.java:1200)
[error] AWT-EventQueue-0: at
java.awt.Window.dispatchEventImpl(Window.java:914)
[error] AWT-EventQueue-0: at
java.awt.Component.dispatchEvent(Component.java:2497)
[error] AWT-EventQueue-0: at
java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:93)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.run
(EventDispatchThread.java:85)

I also found a whole slew of additional exceptions
thrown by the HelpfulJTable, although these were not
caused by the attempted cut and paste. All occurences
of this error were found before the copy was even
attempted. Each of these errors is identical and
reads as follows:

[error] AWT-EventQueue-0:
java.lang.NullPointerException
[error] AWT-EventQueue-0: at
common.gui.HelpfulJTable.getCellTextWidth
(HelpfulJTable.java:391)
[error] AWT-EventQueue-0: at
common.gui.HelpfulJTable.cellTextIsFullyVisible
(HelpfulJTable.java:379)
[error] AWT-EventQueue-0: at
common.gui.HelpfulJTable.getToolTipLocation
(HelpfulJTable.java:246)
[error] AWT-EventQueue-0: at
common.gui.HelpfulJTable.getToolTipText
(HelpfulJTable.java:230)
[error] AWT-EventQueue-0: at
javax.swing.ToolTipManager.mouseMoved
(ToolTipManager.java:522)
[error] AWT-EventQueue-0: at
java.awt.AWTEventMulticaster.mouseMoved
(AWTEventMulticaster.java:271)
[error] AWT-EventQueue-0: at
java.awt.Component.processMouseMotionEvent
(Component.java:3756)
[error] AWT-EventQueue-0: at
javax.swing.JComponent.processMouseMotionEvent
(JComponent.java:2299)
[error] AWT-EventQueue-0: at
java.awt.Component.processEvent(Component.java:3548)
[error] AWT-EventQueue-0: at
java.awt.Container.processEvent(Container.java:1164)
[error] AWT-EventQueue-0: at
java.awt.Component.dispatchEventImpl
(Component.java:2593)
[error] AWT-EventQueue-0: at
java.awt.Container.dispatchEventImpl
(Container.java:1213)
[error] AWT-EventQueue-0: at
java.awt.Component.dispatchEvent(Component.java:2497)
[error] AWT-EventQueue-0: at
java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:2451)
[error] AWT-EventQueue-0: at
java.awt.LightweightDispatcher.processMouseEvent
(Container.java:2244)
[error] AWT-EventQueue-0: at
java.awt.LightweightDispatcher.dispatchEvent
(Container.java:2125)
[error] AWT-EventQueue-0: at
java.awt.Container.dispatchEventImpl
(Container.java:1200)
[error] AWT-EventQueue-0: at
java.awt.Window.dispatchEventImpl(Window.java:914)
[error] AWT-EventQueue-0: at
java.awt.Component.dispatchEvent(Component.java:2497)
[error] AWT-EventQueue-0: at
java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:93)
[error] AWT-EventQueue-0: at
java.awt.EventDispatchThread.run
(EventDispatchThread.java:85)

Per John's handy Bug Report macro, here is my setup
info:

[message] Log: When reporting bugs, please include the
following information:
[message] Log: java.version=1.3.1
[message] Log: java.vendor=Sun Microsystems Inc.
[message] Log: java.compiler=null
[message] Log: os.name=Windows 2000
[message] Log: os.version=5.0
[message] Log: os.arch=x86
[message] Log: user.home=C:\Documents and
Settings\stevesnider
[message] Log: java.home=C:\jdk1.3.1\jre
[notice] jEdit: jEdit version 3.2.2

Please let me know if you need any more info.

Thanks,
Steve (snides)

Discussion

  • Logged In: YES
    user_id=681

    Sorry, I did not have time to look at it. Is it still a problem?

     
    • assigned_to: nobody --> svu
    • status: open --> closed-out-of-date
     
  • Logged In: YES
    user_id=681

    Closing because of lack of feedback:)