org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: query [...]

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

Solutions on the web

via Hibernate JIRA by Mathias Hasselmann, 1 year ago
unexpected AST node: query [...]
via Hibernate JIRA by Mathias Hasselmann, 1 year ago
unexpected AST node: query [...]
via bloggingexperiment.com by Unknown author, 1 year ago
unexpected end of subtree [QUERY]
via Hibernate JIRA by Markus Junginger, 1 year ago
unexpected end of subtree []
via Hibernate JIRA by Markus Junginger, 1 year ago
unexpected end of subtree []
via Google Groups by Hannes Mattsen, 2 months ago
unexpected token: ( near line 1, column 45 [ from DownloadClass A ( select max(id), filename from DownloadClass group by filename ) B where A.id = B.id and A.filename = B.filename]
org.hibernate.hql.ast.QuerySyntaxException: unexpected AST node: query [...]
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:225)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:158)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:109)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:75)
at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:54)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
1 more bugmates

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