java.sql.SQLException: Query can not be null or empty

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 807587, 1 year ago
via Google Groups by Christian Robert, 1 month ago
Error during query: Unexpected Exception: java.lang.ArrayIndexOutOfBoundsException message given: 26
java.sql.SQLException: Query can not be null or empty
at com.mysql.jdbc.Connection.execSQL(Connection.java:2206)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2181)
at com.mysql.jdbc.Statement.executeQuery(Statement.java:1158)
at PeptId.Connect.dbRead(Connect.java:66)
at PeptId.CorrTableModel.(CorrTableModel.java:28)
at PeptId.ViewRes.initGUI(ViewRes.java:65)
at PeptId.ViewRes.(ViewRes.java:31)
at PeptId.ViewRes.showGUI(ViewRes.java:207)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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