Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. ArrayList.get() has thrown an ArrayIndexOutOfBoundsException
    Java Runtime
  2. ArrayList.elementData() has thrown an ArrayIndexOutOfBoundsException
    Java Runtime

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.ArrayIndexOutOfBoundsException: -1
    at java.util.ArrayList.elementData(
    at java.util.ArrayList.get(
    at msi.gama.kernel.batch.InitializationUniform.initializePop(
    at msi.gama.kernel.batch.GeneticAlgorithm.findBestSolution(
7 frames hidden


chinthana11 months ago

Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array. In this case, you're trying to access a negative indexed element from the ArrayList.

Check the source of this solution for more info

External results for this pattern (10)

  1. hyanwongvia GitHub3 weeks ago
    Show stack trace
  2. ezeiger92via GitHub1 month ago
    Unhandled exception executing command 'quests' in plugin QuestWorld v2.7.0
    Show stack trace
  3. rcbyronvia GitHub1 month ago
  4. 4bernardvia GitHub1 month ago
  5. Konstantin Zolotarevvia Jive Software Open Source1 month ago
  6. Konstantin Zolotarevvia JIRA1 month ago