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


Samebug tips

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


7 months ago
Expert tip

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


,
via oracle.com by Unknown author

Solutions on the web

Solution icon of coderanch
via Coderanch by M Wallace, 1 year ago
String index out of range: 1

Solution icon of bugzilla
String index out of range: 1

Solution icon of bugzilla
via Eclipse Bugzilla by anton.leherbauer, 1 year ago
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by jamesblackburn+eclipse, 1 year ago
String index out of range: -1

Solution icon of bugzilla
via Eclipse Bugzilla by oyvind.harboe, 3 months ago
String index out of range: 1

Solution icon of bugzilla
String index out of range: -1

Solution icon of bugzilla
String index out of range: -1

Solution icon of github
String index out of range: -1

Solution icon of github
via GitHub by inti
, 1 year ago
String index out of range: -1

Stack trace

java.lang.StringIndexOutOfBoundsException: String 
index out of range: 1
	at java.lang.String.charAt(Unknown Source)
	at scala.collection.immutable.StringLike$class.apply(StringLike.scala:54)
	at scala.collection.immutable.StringOps.apply(StringOps.scala:31)
	at orc.compile.parse.OrcInputContext$class.looksLikeFilename$1(Input.scala:118)
	at orc.compile.parse.OrcInputContext$class.nameToURI$1(Input.scala:120)
	at orc.compile.parse.OrcInputContext$$anonfun$resolve$1.apply(Input.scala:121)
	at orc.compile.parse.OrcInputContext$$anonfun$resolve$1.apply(Input.scala:121)
	at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:64)
	at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:73)
	at scala.collection.mutable.WrappedArray.foldLeft(WrappedArray.scala:32)
	at orc.compile.parse.OrcInputContext$class.resolve(Input.scala:121)
	at orc.compile.StandardOrcCompiler$OrcNullInputContext$.resolve(OrcCompiler.scala:295)
	at orc.compile.parse.OrcInputContext$class.newInputFromPath(Input.scala:125)
	at orc.compile.StandardOrcCompiler$OrcNullInputContext$.newInputFromPath(OrcCompiler.scala:295)
	at orc.compile.StandardOrcCompiler$$anonfun$openInclude$2.apply(OrcCompiler.scala:315)
	at orc.compile.StandardOrcCompiler$$anonfun$openInclude$2.apply(OrcCompiler.scala:308)
	at scala.collection.Iterator$class.foreach(Iterator.scala:631)
	at scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:474)
	at scala.collection.IterableLike$class.foreach(IterableLike.scala:79)
	at scala.collection.JavaConversions$JCollectionWrapper.foreach(JavaConversions.scala:495)
	at orc.compile.StandardOrcCompiler.openInclude(OrcCompiler.scala:308)
	at orc.compile.CoreOrcCompiler$$anon$4$$anonfun$apply$6$$anonfun$1.apply(OrcCompiler.scala:113)
	at orc.compile.CoreOrcCompiler$$anon$4$$anonfun$apply$6$$anonfun$1.apply(OrcCompiler.scala:112)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
	at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:206)
	at scala.collection.Iterator$class.foreach(Iterator.scala:631)
	at scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:474)
	at scala.collection.IterableLike$class.foreach(IterableLike.scala:79)
	at scala.collection.JavaConversions$JListWrapper.foreach(JavaConversions.scala:521)
	at scala.collection.TraversableLike$class.map(TraversableLike.scala:206)
	at scala.collection.JavaConversions$JListWrapper.map(JavaConversions.scala:521)
	at orc.compile.CoreOrcCompiler$$anon$4$$anonfun$apply$6.apply(OrcCompiler.scala:112)
	at orc.compile.CoreOrcCompiler$$anon$4$$anonfun$apply$6.apply(OrcCompiler.scala:105)
	at orc.compile.CompilerPhase$$anon$2$$anonfun$apply$2.apply(OrcCompiler.scala:70)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CompilerPhase$$anon$1$$anonfun$apply$1.apply(OrcCompiler.scala:59)
	at orc.compile.CoreOrcCompiler.apply(OrcCompiler.scala:256)
	at orc.compile.StandardOrcCompiler.apply(OrcCompiler.scala:280)
	at orc.compile.StandardOrcCompiler.apply(OrcCompiler.scala:292)
	at orc.script.OrcScriptEngine.compile(OrcScriptEngine.java:204)
	at orc.Main$.main(Main.scala:60)
	at orc.Main.main(Main.scala)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 2 weeks ago
2 times, 2 weeks ago
Once, 3 weeks ago
41 more bugmates