java.lang.StringIndexOutOfBoundsException

String index out of range: 2

Solutions on the web4508

  • String index out of range: -2
  • String index out of range: -2
  • via Netbeans Bugzilla by kseptor, 3 weeks ago
    String index out of range: 2
  • Stack trace

    • 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:3189) at cn.nukkit.Player.close(Player.java:3127) 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.<init>(Server.java:452) at cn.nukkit.Nukkit.main(Nukkit.java:65)

    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

    Unknown user
    Once, 1 year ago