Hi,

Please, can you tell us, which Java Version you are using?

You can find this within SquirreL SQL. Go to "Help > About > System" Then look for the row with the key "java.runtime.version" and tell us the version.

It seems, that this is not a bug of SquirreL SQL, it looks more than a known Java 6 bug (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6907974). But to confirm this, we need to know, which Java version you are using.


Stefan


On 2012-10-19 19:27, pflick wrote:
I'm using Squirrel 3.4.0.  I ran a query and want to export the results to a .csv file.  When I right-click on the results and select Export CSV nothing happens. In the error log is the following stack trace.  I'm running Squirrel on Windows 7 32-bit.  The Scripts->Store result of SQL in file also does not work. 

Thanks for any help. 

ava.lang.RuntimeException: java.lang.NullPointerException
    at net.sourceforge.squirrel_sql.fw.gui.action.AbstractExportCommand.createTableExportController(AbstractExportCommand.java:365)
    at net.sourceforge.squirrel_sql.fw.gui.action.AbstractExportCommand.execute(AbstractExportCommand.java:184)
    at net.sourceforge.squirrel_sql.fw.gui.TablePopupMenu$ExportCsvAction.actionPerformed(TablePopupMenu.java:443)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at net.sourceforge.squirrel_sql.client.Main$1.dispatchEvent(Main.java:99)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.NullPointerException
    at java.nio.charset.Charset.put(Unknown Source)
    at java.nio.charset.Charset.access$300(Unknown Source)
    at java.nio.charset.Charset$4.run(Unknown Source)
    at java.nio.charset.Charset$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.nio.charset.Charset.availableCharsets(Unknown Source)
    at net.sourceforge.squirrel_sql.fw.gui.action.TableExportCsvDlg.getSeparatorPanel(TableExportCsvDlg.java:304)
    at net.sourceforge.squirrel_sql.fw.gui.action.TableExportCsvDlg.<init>(TableExportCsvDlg.java:101)
    at net.sourceforge.squirrel_sql.fw.gui.action.TableExportCsvController.createDialog(TableExportCsvController.java:80)
    at net.sourceforge.squirrel_sql.fw.gui.action.TableExportCsvController.<init>(TableExportCsvController.java:54)
    at net.sourceforge.squirrel_sql.fw.gui.action.AbstractExportCommand$7.run(AbstractExportCommand.java:356)
    at net.sourceforge.squirrel_sql.fw.gui.GUIUtils.processOnSwingEventThread(GUIUtils.java:346)
    at net.sourceforge.squirrel_sql.fw.gui.action.AbstractExportCommand.createTableExportController(AbstractExportCommand.java:359)
    ... 41 more





------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct


_______________________________________________
Squirrel-sql-users mailing list
Squirrel-sql-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/squirrel-sql-users