java.lang.IndexOutOfBoundsException: 0

GitHub | drdozer | 5 months ago
  1. 0

    GitHub comment 2497#228758634

    GitHub | 5 months ago | drdozer
    java.lang.IndexOutOfBoundsException: 0
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    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}

    Scala JIRA | 2 years ago | Jerzy Muller
    java.lang.IndexOutOfBoundsException: 0
  4. 0

    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}

    Scala JIRA | 2 years ago | Jerzy Muller
    java.lang.IndexOutOfBoundsException: 0

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IndexOutOfBoundsException

      0

      at scala.collection.LinearSeqOptimized$class.apply()
    2. Scala
      List.apply
      1. scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:65)
      2. scala.collection.immutable.List.apply(List.scala:84)
      2 frames
    3. SBT
      ExtractAPI$$anonfun$parameterList$1$1.apply
      1. xsbt.ExtractAPI.makeParameter$1(ExtractAPI.scala:295)
      2. xsbt.ExtractAPI.xsbt$ExtractAPI$$parameterS$1(ExtractAPI.scala:286)
      3. xsbt.ExtractAPI$$anonfun$parameterList$1$1.apply(ExtractAPI.scala:225)
      4. xsbt.ExtractAPI$$anonfun$parameterList$1$1.apply(ExtractAPI.scala:225)
      4 frames
    4. Scala
      List.map
      1. scala.collection.immutable.List.map(List.scala:273)
      1 frame
    5. SBT
      ExtractAPI$$anonfun$xsbt$ExtractAPI$$processDefinitions$1.apply
      1. xsbt.ExtractAPI.parameterList$1(ExtractAPI.scala:225)
      2. xsbt.ExtractAPI.build$1(ExtractAPI.scala:246)
      3. xsbt.ExtractAPI.defDef(ExtractAPI.scala:303)
      4. xsbt.ExtractAPI.xsbt$ExtractAPI$$definition(ExtractAPI.scala:419)
      5. xsbt.ExtractAPI$$anonfun$xsbt$ExtractAPI$$processDefinitions$1.apply(ExtractAPI.scala:400)
      6. xsbt.ExtractAPI$$anonfun$xsbt$ExtractAPI$$processDefinitions$1.apply(ExtractAPI.scala:400)
      6 frames
    6. Scala
      ArrayOps$ofRef.flatMap
      1. scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
      2. scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
      3. scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      4. scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      5. scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
      6. scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:186)
      6 frames
    7. SBT
      ExtractAPI$$anonfun$forceStructures$1.apply
      1. xsbt.ExtractAPI.xsbt$ExtractAPI$$processDefinitions(ExtractAPI.scala:400)
      2. xsbt.ExtractAPI$$anonfun$mkStructure$3.apply(ExtractAPI.scala:397)
      3. xsbt.ExtractAPI$$anonfun$mkStructure$3.apply(ExtractAPI.scala:397)
      4. xsbt.Message$$anon$1.apply(Message.scala:7)
      5. xsbti.SafeLazy$$anonfun$apply$1.apply(SafeLazy.scala:7)
      6. xsbti.SafeLazy$Impl._t$lzycompute(SafeLazy.scala:18)
      7. xsbti.SafeLazy$Impl._t(SafeLazy.scala:16)
      8. xsbti.SafeLazy$Impl.get(SafeLazy.scala:22)
      9. xsbt.ExtractAPI$$anonfun$forceStructures$1.apply(ExtractAPI.scala:144)
      10. xsbt.ExtractAPI$$anonfun$forceStructures$1.apply(ExtractAPI.scala:144)
      10 frames
    8. Scala
      List.foreach
      1. scala.collection.immutable.List.foreach(List.scala:381)
      1 frame
    9. SBT
      API$ApiPhase.apply
      1. xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:144)
      2. xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:145)
      3. xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:145)
      4. xsbt.ExtractAPI.forceStructures(ExtractAPI.scala:145)
      5. xsbt.API$ApiPhase.processScalaUnit(API.scala:53)
      6. xsbt.API$ApiPhase.processUnit(API.scala:38)
      7. xsbt.API$ApiPhase.apply(API.scala:36)
      7 frames
    10. Scala Compiler
      Global$GlobalPhase$$anonfun$run$1.apply
      1. scala.tools.nsc.Global$GlobalPhase$$anonfun$applyPhase$1.apply$mcV$sp(Global.scala:440)
      2. scala.tools.nsc.Global$GlobalPhase.withCurrentUnit(Global.scala:431)
      3. scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:440)
      4. scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398)
      5. scala.tools.nsc.Global$GlobalPhase$$anonfun$run$1.apply(Global.scala:398)
      5 frames
    11. Scala
      AbstractIterator.foreach
      1. scala.collection.Iterator$class.foreach(Iterator.scala:893)
      2. scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
      2 frames
    12. Scala Compiler
      Global$GlobalPhase.run
      1. scala.tools.nsc.Global$GlobalPhase.run(Global.scala:398)
      1 frame
    13. SBT
      API$ApiPhase.run
      1. xsbt.API$ApiPhase.run(API.scala:31)
      1 frame
    14. Scala Compiler
      Global$Run.compile
      1. scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1501)
      2. scala.tools.nsc.Global$Run.compileUnits(Global.scala:1486)
      3. scala.tools.nsc.Global$Run.compileSources(Global.scala:1481)
      4. scala.tools.nsc.Global$Run.compile(Global.scala:1582)
      4 frames
    15. SBT
      CompilerInterface.run
      1. xsbt.CachedCompiler0.run(CompilerInterface.scala:116)
      2. xsbt.CachedCompiler0.run(CompilerInterface.scala:95)
      3. xsbt.CompilerInterface.run(CompilerInterface.scala:26)
      3 frames
    16. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    17. SBT
      Defaults$$anonfun$compileIncrementalTask$1.apply
      1. sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:101)
      2. sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:47)
      3. sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:41)
      4. sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply$mcV$sp(MixedAnalyzingCompiler.scala:50)
      5. sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
      6. sbt.compiler.MixedAnalyzingCompiler$$anonfun$compileScala$1$1.apply(MixedAnalyzingCompiler.scala:50)
      7. sbt.compiler.MixedAnalyzingCompiler.timed(MixedAnalyzingCompiler.scala:74)
      8. sbt.compiler.MixedAnalyzingCompiler.compileScala$1(MixedAnalyzingCompiler.scala:49)
      9. sbt.compiler.MixedAnalyzingCompiler.compile(MixedAnalyzingCompiler.scala:64)
      10. sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
      11. sbt.compiler.IC$$anonfun$compileInternal$1.apply(IncrementalCompiler.scala:160)
      12. sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:66)
      13. sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:64)
      14. sbt.inc.IncrementalCommon.cycle(IncrementalCommon.scala:32)
      15. sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:68)
      16. sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:67)
      17. sbt.inc.Incremental$.manageClassfiles(Incremental.scala:95)
      18. sbt.inc.Incremental$.compile(Incremental.scala:67)
      19. sbt.inc.IncrementalCompile$.apply(Compile.scala:54)
      20. sbt.compiler.IC$.compileInternal(IncrementalCompiler.scala:160)
      21. sbt.compiler.IC$.incrementalCompile(IncrementalCompiler.scala:138)
      22. sbt.Compiler$.compile(Compiler.scala:152)
      23. sbt.Compiler$.compile(Compiler.scala:138)
      24. sbt.Defaults$.sbt$Defaults$$compileIncrementalTaskImpl(Defaults.scala:860)
      25. sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:851)
      26. sbt.Defaults$$anonfun$compileIncrementalTask$1.apply(Defaults.scala:849)
      26 frames
    18. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      1 frame
    19. SBT
      $tilde$greater$$anonfun$$u2219$1.apply
      1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
      1 frame
    20. sbt Task system
      Transform$$anon$4.work
      1. sbt.std.Transform$$anon$4.work(System.scala:63)
      1 frame
    21. SBT
      CompletionService$$anon$2.call
      1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
      4. sbt.Execute.work(Execute.scala:237)
      5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
      6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
      7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      8. sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
      8 frames
    22. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)
      6 frames