java.lang.StringIndexOutOfBoundsException

String index out of range: 1

Samebug tips1

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.


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1220

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

Unknown visitor
Unknown visitor1 times, last one,
Unknown visitor
Unknown visitor1 times, last one,
poroszdporoszd
12 times, last one,
olle.hallinolle.hallin
1 times, last one,
linxiaolonglinxiaolong
1 times, last one,
30 more bugmates