java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7

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

,
via GitHub by Omertron

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"

,
Expert tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

Solutions on the web

via Stack Overflow by Code99Za
, 1 year ago
via Stack Overflow by Vinay Wadhwa
, 2 years ago
via Stack Overflow by Unknown author, 1 year ago
length=6; regionStart=0; regionLength=-1
via Stack Overflow by Dahnark
, 2 months ago
length=0; regionStart=0; regionLength=1
java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7
at java.lang.String.startEndAndLength(String.java:298)
at java.lang.String.substring(String.java:1087)
at project1.AudioSignal.getTrackFromAAC(AudioSignal.java:793)
at project1.AudioSignal.access$1100(AudioSignal.java:40)
at project1.AudioSignal$5.playerMetadata(AudioSignal.java:736)
at com.spoledge.aacdecoder.IcyInputStream.parseMetadata(IcyInputStream.java:231)
at com.spoledge.aacdecoder.IcyInputStream.fetchMetadata(IcyInputStream.java:205)
at com.spoledge.aacdecoder.IcyInputStream.read(IcyInputStream.java:133)
at com.spoledge.aacdecoder.BufferReader.run(BufferReader.java:155)
at java.lang.Thread.run(Thread.java:818)

Users with the same issue

2 times, 2 months ago
6 times, 5 months ago
2 times, 9 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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