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

via GitHub by geNAZt
, 1 year ago
via GitHub by adampeat74
, 9 months ago
String index out of range: 2
via GitHub by jackbentley
, 1 year ago
String index out of range: 2
via GitHub by lsw46
, 11 months ago
String index out of range: 2
via GitHub by PyroBeast
, 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.AbstractStringBuilder.charAt(AbstractStringBuilder.java:237)
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:104)
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.level.Level.(Level.java:224)
at cn.nukkit.Server.loadLevel(Server.java:1551)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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