java.sql.SQLException: Operation not allowed after ResultSet closed

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 Stack Overflow by mossaab
, 2 years ago
Operation not allowed after ResultSet closed
via serverfault.com by Unknown author, 2 years ago
via Server Fault by mossaab
, 1 year ago
Operation not allowed after ResultSet closed
via GitHub by yuankui
, 6 months ago
Operation not allowed after ResultSet closed
via mysql.com by Unknown author, 1 year ago
java.sql.SQLException: Operation not allowed after ResultSet closed
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:996)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:935)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:924)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:870)
at com.mysql.jdbc.ResultSetImpl.checkClosed(ResultSetImpl.java:734)
at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:778)
at com.mysql.jdbc.ResultSetImpl.getObject(ResultSetImpl.java:4419)
at com.mypackage.SqlUtils.getResultMapList(SqlUtils.java:66)

Users with the same issue

Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
16 times, 1 day ago
164 more bugmates

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