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(
at com.mysql.jdbc.Connection.execSQL(
at com.mysql.jdbc.Statement.executeQuery(
at PeptId.Connect.dbRead(
at PeptId.CorrTableModel.(
at PeptId.ViewRes.initGUI(
at PeptId.ViewRes.(
at PeptId.ViewRes.showGUI(

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.