java.lang.IndexOutOfBoundsException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 2497#228758634
    via GitHub by drdozer
    ,
  • Unfortunately no minimal right now, as this appears only when I run a whole test suite - on single test it works ok. Failing test is in expression evaluator PR for Scala IDE (https://github.com/scala-ide/scala-ide/pull/906/files#diff-2dbb5006e81b31769258a37f8cc7016eR50) Stack trace: {code} java.lang.IndexOutOfBoundsException: 0 at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:65) at scala.collection.immutable.List.apply(List.scala:84) at scala.reflect.internal.Importers$StandardImporter.recreateOrRelink$1(Importers.scala:170) at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:210) at scala.reflect.internal.Importers$StandardImporter$$anonfun$recreateType$3.apply(Importers.scala:232) at scala.reflect.internal.Importers$StandardImporter$$anonfun$recreateType$3.apply(Importers.scala:232) at scala.collection.immutable.List.map(List.scala:273) at scala.reflect.internal.Importers$StandardImporter.recreateType(Importers.scala:232) at scala.reflect.internal.Importers$StandardImporter.importType(Importers.scala:284) at scala.reflect.internal.Importers$StandardImporter.recreatedTreeCompleter(Importers.scala:304) at scala.reflect.internal.Importers$StandardImporter$$anonfun$importTree$1.apply$mcV$sp(Importers.scala:417) at scala.reflect.internal.Importers$StandardImporter.tryFixup(Importers.scala:49) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:418) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:367) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:374) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:333) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:333) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:29) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$$anonfun$typecheck$2.apply(ToolBoxFactory.scala:376) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$$anonfun$typecheck$2.apply(ToolBoxFactory.scala:367) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.liftedTree2$1(ToolBoxFactory.scala:355) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.apply(ToolBoxFactory.scala:355) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.typecheck(ToolBoxFactory.scala:367) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.typecheck(ToolBoxFactory.scala:27) at org.scalaide.debug.internal.expression.proxies.phases.TypeCheck.doTypeCheck$1(TypeCheck.scala:44) at org.scalaide.debug.internal.expression.proxies.phases.TypeCheck.transform(TypeCheck.scala:46) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$1.apply(ExpressionEvaluator.scala:152) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$1.apply(ExpressionEvaluator.scala:146) at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124) at scala.collection.immutable.List.foldLeft(List.scala:84) at org.scalaide.debug.internal.expression.ExpressionEvaluator.org$scalaide$debug$internal$expression$ExpressionEvaluator$$transform(ExpressionEvaluator.scala:146) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$compileExpression$1.apply(ExpressionEvaluator.scala:80) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$compileExpression$1.apply(ExpressionEvaluator.scala:73) at scala.util.Try$.apply(Try.scala:191) at org.scalaide.debug.internal.expression.ExpressionEvaluator.compileExpression(ExpressionEvaluator.scala:73) at org.scalaide.debug.internal.expression.JdiExpressionEvaluator.apply(JdiExpressionEvaluator.scala:61) ... 53 more {code}
    via by Jerzy Muller,
  • Unfortunately no minimal right now, as this appears only when I run a whole test suite - on single test it works ok. Failing test is in expression evaluator PR for Scala IDE (https://github.com/scala-ide/scala-ide/pull/906/files#diff-2dbb5006e81b31769258a37f8cc7016eR50) Stack trace: {code} java.lang.IndexOutOfBoundsException: 0 at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:65) at scala.collection.immutable.List.apply(List.scala:84) at scala.reflect.internal.Importers$StandardImporter.recreateOrRelink$1(Importers.scala:170) at scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:210) at scala.reflect.internal.Importers$StandardImporter$$anonfun$recreateType$3.apply(Importers.scala:232) at scala.reflect.internal.Importers$StandardImporter$$anonfun$recreateType$3.apply(Importers.scala:232) at scala.collection.immutable.List.map(List.scala:273) at scala.reflect.internal.Importers$StandardImporter.recreateType(Importers.scala:232) at scala.reflect.internal.Importers$StandardImporter.importType(Importers.scala:284) at scala.reflect.internal.Importers$StandardImporter.recreatedTreeCompleter(Importers.scala:304) at scala.reflect.internal.Importers$StandardImporter$$anonfun$importTree$1.apply$mcV$sp(Importers.scala:417) at scala.reflect.internal.Importers$StandardImporter.tryFixup(Importers.scala:49) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:418) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:367) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:374) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:333) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:333) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415) at scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:29) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$$anonfun$typecheck$2.apply(ToolBoxFactory.scala:376) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$$anonfun$typecheck$2.apply(ToolBoxFactory.scala:367) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.liftedTree2$1(ToolBoxFactory.scala:355) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.apply(ToolBoxFactory.scala:355) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.typecheck(ToolBoxFactory.scala:367) at scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.typecheck(ToolBoxFactory.scala:27) at org.scalaide.debug.internal.expression.proxies.phases.TypeCheck.doTypeCheck$1(TypeCheck.scala:44) at org.scalaide.debug.internal.expression.proxies.phases.TypeCheck.transform(TypeCheck.scala:46) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$1.apply(ExpressionEvaluator.scala:152) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$1.apply(ExpressionEvaluator.scala:146) at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124) at scala.collection.immutable.List.foldLeft(List.scala:84) at org.scalaide.debug.internal.expression.ExpressionEvaluator.org$scalaide$debug$internal$expression$ExpressionEvaluator$$transform(ExpressionEvaluator.scala:146) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$compileExpression$1.apply(ExpressionEvaluator.scala:80) at org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$compileExpression$1.apply(ExpressionEvaluator.scala:73) at scala.util.Try$.apply(Try.scala:191) at org.scalaide.debug.internal.expression.ExpressionEvaluator.compileExpression(ExpressionEvaluator.scala:73) at org.scalaide.debug.internal.expression.JdiExpressionEvaluator.apply(JdiExpressionEvaluator.scala:61) ... 53 more {code}
    via by Jerzy Muller,
    • java.lang.IndexOutOfBoundsException: 0 at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:65) at scala.collection.immutable.List.apply(List.scala:84) at xsbt.ExtractAPI.makeParameter$1(ExtractAPI.scala:295) at xsbt.ExtractAPI.xsbt$ExtractAPI$$parameterS$1(ExtractAPI.scala:286) at xsbt.ExtractAPI$$anonfun$parameterList$1$1.apply(ExtractAPI.scala:225) at xsbt.ExtractAPI$$anonfun$parameterList$1$1.apply(ExtractAPI.scala:225) at scala.collection.immutable.List.map(List.scala:273) at xsbt.ExtractAPI.parameterList$1(ExtractAPI.scala:225) at xsbt.ExtractAPI.build$1(ExtractAPI.scala:246) at xsbt.ExtractAPI.defDef(ExtractAPI.scala:303) at xsbt.ExtractAPI.xsbt$ExtractAPI$$definition(ExtractAPI.scala:419) at xsbt.ExtractAPI$$anonfun$xsbt$ExtractAPI$$processDefinitions$1.apply(ExtractAPI.scala:400) at xsbt.ExtractAPI$$anonfun$xsbt$ExtractAPI$$processDefinitions$1.apply(ExtractAPI.scala:400) at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241) at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241) at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33) at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186) at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241) at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:186) at xsbt.ExtractAPI.xsbt$ExtractAPI$$processDefinitions(ExtractAPI.scala:400) at xsbt.ExtractAPI$$anonfun$mkStructure$3.apply(ExtractAPI.scala:397) at xsbt.ExtractAPI$$anonfun$mkStructure$3.apply(ExtractAPI.scala:397) at xsbt.Message$$anon$1.apply(Message.scala:7) at xsbti.SafeLazy$$anonfun$apply$1.apply(SafeLazy.scala:7) at xsbti.SafeLazy$Impl._t$lzycompute(SafeLazy.scala:18) at xsbti.SafeLazy$Impl._t(SafeLazy.scala:16) at xsbti.SafeLazy$Impl.get(SafeLazy.scala:22) at xsbt.ExtractAPI$$anonfun$forceStructures$1.apply(ExtractAPI.scala:144) at xsbt.ExtractAPI$$anonfun$forceStructures$1.apply(ExtractAPI.scala:144) at scala.collection.immutable.List.foreach(List.scala:381) at xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:144) at xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:145) at xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:145) at xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:145) at xsbt.API$ApiPhase.processScalaUnit(API.scala:53) at xsbt.API$ApiPhase.processUnit(API.scala:38) at xsbt.API$ApiPhase.apply(API.scala:36) at scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:440) at scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:431) at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:440) at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398) at scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398) at scala.collection.Iterator$class.foreach(Iterator.scala:893) at scala.collection.AbstractIterator.foreach(Iterator.scala:1336) at scala.tools.nsc.Global$GlobalPhase.run(Global.scala:398) at xsbt.API$ApiPhase.run(API.scala:31) at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501) at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1486) at scala.tools.nsc.Global$Run.compileSources(Global.scala:1481) at scala.tools.nsc.Global$Run.compile(Global.scala:1582) at xsbt.CachedCompiler0.run(CompilerInterface.scala:116) at xsbt.CachedCompiler0.run(CompilerInterface.scala:95) at xsbt.CompilerInterface.run(CompilerInterface.scala:26) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101) at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47) at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41) at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50) at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50) at sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50) at sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74) at sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49) at sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64) at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160) at sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160) at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66) at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64) at sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32) at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:68) at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:67) at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:95) at sbt.inc.Incremental$.compile(Incremental.scala:67) at sbt.inc.IncrementalCompile$.apply(Compile.scala:54) at sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160) at sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138) at sbt.Compiler$.compile(Compiler.scala:152) at sbt.Compiler$.compile(Compiler.scala:138) at sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860) at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851) at sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849) at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40) at sbt.std.Transform$$anon$4.work(System.scala:63) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228) at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17) at sbt.Execute.work(Execute.scala:237) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228) at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159) at sbt.CompletionService$$anon$2.call(CompletionService.scala:28) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    harshg
    2 times, last one,
    Handemelindo
    8 times, last one,
    Unknown visitor1 times, last one,
    Adarro
    1 times, last one,
    rp
    1 times, last one,
    3 more bugmates