java.sql.SQLException: Before start of result set

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

,

Make sure you are using InnoDB storage engine and READ-COMMITTED transaction isolation level and increase the database server innodb_lock_wait_timeout variable to about 500.

Solutions on the web

via bukkit.org by Unknown author, 1 year ago
Before start of result set
via f-sim.com by Unknown author, 2 years ago
via Stack Overflow by Shahzaib
, 2 years ago
Before start of result set
via Stack Overflow by Unknown author, 2 years ago
Before start of result set
java.sql.SQLException: Before start of result set
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)
at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:841)
at com.mysql.jdbc.ResultSetImpl.getStringInternal(ResultSetImpl.java:5656)
at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5576)
at me.areoace.SQL.MySQL.getMembers(MySQL.java:93)
at me.areoace.Clans.Listeners.interactListener.playerJoin(interactListener.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487)
at net.minecraft.server.v1_8_R3.PlayerList.onPlayerJoin(PlayerList.java:298)
at net.minecraft.server.v1_8_R3.PlayerList.a(PlayerList.java:157)
at net.minecraft.server.v1_8_R3.LoginListener.b(LoginListener.java:144)
at net.minecraft.server.v1_8_R3.LoginListener.c(LoginListener.java:54)
at net.minecraft.server.v1_8_R3.NetworkManager.a(NetworkManager.java:231)
at net.minecraft.server.v1_8_R3.ServerConnection.c(ServerConnection.java:148)
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:814)
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374)
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654)
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

8 times, 1 day ago
4 times, 2 days ago
18 times, 5 days ago
2 times, 1 week ago
326 times, 2 weeks ago

Write tip

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