java.lang.StringIndexOutOfBoundsException: String index out of range: -3

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 GitHub by yossigil
, 6 months ago
String index out of range: -3
via GitHub by yossigil
, 1 year ago
String index out of range: -3
via Stack Overflow by xabedev
, 1 year ago
String index out of range: -3
via GitHub by proccaserra
, 1 year ago
String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -3
at java.lang.String.substring(String.java:1967)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.getPrefix(TernaryPusdownStrings.java:68)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.replaceSuffix(TernaryPusdownStrings.java:127)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.simplifyStrings(TernaryPusdownStrings.java:207)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.simplify(TernaryPusdownStrings.java:137)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.replacement(TernaryPusdownStrings.java:36)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.replacement(TernaryPusdownStrings.java:218)
at il.org.spartan.spartanizer.wrings.TernaryPusdownStrings.replacement(TernaryPusdownStrings.java:1)
at il.org.spartan.spartanizer.wringing.ReplaceCurrentNode.suggest(ReplaceCurrentNode.java:19)
at il.org.spartan.spartanizer.wringing.CarefulWring.canSuggest(CarefulWring.java:12)
at il.org.spartan.spartanizer.wringing.CarefulWring.demandsToSuggestButPerhapsCant(CarefulWring.java:16)
at il.org.spartan.spartanizer.dispatch.Toolbox.find(Toolbox.java:205)
at il.org.spartan.spartanizer.dispatch.Toolbox.find(Toolbox.java:217)
at il.org.spartan.spartanizer.dispatch.Trimmer$2.go(Trimmer.java:66)
at il.org.spartan.spartanizer.dispatch.DispatchingVisitor.cautiousGo(DispatchingVisitor.java:119)
at il.org.spartan.spartanizer.dispatch.DispatchingVisitor.visit(DispatchingVisitor.java:33)
at org.eclipse.jdt.core.dom.ConditionalExpression.accept0(ConditionalExpression.java:187)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
at org.eclipse.jdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:137)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
at org.eclipse.jdt.core.dom.Block.accept0(Block.java:137)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:2759)
at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:635)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:470)
at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2782)
at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:212)
at il.org.spartan.plugin.GUI$Applicator.collectSuggesions(GUI$Applicator.java:113)
at il.org.spartan.plugin.Builder.addMarkers(Builder.java:77)
at il.org.spartan.plugin.Builder.addMarkers(Builder.java:72)
at il.org.spartan.plugin.Builder.addMarkers(Builder.java:56)
at il.org.spartan.plugin.Builder.lambda$0(Builder.java:49)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:64)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:75)
at il.org.spartan.plugin.Builder.incrementalBuild(Builder.java:44)
at il.org.spartan.plugin.Builder.build(Builder.java:113)
at il.org.spartan.plugin.Builder.build(Builder.java:121)
at il.org.spartan.plugin.Builder.build(Builder.java:91)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)

Users with the same issue

4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 times, 1 week ago
3 times, 1 week ago
105 more bugmates

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