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 Google Groups by Shannon Ma, 1 year ago
String index out of range: -2
via GitHub by eliac
, 2 years ago
via Coderanch by Tushar Goel, 1 year ago
via GitHub by davidtinker
, 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -2	at java.lang.AbstractStringBuilder.substring(Unknown Source)	at java.lang.StringBuilder.substring(Unknown Source)	at org.apache.kafka.connect.runtime.Worker.connectorNames(Worker.java:240)	at org.apache.kafka.connect.runtime.Worker.getConnectorClass(Worker.java:226)	at org.apache.kafka.connect.runtime.Worker.startConnector(Worker.java:166)	at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startConnector(DistributedHerder.java:789)	at org.apache.kafka.connect.runtime.distributed.DistributedHerder.startWork(DistributedHerder.java:755)	at org.apache.kafka.connect.runtime.distributed.DistributedHerder.handleRebalanceCompleted(DistributedHerder.java:715)	at org.apache.kafka.connect.runtime.distributed.DistributedHerder.tick(DistributedHerder.java:206)	at org.apache.kafka.connect.runtime.distributed.DistributedHerder.run(DistributedHerder.java:176)	at java.lang.Thread.run(Unknown Source)