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
Try add this dependency in your pom.xml:
antlr antlr 2.7.7