I am sure I am overlooking something obvious
the following static query works fine
hqlQuery = \"select user from User as user where user.id = \'useri
Looks like you mixed incompatible versions of Hibernate jars (probably ANTLR jar has a wrong version).