java.lang.StringIndexOutOfBoundsException: String index out of range: 2

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

Solutions on the web

java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:210)
at java.lang.StringBuilder.charAt(StringBuilder.java:76)
at jline.console.ConsoleReader.wcwidth(ConsoleReader.java:545)
at jline.console.ConsoleReader.backspace(ConsoleReader.java:1050)
at jline.console.ConsoleReader.backspaceAll(ConsoleReader.java:1036)
at jline.console.ConsoleReader.resetPromptLine(ConsoleReader.java:3859)
at cn.nukkit.command.CommandReader.unstashLine(CommandReader.java:102)
at cn.nukkit.utils.MainLogger.send(MainLogger.java:155)
at cn.nukkit.utils.MainLogger.send(MainLogger.java:141)
at cn.nukkit.utils.MainLogger.info(MainLogger.java:87)
at cn.nukkit.Player.close(Player.java:3292)
at cn.nukkit.Player.close(Player.java:3230)
at org.itxtech.synapseapi.SynapseAPI.handleDataPacket(SynapseAPI.java:362)
at org.itxtech.synapseapi.network.SynapseInterface.handlePacket(SynapseInterface.java:79)
at org.itxtech.synapseapi.network.SynapseInterface.process(SynapseInterface.java:53)
at org.itxtech.synapseapi.SynapseAPI.tick(SynapseAPI.java:251)
at org.itxtech.synapseapi.SynapseAPI$Ticker.run(SynapseAPI.java:221)
at cn.nukkit.scheduler.TaskHandler.run(TaskHandler.java:98)
at cn.nukkit.scheduler.ServerScheduler.mainThreadHeartbeat(ServerScheduler.java:197)
at cn.nukkit.Server.tick(Server.java:975)
at cn.nukkit.Server.tickProcessor(Server.java:776)
at cn.nukkit.Server.start(Server.java:756)
at cn.nukkit.Server.(Server.java:452)
at cn.nukkit.Nukkit.main(Nukkit.java:65)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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