Tag Archives: Hibernate

Hibernate error : org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree

Update: Look at the comments for more information and possible solutions. I got this error today. While there could be many reasons because of which this error comes. For me, the problem was that the parameter list I was passing was empty. I was getting all the fruits for which… Read more »

org.hibernate.QueryParameterException: could not locate named parameter

When you query the database in Hibernate using NamedQuery you may run into this error org.hibernate.QueryParameterException: could not locate named parameter [parm1] Chances are that you are either trying to set a parmeter to the query which infact doesn’t exist in your query. For example you are trying to do… Read more »