java.lang.StringIndexOutOfBoundsException

String index out of range: 38

Samebug tips1

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1214

  • via GitHub by mibby
    ,
  • via GitHub by aadrian
    ,
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: 38 at java.lang.String.charAt(String.java:658)[?:1.8.0_102] at java.lang.Character.codePointAt(Character.java:4866)[?:1.8.0_102] at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4946)[?:1.8.0_102] at java.util.regex.Pattern$Curly.match0(Pattern.java:4260)[?:1.8.0_102] at java.util.regex.Pattern$Curly.match(Pattern.java:4234)[?:1.8.0_102] at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4965)[?:1.8.0_102] at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4965)[?:1.8.0_102] at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4965)[?:1.8.0_102] at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)[?:1.8.0_102] at java.util.regex.Pattern$Pos.match(Pattern.java:5060)[?:1.8.0_102] at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)[?:1.8.0_102] at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777)[?:1.8.0_102] at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)[?:1.8.0_102] at java.util.regex.Pattern$Start.match(Pattern.java:3461)[?:1.8.0_102] at java.util.regex.Matcher.search(Matcher.java:1248)[?:1.8.0_102] at java.util.regex.Matcher.find(Matcher.java:637)[?:1.8.0_102] at java.util.regex.Matcher.replaceAll(Matcher.java:951)[?:1.8.0_102] at com.pwn9.filter.util.SimpleString.replaceText(SimpleString.java:45)[?:?] at com.pwn9.filter.engine.rules.action.core.Replace.execute(Replace.java:54)[?:?] at com.pwn9.filter.engine.rules.Rule.apply(Rule.java:210)[?:?] at com.pwn9.filter.engine.rules.chain.RuleChain.apply(RuleChain.java:100)[?:?] at com.pwn9.filter.engine.rules.chain.RuleChain.execute(RuleChain.java:105)[?:?] at com.pwn9.filter.bukkit.listener.PwnFilterPlayerListener.onPlayerChat(PwnFilterPlayerListener.java:101)[?:?] at com.pwn9.filter.bukkit.listener.PwnFilterPlayerListener.lambda$activate$29(PwnFilterPlayerListener.java:133)[?:?] at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:74)[patched_1.10.2.jar:git-Paper-845] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)[patched_1.10.2.jar:git-Paper-845] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)[patched_1.10.2.jar:git-Paper-845] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499)[patched_1.10.2.jar:git-Paper-845] at net.minecraft.server.v1_10_R1.PlayerConnection.chat(PlayerConnection.java:1304)[patched_1.10.2.jar:git-Paper-845] at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1219)[patched_1.10.2.jar:git-Paper-845] at net.minecraft.server.v1_10_R1.PacketPlayInChat$1.run(PacketPlayInChat.java:39)[patched_1.10.2.jar:git-Paper-845] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_102] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_102] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_102] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_102]

    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

    tyson925tyson925
    6 times, last one
    rprp
    Once,
    zsambokizsamboki
    Once,
    poroszdporoszd
    14 times, last one
    Hiren AmaliyarHiren Amaliyar
    4 times, last one
    31 more bugmates