java.lang.IndexOutOfBoundsException: Index: 1, Size: 1

GitHub | drmDev | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    exception with sql subselects

    GitHub | 2 years ago | p1tz
    com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.select * from sqltestmodel where title = ? and id in (select id from sqltestmodel where title = ? or title = ?) limit 1
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Project Euler Solution #3 (Java): Debugging

    Stack Overflow | 2 years ago | hydromend
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
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

    Index: 1, Size: 1

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.get(ArrayList.java:429)
    2 frames
  3. mage.abilities.effects
    Effects.getText
    1. mage.abilities.effects.common.FightTargetsEffect.getText(FightTargetsEffect.java:84)
    2. mage.abilities.effects.Effects.getText(Effects.java:69)
    2 frames
  4. mage.abilities
    AbilitiesImpl.getRules
    1. mage.abilities.Modes.getText(Modes.java:277)
    2. mage.abilities.AbilityImpl.getRule(AbilityImpl.java:751)
    3. mage.abilities.SpellAbility.getRule(SpellAbility.java:142)
    4. mage.abilities.AbilityImpl.getRule(AbilityImpl.java:729)
    5. mage.abilities.AbilitiesImpl.getRules(AbilitiesImpl.java:107)
    5 frames
  5. mage.cards
    CardImpl.getRules
    1. mage.cards.CardImpl.getRules(CardImpl.java:213)
    1 frame
  6. mage.cards.repository
    CardScanner.scan
    1. mage.cards.repository.CardInfo.<init>(CardInfo.java:165)
    2. mage.cards.repository.CardScanner.scan(CardScanner.java:70)
    2 frames
  7. org.mage.test
    CardTestPlayerAPIImpl.<clinit>
    1. org.mage.test.serverside.base.impl.CardTestPlayerAPIImpl.<clinit>(CardTestPlayerAPIImpl.java:65)
    1 frame
  8. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  9. JUnit
    ParentRunner.run
    1. org.junit.runners.BlockJUnit4ClassRunner.createTest(BlockJUnit4ClassRunner.java:217)
    2. org.junit.runners.BlockJUnit4ClassRunner$1.runReflectiveCall(BlockJUnit4ClassRunner.java:266)
    3. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    4. org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:263)
    5. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    6. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    7. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    8. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    9. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    10. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    11. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    12. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    13. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    13 frames
  10. JUnit4 Provider
    JUnit4Provider.invoke
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
    2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
    3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
    3 frames
  11. 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
  12. SureFire
    ForkedBooter.main
    1. org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
    2. org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
    3. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
    4. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
    5. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
    5 frames