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. ,

    Thrown by the methods of the String class to indicate that an index is either negative, or greater than the size of the string itself. You are probably using the wrong index when accessing substring of the array.

  2. ,
    via GitHub by Omertron

    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"

Solutions on the web

via Hibernate JIRA by Dmitry Tolmachov, 1 year ago
String index out of range: -5
via Hibernate JIRA by Dmitry Tolmachov, 2 years ago
String index out of range: -5
via SonarSource JIRA by Victor C, 2 years ago
via Eclipse Bugzilla by daniel_megert, 1 year ago
via Google Groups by Unknown author, 1 year ago
String index out of range: -27
via Oracle Community by 666096, 9 months ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -5	at java.lang.String.substring(String.java:1875)	at org.hibernate.hql.internal.CollectionSubqueryFactory.createCollectionSubquery(CollectionSubqueryFactory.java:52)	at org.hibernate.hql.internal.ast.tree.FromElementType.toColumns(FromElementType.java:400)	at org.hibernate.hql.internal.ast.tree.FromElementType.toColumns(FromElementType.java:382)	at org.hibernate.hql.internal.ast.tree.FromElement.toColumns(FromElement.java:504)	at org.hibernate.hql.internal.ast.tree.DotNode.getColumns(DotNode.java:139)	at org.hibernate.hql.internal.ast.tree.DotNode.initText(DotNode.java:261)	at org.hibernate.hql.internal.ast.tree.DotNode.resolve(DotNode.java:255)	at org.hibernate.hql.internal.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:126)	at org.hibernate.hql.internal.ast.tree.FromReferenceNode.resolve(FromReferenceNode.java:121)	at org.hibernate.hql.internal.ast.tree.DotNode.resolveSelectExpression(DotNode.java:711)	at org.hibernate.hql.internal.ast.HqlSqlWalker.resolveSelectExpression(HqlSqlWalker.java:957)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExpr(HqlSqlBaseWalker.java:2248)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectExprList(HqlSqlBaseWalker.java:2185)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectClause(HqlSqlBaseWalker.java:1471)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:571)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:299)	at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:247)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:278)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:206)	at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158)	at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:126)	at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:88)	at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:190)	at org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301)	at org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236)	at org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1796)	at org.hibernate.jpa.spi.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:328)