java.util.regex.PatternSyntaxException: Illegal repetition {userName}

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

Solutions on the web

via Stack Overflow by Boston Star
, 1 year ago
Illegal repetition {userName}
via Stack Overflow by Alphalapz
, 3 months ago
via Oracle Community by 807601, 1 month ago
Illegal repetition near index 1262
via karaf-user by Jean-Baptiste Onofré, 1 year ago
Illegal repetition near index 0 ${jdbc_driver} ^
via karaf-user by eBroots, 1 year ago
Illegal repetition near index 0 ${jdbc_driver} ^
java.util.regex.PatternSyntaxException: Illegal repetition {userName}
at java.util.regex.Pattern.error(Unknown Source)
at java.util.regex.Pattern.closure(Unknown Source)
at java.util.regex.Pattern.sequence(Unknown Source)
at java.util.regex.Pattern.expr(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.util.regex.Pattern.(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.lang.String.replaceAll(Unknown Source)

Users with the same issue

Once, 1 month ago
Once, 4 months ago
12 times, 6 months ago
Once, 6 months ago
Once, 7 months ago

Write tip

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