java.sql.SQLException: Before start of result set

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

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • JDBC:Connection Issue When Run program
    via Stack Overflow by hamel123
    ,
  • After End Of Result set error?
    via by Unknown author,
  • GitHub comment 598#140930847
    via GitHub by g0t4
    ,
    • java.sql.SQLException: Before start of result set at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:896) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:885) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:860) at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:790) at com.mysql.jdbc.ResultSetImpl.getDate(ResultSetImpl.java:2012) at com.mysql.jdbc.ResultSetImpl.getDate(ResultSetImpl.java:1978)

    Users with the same issue

    kuldeep
    kuldeep2 times, last one,
    Unknown visitor3 times, last one,
    Unknown visitor1 times, last one,
    ivanszkypeter
    ivanszkypeter454 times, last one,
    linxiaolong
    linxiaolong1 times, last one,
    145 more bugmates