net.sf.hibernate.QueryException: unindexed collection before []: someelem0_.myProperty [select count(*) from SomeElement as se where se.myProperty = :someVal]

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via hibernate.org by Unknown author, 1 year ago
unindexed collection before []: someelem0_.myProperty [select count(*) from SomeElement as se where se.myProperty = :someVal]
net.sf.hibernate.QueryException: unindexed collection before []: someelem0_.myProperty [select count(*) from SomeElement as se where se.myProperty = :someVal]
at net.sf.hibernate.hql.PathExpressionParser.prepareForIndex(PathExpressionParser.java:301)
at net.sf.hibernate.hql.PathExpressionParser.end(PathExpressionParser.java:285)
at net.sf.hibernate.hql.WhereParser.doPathExpression(WhereParser.java:335)
at net.sf.hibernate.hql.WhereParser.doToken(WhereParser.java:365)
at net.sf.hibernate.hql.WhereParser.token(WhereParser.java:250)
at net.sf.hibernate.hql.ClauseParser.token(ClauseParser.java:87)
at net.sf.hibernate.hql.PreprocessingParser.token(PreprocessingParser.java:123)
at net.sf.hibernate.hql.ParserHelper.parse(ParserHelper.java:29)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:151)
at net.sf.hibernate.hql.QueryTranslator.compile(QueryTranslator.java:140)
at net.sf.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:291)
at net.sf.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1501)
at net.sf.hibernate.impl.SessionImpl.iterate(SessionImpl.java:1531)
at net.sf.hibernate.impl.QueryImpl.iterate(QueryImpl.java:33)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.