java.lang.IndexOutOfBoundsException: 0

Scala JIRA | Jerzy Muller | 2 years ago
  1. 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
  2. 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
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 2497#228758634

    GitHub | 7 months ago | drdozer
    java.lang.IndexOutOfBoundsException: 0

  1. Handemelindo 8 times, last 2 weeks ago
  2. harshg 2 times, last 2 weeks ago
  3. michallos 4 times, last 2 weeks ago
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. Scala
    Importers$StandardImporter$$anonfun$recreateType$3.apply
    1. scala.reflect.internal.Importers$StandardImporter.recreateOrRelink$1(Importers.scala:170)
    2. scala.reflect.internal.Importers$StandardImporter.importSymbol(Importers.scala:210)
    3. scala.reflect.internal.Importers$StandardImporter$$anonfun$recreateType$3.apply(Importers.scala:232)
    4. scala.reflect.internal.Importers$StandardImporter$$anonfun$recreateType$3.apply(Importers.scala:232)
    4 frames
  4. Scala
    List.map
    1. scala.collection.immutable.List.map(List.scala:273)
    1 frame
  5. Scala
    Importers$StandardImporter.importTree
    1. scala.reflect.internal.Importers$StandardImporter.recreateType(Importers.scala:232)
    2. scala.reflect.internal.Importers$StandardImporter.importType(Importers.scala:284)
    3. scala.reflect.internal.Importers$StandardImporter.recreatedTreeCompleter(Importers.scala:304)
    4. scala.reflect.internal.Importers$StandardImporter$$anonfun$importTree$1.apply$mcV$sp(Importers.scala:417)
    5. scala.reflect.internal.Importers$StandardImporter.tryFixup(Importers.scala:49)
    6. scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:418)
    7. scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:367)
    8. scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415)
    9. scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:374)
    10. scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415)
    11. scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:333)
    12. scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415)
    13. scala.reflect.internal.Importers$StandardImporter.recreateTree(Importers.scala:333)
    14. scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:415)
    15. scala.reflect.internal.Importers$StandardImporter.importTree(Importers.scala:29)
    15 frames
  6. Scala Compiler
    ToolBoxFactory$ToolBoxImpl.typecheck
    1. scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$$anonfun$typecheck$2.apply(ToolBoxFactory.scala:376)
    2. scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$$anonfun$typecheck$2.apply(ToolBoxFactory.scala:367)
    3. scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.liftedTree2$1(ToolBoxFactory.scala:355)
    4. scala.tools.reflect.ToolBoxFactory$ToolBoxImpl$withCompilerApi$.apply(ToolBoxFactory.scala:355)
    5. scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.typecheck(ToolBoxFactory.scala:367)
    6. scala.tools.reflect.ToolBoxFactory$ToolBoxImpl.typecheck(ToolBoxFactory.scala:27)
    6 frames
  7. org.scalaide.debug
    ExpressionEvaluator$$anonfun$1.apply
    1. org.scalaide.debug.internal.expression.proxies.phases.TypeCheck.doTypeCheck$1(TypeCheck.scala:44)
    2. org.scalaide.debug.internal.expression.proxies.phases.TypeCheck.transform(TypeCheck.scala:46)
    3. org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$1.apply(ExpressionEvaluator.scala:152)
    4. org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$1.apply(ExpressionEvaluator.scala:146)
    4 frames
  8. Scala
    List.foldLeft
    1. scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:124)
    2. scala.collection.immutable.List.foldLeft(List.scala:84)
    2 frames
  9. org.scalaide.debug
    ExpressionEvaluator$$anonfun$compileExpression$1.apply
    1. org.scalaide.debug.internal.expression.ExpressionEvaluator.org$scalaide$debug$internal$expression$ExpressionEvaluator$$transform(ExpressionEvaluator.scala:146)
    2. org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$compileExpression$1.apply(ExpressionEvaluator.scala:80)
    3. org.scalaide.debug.internal.expression.ExpressionEvaluator$$anonfun$compileExpression$1.apply(ExpressionEvaluator.scala:73)
    3 frames
  10. Scala
    Try$.apply
    1. scala.util.Try$.apply(Try.scala:191)
    1 frame
  11. org.scalaide.debug
    JdiExpressionEvaluator.apply
    1. org.scalaide.debug.internal.expression.ExpressionEvaluator.compileExpression(ExpressionEvaluator.scala:73)
    2. org.scalaide.debug.internal.expression.JdiExpressionEvaluator.apply(JdiExpressionEvaluator.scala:61)
    2 frames