java.lang.IndexOutOfBoundsException: No group 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 Raj Guru, 1 year ago
via Oracle Community by 843859, 11 months ago
via Google Groups by Tim Slattery, 2 years ago
via thecodingforums.com by Unknown author, 1 year ago
java.lang.IndexOutOfBoundsException: No group 1
at java.util.regex.Matcher.group(Matcher.java:355)
at java.util.regex.Matcher.appendReplacement(Matcher.java:578)
at java.util.regex.Matcher.replaceAll(Matcher.java:646)
at java.lang.String.replaceAll(String.java:1710)
at testchar.TestChar.main(TestChar.java:22)

Users with the same issue

Once, 7 months ago
3 times, 1 month ago
3 times, 3 weeks ago
4 times, 8 months ago
Once, 9 months ago

Write tip

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