Why the exception "org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree" is thrown by Hibernate?

Solution Verified - Updated -

Issue

  • The execution of some HQL queries is throwing the Exception:
    ~~~
    "org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree"
    ~~
  • How to fix it?

Environment

  • JBoss Enterprise Application Platform (EAP) 4.x, 5.x, 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.