java.lang.ArrayIndexOutOfBoundsException: -1

Hibernate JIRA | Gunnar Morling | 3 years ago
  1. 0

    The following test causes the exception below: {code} FROM m IN class org.hibernate.test.Master WHERE NOT EXISTS ( FROM d IN elements(m.details) WHERE NOT d.i=5 ) {code} Stack trace: {code} java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:400) at java.util.ArrayList.get(ArrayList.java:413) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.generatePersisterSpacesTree(HQLParser.java:384) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.persisterSpaces(HQLParser.java:3459) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.fromClause(HQLParser.java:3337) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.selectFrom(HQLParser.java:3136) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.querySpec(HQLParser.java:2480) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.queryExpression(HQLParser.java:2272) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.subQuery(HQLParser.java:3216) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.quantifiedExpression(HQLParser.java:11337) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.unaryExpression(HQLParser.java:9990) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.multiplyExpression(HQLParser.java:9637) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.additiveExpression(HQLParser.java:9488) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.concatenation(HQLParser.java:9380) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.relationalExpression(HQLParser.java:8235) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.equalityExpression(HQLParser.java:7805) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.negatedExpression(HQLParser.java:7725) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.negatedExpression(HQLParser.java:7710) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalAndExpression(HQLParser.java:7562) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalOrExpression(HQLParser.java:7455) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.expression(HQLParser.java:7392) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalExpression(HQLParser.java:7333) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.whereClause(HQLParser.java:3049) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.querySpec(HQLParser.java:2502) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.queryExpression(HQLParser.java:2272) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.selectStatement(HQLParser.java:2139) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.statementElement(HQLParser.java:926) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.statement(HQLParser.java:811) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.hibernate.hql.testing.internal.parser.GrammarRuleTestRunner.invokeRule(GrammarRuleTestRunner.java:124) at org.hibernate.hql.testing.internal.parser.GrammarRuleTestRunner.run(GrammarRuleTestRunner.java:89) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.evaluate(GrammarRuleStatement.java:94) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runLeafNode(GrammarRuleStatements.java:94) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.run(GrammarRuleStatement.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.run(GrammarRuleStatements.java:90) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.hibernate.hql.testing.junit.GrammarTestRunner.runChild(GrammarTestRunner.java:89) at org.hibernate.hql.testing.junit.GrammarTestRunner.runChild(GrammarTestRunner.java:1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) {code}

    Hibernate JIRA | 3 years ago | Gunnar Morling
    java.lang.ArrayIndexOutOfBoundsException: -1
  2. 0

    The following test causes the exception below: {code} FROM m IN class org.hibernate.test.Master WHERE NOT EXISTS ( FROM d IN elements(m.details) WHERE NOT d.i=5 ) {code} Stack trace: {code} java.lang.ArrayIndexOutOfBoundsException: -1 at java.util.ArrayList.elementData(ArrayList.java:400) at java.util.ArrayList.get(ArrayList.java:413) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.generatePersisterSpacesTree(HQLParser.java:384) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.persisterSpaces(HQLParser.java:3459) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.fromClause(HQLParser.java:3337) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.selectFrom(HQLParser.java:3136) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.querySpec(HQLParser.java:2480) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.queryExpression(HQLParser.java:2272) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.subQuery(HQLParser.java:3216) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.quantifiedExpression(HQLParser.java:11337) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.unaryExpression(HQLParser.java:9990) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.multiplyExpression(HQLParser.java:9637) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.additiveExpression(HQLParser.java:9488) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.concatenation(HQLParser.java:9380) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.relationalExpression(HQLParser.java:8235) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.equalityExpression(HQLParser.java:7805) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.negatedExpression(HQLParser.java:7725) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.negatedExpression(HQLParser.java:7710) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalAndExpression(HQLParser.java:7562) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalOrExpression(HQLParser.java:7455) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.expression(HQLParser.java:7392) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalExpression(HQLParser.java:7333) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.whereClause(HQLParser.java:3049) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.querySpec(HQLParser.java:2502) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.queryExpression(HQLParser.java:2272) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.selectStatement(HQLParser.java:2139) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.statementElement(HQLParser.java:926) at org.hibernate.hql.ast.origin.hql.parse.HQLParser.statement(HQLParser.java:811) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.hibernate.hql.testing.internal.parser.GrammarRuleTestRunner.invokeRule(GrammarRuleTestRunner.java:124) at org.hibernate.hql.testing.internal.parser.GrammarRuleTestRunner.run(GrammarRuleTestRunner.java:89) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.evaluate(GrammarRuleStatement.java:94) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runLeafNode(GrammarRuleStatements.java:94) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.run(GrammarRuleStatement.java:118) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.run(GrammarRuleStatements.java:90) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85) at org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.hibernate.hql.testing.junit.GrammarTestRunner.runChild(GrammarTestRunner.java:89) at org.hibernate.hql.testing.junit.GrammarTestRunner.runChild(GrammarTestRunner.java:1) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) {code}

    Hibernate JIRA | 3 years ago | Gunnar Morling
    java.lang.ArrayIndexOutOfBoundsException: -1
  3. 0

    java.lang.ArrayIndexOutOfBoundsException: -1

    GitHub | 3 years ago | sheppardv
    java.lang.ArrayIndexOutOfBoundsException: -1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spreading empty

    GitHub | 3 years ago | lucaswerkmeister
    java.lang.ArrayIndexOutOfBoundsException: -1
  6. 0

    ArrayIndexOutOfBoundsException on Spark on 'pining' tasks

    GitHub | 2 years ago | bzz
    java.lang.ArrayIndexOutOfBoundsException: -1

  1. bmacedo 2 times, last 2 days ago
  2. filpgame 9 times, last 5 days ago
  3. rube 24 times, last 2 months ago
  4. ajinkya_w 40 times, last 2 months ago
  5. maxxi 4 times, last 2 months ago
13 more registered users
16 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.ArrayIndexOutOfBoundsException

    -1

    at java.util.ArrayList.elementData()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.elementData(ArrayList.java:400)
    2. java.util.ArrayList.get(ArrayList.java:413)
    2 frames
  3. Hibernate HQL/JP-QL Parser
    HQLParser.statement
    1. org.hibernate.hql.ast.origin.hql.parse.HQLParser.generatePersisterSpacesTree(HQLParser.java:384)
    2. org.hibernate.hql.ast.origin.hql.parse.HQLParser.persisterSpaces(HQLParser.java:3459)
    3. org.hibernate.hql.ast.origin.hql.parse.HQLParser.fromClause(HQLParser.java:3337)
    4. org.hibernate.hql.ast.origin.hql.parse.HQLParser.selectFrom(HQLParser.java:3136)
    5. org.hibernate.hql.ast.origin.hql.parse.HQLParser.querySpec(HQLParser.java:2480)
    6. org.hibernate.hql.ast.origin.hql.parse.HQLParser.queryExpression(HQLParser.java:2272)
    7. org.hibernate.hql.ast.origin.hql.parse.HQLParser.subQuery(HQLParser.java:3216)
    8. org.hibernate.hql.ast.origin.hql.parse.HQLParser.quantifiedExpression(HQLParser.java:11337)
    9. org.hibernate.hql.ast.origin.hql.parse.HQLParser.unaryExpression(HQLParser.java:9990)
    10. org.hibernate.hql.ast.origin.hql.parse.HQLParser.multiplyExpression(HQLParser.java:9637)
    11. org.hibernate.hql.ast.origin.hql.parse.HQLParser.additiveExpression(HQLParser.java:9488)
    12. org.hibernate.hql.ast.origin.hql.parse.HQLParser.concatenation(HQLParser.java:9380)
    13. org.hibernate.hql.ast.origin.hql.parse.HQLParser.relationalExpression(HQLParser.java:8235)
    14. org.hibernate.hql.ast.origin.hql.parse.HQLParser.equalityExpression(HQLParser.java:7805)
    15. org.hibernate.hql.ast.origin.hql.parse.HQLParser.negatedExpression(HQLParser.java:7725)
    16. org.hibernate.hql.ast.origin.hql.parse.HQLParser.negatedExpression(HQLParser.java:7710)
    17. org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalAndExpression(HQLParser.java:7562)
    18. org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalOrExpression(HQLParser.java:7455)
    19. org.hibernate.hql.ast.origin.hql.parse.HQLParser.expression(HQLParser.java:7392)
    20. org.hibernate.hql.ast.origin.hql.parse.HQLParser.logicalExpression(HQLParser.java:7333)
    21. org.hibernate.hql.ast.origin.hql.parse.HQLParser.whereClause(HQLParser.java:3049)
    22. org.hibernate.hql.ast.origin.hql.parse.HQLParser.querySpec(HQLParser.java:2502)
    23. org.hibernate.hql.ast.origin.hql.parse.HQLParser.queryExpression(HQLParser.java:2272)
    24. org.hibernate.hql.ast.origin.hql.parse.HQLParser.selectStatement(HQLParser.java:2139)
    25. org.hibernate.hql.ast.origin.hql.parse.HQLParser.statementElement(HQLParser.java:926)
    26. org.hibernate.hql.ast.origin.hql.parse.HQLParser.statement(HQLParser.java:811)
    26 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  5. org.hibernate.hql
    GrammarRuleStatement.evaluate
    1. org.hibernate.hql.testing.internal.parser.GrammarRuleTestRunner.invokeRule(GrammarRuleTestRunner.java:124)
    2. org.hibernate.hql.testing.internal.parser.GrammarRuleTestRunner.run(GrammarRuleTestRunner.java:89)
    3. org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.evaluate(GrammarRuleStatement.java:94)
    3 frames
  6. JUnit
    ParentRunner.runLeaf
    1. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    1 frame
  7. org.hibernate.hql
    GrammarRuleStatements.runChild
    1. org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runLeafNode(GrammarRuleStatements.java:94)
    2. org.hibernate.hql.testing.internal.junit.GrammarRuleStatement.run(GrammarRuleStatement.java:118)
    3. org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85)
    4. org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:1)
    4 frames
  8. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  9. org.hibernate.hql
    GrammarRuleStatements.runChild
    1. org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.run(GrammarRuleStatements.java:90)
    2. org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:85)
    3. org.hibernate.hql.testing.internal.junit.GrammarRuleStatements.runChild(GrammarRuleStatements.java:1)
    3 frames
  10. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  11. org.hibernate.hql
    GrammarTestRunner.runChild
    1. org.hibernate.hql.testing.junit.GrammarTestRunner.runChild(GrammarTestRunner.java:89)
    2. org.hibernate.hql.testing.junit.GrammarTestRunner.runChild(GrammarTestRunner.java:1)
    2 frames
  12. JUnit
    ParentRunner.run
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    6. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    6 frames
  13. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    1 frame
  14. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    5 frames