Skip to content
Advertisement

Error while querying tables using hibernate

I am trying to query a table called student in MySQL. This is the structure:

mysql_error

Here is the java code which I use to query:

JavaScript

This is the error message:

JavaScript

Here is the image of the referenced libraries:

ref_lib

Insertion into table is working correctly. Only querying isn’t.

What is the error here?

Please comment if extra information is needed.

UPDATE:

It worked when I added antlr to my class path

Advertisement

Answer

As per exception stack trace, it looks like antlr/RecognitionException class file is missing. Add below dependency and try. This should solve your issue.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement