java.sql.SQLException: java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

Solutions on the web

via Pentaho BI Platform Tracking by Anthony Carter, 1 year ago
java.lang.NullPointerException
via Pentaho BI Platform Tracking by Anthony Carter, 1 year ago
java.lang.NullPointerException
via Stack Overflow by sebaMelgar
, 2 years ago
via Google Groups by Lothar Kimmeringer, 4 months ago
via symmetricds by moshe1011
, 1 year ago
Cannot convert class java.lang.String to SQL type requested due to java.lang.NullPointerException - null
java.sql.SQLException: java.lang.NullPointerException
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:766)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:874)
at com.mysql.jdbc.Statement.createResultSetUsingServerFetch(Statement.java:520)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1133)
at com.mysql.jdbc.DatabaseMetaData.extractForeignKeyFromCreateTable(DatabaseMetaData.java:1141)
at com.mysql.jdbc.DatabaseMetaData$5.forEach(DatabaseMetaData.java:3231)
at com.mysql.jdbc.DatabaseMetaData$IterateBlock.doForAll(DatabaseMetaData.java:76)
at com.mysql.jdbc.DatabaseMetaData.getImportedKeys(DatabaseMetaData.java:3219)
at mondrian.gui.JdbcMetaData.setAllTables(JdbcMetaData.java:291)
at mondrian.gui.JdbcMetaData.setAllSchemas(JdbcMetaData.java:258)
at mondrian.gui.JdbcMetaData.(JdbcMetaData.java:67)
at mondrian.gui.Workbench.getNewJdbcMetadata(Workbench.java:1975)
at mondrian.gui.Workbench.newJDBCExplorerMenuItemActionPerformed(Workbench.java:1153)
at mondrian.gui.Workbench.access$300(Workbench.java:94)
at mondrian.gui.Workbench$13.actionPerformed(Workbench.java:612)
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(UnknownSource)
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.dispatchEvent(Unknown Source)
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)

Users with the same issue

3 times, 18 hours ago
16 times, 5 days ago
Once, 1 week ago
Once, 1 week ago
116 times, 1 week ago
164 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.