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

Solutions on the web

via QOS.ch JIRA by Stuart Douglas, 1 year ago
String index out of range: -1
via QOS.ch JIRA by Stuart Douglas, 1 year ago
String index out of range: -1
via GitHub by mraross
, 1 year ago
String index out of range: 5
via GitHub by BrainStone
, 5 months ago
String index out of range: -79
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:881)
at java.lang.StringBuilder.substring(StringBuilder.java:55)
at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:858)
at java.lang.StringBuilder.subSequence(StringBuilder.java:55)
at ch.qos.cal10n.util.LexicalUtil.convertSpecialCharacters(LexicalUtil.java:42)
at ch.qos.cal10n.util.TokenStream.tokenizeLine(TokenStream.java:146)
at ch.qos.cal10n.util.TokenStream.tokenize(TokenStream.java:67)
at ch.qos.cal10n.util.Parser.(Parser.java:56)
at ch.qos.cal10n.util.CAL10NResourceBundle.read(CAL10NResourceBundle.java:56)
at ch.qos.cal10n.util.CAL10NResourceBundle.(CAL10NResourceBundle.java:50)
at ch.qos.cal10n.util.CAL10NResourceBundleFinder.makePropertyResourceBundle(CAL10NResourceBundleFinder.java:83)
at ch.qos.cal10n.util.CAL10NResourceBundleFinder.getBundle(CAL10NResourceBundleFinder.java:51)
at ch.qos.cal10n.MessageConveyor.lookup(MessageConveyor.java:111)
at ch.qos.cal10n.MessageConveyor.getMessage(MessageConveyor.java:77)
at org.slf4j.cal10n.LocLogger.error(LocLogger.java:164)
at org.jboss.weld.bean.ManagedBean.destroy(ManagedBean.java:358)
at org.jboss.weld.context.ForwardingContextual.destroy(ForwardingContextual.java:34)
at org.jboss.weld.context.AbstractContext.destroy(AbstractContext.java:155)
at org.jboss.weld.context.AbstractContext.destroy(AbstractContext.java:172)
at org.jboss.weld.context.AbstractManagedContext.deactivate(AbstractManagedContext.java:50)
at org.jboss.weld.context.AbstractBoundContext.deactivate(AbstractBoundContext.java:82)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:658)
at java.lang.Thread.run(Thread.java:680)

Users with the same issue

Once, 1 week ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

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