You definitely have a problem with the version of the sleep mode and ANTLR bars that you are using. The recovery method was not present in the ANTLR Parser class until version 2.7.6? If you are using an earlier version of ANTLR, such as 2.7.2, you will see this problem.
Using maven can lead to a situation where you are dependent on Hibernate and its transitive dependencies, but something is "closer"; e.g. Struts; providers of a different, earlier version of ANTLR and that an earlier version will be allowed in your application.
If you can provide a version of the cans involved, we can help a little more. Once you have fixed the issue with jar versions, you should get a more open error message that shows what is wrong with your HQL expression.
source share