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

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 GitHub by mraross
, 1 year ago
String index out of range: 5
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 Coderanch by Tushar Goel, 1 year ago
java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:906)
at java.lang.StringBuilder.substring(StringBuilder.java:76)
at java.lang.AbstractStringBuilder.subSequence(AbstractStringBuilder.java:885)
at java.lang.StringBuilder.subSequence(StringBuilder.java:76)
at ca.bc.gov.open.cpf.plugin.api.GeometryFactory.hasText(GeometryFactory.java:519)
at ca.bc.gov.open.cpf.plugin.api.GeometryFactory.parseGeometry(GeometryFactory.java:656)
at ca.bc.gov.open.cpf.plugin.api.GeometryFactory.createGeometry(GeometryFactory.java:255)
at ca.bc.gov.open.cpf.plugin.impl.geometry.JtsGeometryDataType.toObjectDo(JtsGeometryDataType.java:40)
at com.revolsys.datatype.AbstractDataType.toObject(AbstractDataType.java:111)
at com.revolsys.record.io.MapReaderRecordReader.next(MapReaderRecordReader.java:64)
at com.revolsys.record.io.MapReaderRecordReader.next(MapReaderRecordReader.java:15)
at ca.bc.gov.open.cpf.api.scheduler.JobPreProcessTask.process(JobPreProcessTask.java:243)
at ca.bc.gov.open.cpf.api.scheduler.BatchJobService.preProcessBatchJob(BatchJobService.java:1228)
at ca.bc.gov.open.cpf.api.scheduler.BatchJobPreProcess.processJob(BatchJobPreProcess.java:53)
at ca.bc.gov.open.cpf.api.scheduler.AbstractBatchJobChannelProcess.lambda$schedule$0(AbstractBatchJobChannelProcess.java:191)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at com.revolsys.logging.LoggingRunnable.run(LoggingRunnable.java:13)
at java.lang.Thread.run(Thread.java:745)

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.