java.sql.SQLException: Before start of result set


Samebug tips1

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


7 months ago
Expert tip

Solutions on the web277

Solution icon of web
via bukkit.org by Unknown author, 1 year ago
Before start of result set

Solution icon of github
via GitHub by alyphen
, 6 months ago
Before start of result set

Solution icon of googlegroups
via Google Groups by pn / beherit, 1 month ago
Before start of result set

Solution icon of stackoverflow
via Stack Overflow by ljpv14
, 1 year ago
Before start of result set

Solution icon of stackoverflow
via Stack Overflow by user3871938
, 1 year ago
Before start of result set

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
Before start of result set

Solution icon of stackoverflow
Before start of result set

Solution icon of stackoverflow
Before start of result set

Solution icon of stackoverflow
Before start of result set

Solution icon of stackoverflow
Before start of result set

Stack trace

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 java.lang.reflect.Method.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)

Write tip

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

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 3 months ago
4 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
4 times, 1 year ago
159 more bugmates