Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringIndexOutOfBoundsException > PlayerTracker.onPlayerLogin #973

Closed
Selbie opened this issue Jun 27, 2014 · 2 comments
Closed

StringIndexOutOfBoundsException > PlayerTracker.onPlayerLogin #973

Selbie opened this issue Jun 27, 2014 · 2 comments

Comments

@Selbie
Copy link

Selbie commented Jun 27, 2014

I verified this issue, the cause of it is that my name had no '_' charachter inside my unique identifier when doing:

Logfile:

2014-06-28 01:14:49 [SEVERE] [ForgeModLoader] A critical error occured handling the onPlayerLogin event with player tracker com.forgeessentials.core.PlayerTracker
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at com.forgeessentials.data.api.TypeMultiValInfo.getUIDFromUnique(TypeMultiValInfo.java:130)
at com.forgeessentials.data.SQLDataDriver.valueToField(SQLDataDriver.java:987)
at com.forgeessentials.data.SQLDataDriver.createTaggedClassFromResult(SQLDataDriver.java:310)
at com.forgeessentials.data.SQLDataDriver.loadData(SQLDataDriver.java:144)
at com.forgeessentials.data.AbstractDataDriver.loadObject(AbstractDataDriver.java:51)
at com.forgeessentials.core.PlayerInfo.getPlayerInfo(PlayerInfo.java:104)
at com.forgeessentials.core.PlayerTracker.onPlayerLogin(PlayerTracker.java:12)
at cpw.mods.fml.common.registry.GameRegistry.onPlayerLogin(GameRegistry.java:357)
at cpw.mods.fml.common.network.FMLNetworkHandler.handlePlayerLogin(FMLNetworkHandler.java:300)
at net.minecraft.server.management.ServerConfigurationManager.func_72355_a(ServerConfigurationManager.java:156)
at net.minecraft.network.NetLoginHandler.completeConnection(NetLoginHandler.java:201)
at cpw.mods.fml.common.network.FMLNetworkHandler.handleClientConnection(FMLNetworkHandler.java:167)
at cpw.mods.fml.common.network.FMLNetworkHandler.onConnectionReceivedFromClient(FMLNetworkHandler.java:121)
at net.minecraft.network.NetLoginHandler.func_72529_d(NetLoginHandler.java:185)
at net.minecraft.network.NetLoginHandler.func_72532_c(NetLoginHandler.java:71)
at net.minecraft.server.ServerListenThread.func_71766_a(ServerListenThread.java:55)
at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(SourceFile:29)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:691)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:276)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2014-06-28 01:14:49 [INFO] [ForgeEssentials] Running command scripts for player SelbieNL
2014-06-28 01:14:49 [INFO] [ForgeEssentials] Reading command script file /minecraft/./ForgeEssentials/scripting/login/player/SelbieNL.txt
2014-06-28 01:14:49 [WARNING] [ForgeEssentials] Could not find command script for player SelbieNL, ignoring!
2014-06-28 01:14:49 [INFO] [ForgeEssentials] Reading command script file /minecraft/./ForgeEssentials/scripting/login/group/Owners.txt
2014-06-28 01:14:49 [WARNING] [ForgeEssentials] Could not find command script for group Owners[null, ?2[Admin], , GLOBAL, 999], ignoring!
2014-06-28 01:14:50 [INFO] [STDOUT] Loading Player: SelbieNL
2014-06-28 01:14:50 [INFO] [STDOUT] Sending serverside check to: SelbieNL
2014-06-28 01:14:51 [INFO] [GraviGun] [2.0.0] Recieved client info from SelbieNL
2014-06-28 01:14:51 [INFO] [PortalGun] [2.0.2] Recieved client info from SelbieNL
2014-06-28 01:14:52 [INFO] [STDERR] java.lang.StringIndexOutOfBoundsException: String index out of range: -1
2014-06-28 01:14:52 [INFO] [STDERR] at java.lang.String.substring(Unknown Source)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.data.api.TypeMultiValInfo.getUIDFromUnique(TypeMultiValInfo.java:130)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.data.SQLDataDriver.valueToField(SQLDataDriver.java:987)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.data.SQLDataDriver.createTaggedClassFromResult(SQLDataDriver.java:310)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.data.SQLDataDriver.loadData(SQLDataDriver.java:144)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.data.AbstractDataDriver.loadObject(AbstractDataDriver.java:51)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.core.PlayerInfo.getPlayerInfo(PlayerInfo.java:104)
2014-06-28 01:14:52 [INFO] [STDERR] at com.forgeessentials.util.TeleportCenter.tickStart(TeleportCenter.java:78)
2014-06-28 01:14:52 [INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.tickStart(FMLCommonHandler.java:122)
2014-06-28 01:14:52 [INFO] [STDERR] at cpw.mods.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:287)
2014-06-28 01:14:52 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:576)
2014-06-28 01:14:52 [INFO] [STDERR] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
2014-06-28 01:14:52 [INFO] [STDERR] at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2014-06-28 01:14:52 [SEVERE] [Minecraft-Server] Encountered an unexpected exception StringIndexOutOfBoundsException
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(Unknown Source)
at com.forgeessentials.data.api.TypeMultiValInfo.getUIDFromUnique(TypeMultiValInfo.java:130)
at com.forgeessentials.data.SQLDataDriver.valueToField(SQLDataDriver.java:987)
at com.forgeessentials.data.SQLDataDriver.createTaggedClassFromResult(SQLDataDriver.java:310)
at com.forgeessentials.data.SQLDataDriver.loadData(SQLDataDriver.java:144)
at com.forgeessentials.data.AbstractDataDriver.loadObject(AbstractDataDriver.java:51)
at com.forgeessentials.core.PlayerInfo.getPlayerInfo(PlayerInfo.java:104)
at com.forgeessentials.util.TeleportCenter.tickStart(TeleportCenter.java:78)
at cpw.mods.fml.common.FMLCommonHandler.tickStart(FMLCommonHandler.java:122)
at cpw.mods.fml.common.FMLCommonHandler.onPreServerTick(FMLCommonHandler.java:287)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:576)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)
at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)
2014-06-28 01:14:52 [SEVERE] [Minecraft-Server] This crash report has been saved to: /minecraft/./crash-reports/crash-2014-06-28_01.14.52-server.txt
stop

@yuuka-miya
Copy link
Member

Can you get on IRC? I'll try and help there.

@yuuka-miya
Copy link
Member

Once again, either send me a PM on IRC, or if you're capable of fixing it yourself, submit a pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants