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

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 Coderanch by S Babs, 1 year ago
String index out of range: 1
via Google Groups by Nicola, 1 month ago
via Oracle Community by 807606, 8 months ago
String index out of range: 1
via Oracle Community by 843854, 1 year ago
String index out of range: 1
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:455)
at java.util.regex.Matcher.appendReplacement(Matcher.java:532)
at java.util.regex.Matcher.replaceAll(Matcher.java:636)
at java.lang.String.replaceAll(String.java:1706)
at undefined.ReplaceString.main(ReplaceString.java:6)

Users with the same issue

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

Write tip

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