SQuirrel 3.1.2, Mac: Error ocured during task execution: nul
A Java SQL client for any JDBC compliant database
Brought to you by:
colbell,
gerdwagner
Error message
I was able to reproduce this issue on Mac OS 10.6.3 as well. My log has the following exception in it:
java.lang.RuntimeException: java.lang.NullPointerException
at net.sourceforge.squirrel_sql.fw.util.TaskThreadPool$MyCallback$1.run(TaskThreadPool.java:161)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at net.sourceforge.squirrel_sql.client.Application$1.dispatchEvent(Application.java:194)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: java.lang.NullPointerException
at net.sourceforge.squirrel_sql.plugins.mssql.MssqlPlugin.iterateIndexes(MssqlPlugin.java:379)
at net.sourceforge.squirrel_sql.plugins.mssql.MssqlPlugin.access$600(MssqlPlugin.java:72)
at net.sourceforge.squirrel_sql.plugins.mssql.MssqlPlugin$IteratorIndexesTask.run(MssqlPlugin.java:362)
at net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82)
at java.lang.Thread.run(Thread.java:637)
I'm curious if the original submitter of this issue had the same exception or maybe was it something else ? Of course I can't reproduce this on Ubuntu, so this is possibly a JVM issue.
Rob
Ok, I see the problem. Somehow the "Defragment Index" menu is being accessed in the SQLServer session menu and there is no session, which causes the plugin to throw NPE. Normally this is not an issue on Linux because the entire Session menu is disabled, but with Mac, the Session menu is in the top application bar and for some reason not disabled. It seems unlikely that the exception I get is identical to the posters, but who knows. In any case this should be relatively easy to fix.
Rob