Tuesday, September 22, 2009

Spring: java.lang.NoSuchField error : ruleMemo

The error is caused by org.antlr.runtime.BaseRecognizer class. The original antlr distribution, which comes along with standard Apache Ant distribution does not contain a field called ruleMemo in BaseRecognizer class. So if you have original antlr jar used in your application you are likely to encounter this error.
To resolve the error get the latest com.springsource.org.antlr jar from spring framework website. Spring has included the missing field in BaseRecognizer class. Include this jar in your applications lib directory and you are all set to run your spring application

No comments:

Post a Comment