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

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by mibby
, 1 year ago
String index out of range: 38
via coderanch.com by Unknown author, 2 years ago
via Coderanch by Ivan Jouikov, 1 year ago
String index out of range: 84
java.lang.StringIndexOutOfBoundsException: String index out of range: 16
at java.lang.String.charAt(String.java:658)
at java.lang.Character.codePointAt(Character.java:4866)
at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4946)
at java.util.regex.Pattern$Curly.match0(Pattern.java:4260)
at java.util.regex.Pattern$Curly.match(Pattern.java:4234)
at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4965)
at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4965)
at java.util.regex.Pattern$CIBackRef.match(Pattern.java:4965)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
at java.util.regex.Pattern$Pos.match(Pattern.java:5060)
at java.util.regex.Pattern$GroupTail.match(Pattern.java:4717)
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3777)
at java.util.regex.Pattern$GroupHead.match(Pattern.java:4658)
at java.util.regex.Pattern$Start.match(Pattern.java:3461)
at java.util.regex.Matcher.search(Matcher.java:1248)
at java.util.regex.Matcher.find(Matcher.java:637)
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)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:499)
at net.minecraft.server.v1_10_R1.PlayerConnection.chat(PlayerConnection.java:1304)
at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1219)
at net.minecraft.server.v1_10_R1.PacketPlayInChat$1.run(PacketPlayInChat.java:39)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

6 times, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 week ago
Once, 2 weeks ago
Once, 2 weeks ago
3 times, 1 month ago

Write tip

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