Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via oracle.com by Unknown author

    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.

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)