java.lang.RuntimeException

org.springmodules.validation.valang.ParseException: Encountered ":" at line 2, column 49. Was expecting one of: "BETWEEN" ... "NOT BETWEEN" ... "IN" ... "NOT IN" ... <IS_NULL> ... <IS_NOT_NULL> ... "HAS TEXT" ... "HAS NO TEXT" ... "HAS LENGTH" ... "HAS NO LENGTH" ... "IS BLANK" ... "IS NOT BLANK" ... <IS_UPPER_CASE> ... <IS_NOT_UPPER_CASE> ... <IS_LOWER_CASE> ... <IS_NOT_LOWER_CASE> ... "IS WORD" ... "IS NOT WORD" ... <MORE_THAN_OR_EQUAL> ... ">" ... <LESS_THAN_OR_EQUAL> ... "<" ... <NOT_EQUAL> ... <EQUALS> ... "+" ... "-" ... "*" ... <DIVIDE> ... <MOD> ...

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Philipp Gaschütz,
  • via Unknown by Philipp Gaschütz,
  • Stack trace

    • java.lang.RuntimeException: org.springmodules.validation.valang.ParseException: Encountered ":" at line 2, column 49. Was expecting one of: "BETWEEN" ... "NOT BETWEEN" ... "IN" ... "NOT IN" ... <IS_NULL> ... <IS_NOT_NULL> ... "HAS TEXT" ... "HAS NO TEXT" ... "HAS LENGTH" ... "HAS NO LENGTH" ... "IS BLANK" ... "IS NOT BLANK" ... <IS_UPPER_CASE> ... <IS_NOT_UPPER_CASE> ... <IS_LOWER_CASE> ... <IS_NOT_LOWER_CASE> ... "IS WORD" ... "IS NOT WORD" ... <MORE_THAN_OR_EQUAL> ... ">" ... <LESS_THAN_OR_EQUAL> ... "<" ... <NOT_EQUAL> ... <EQUALS> ... "+" ... "-" ... "*" ... <DIVIDE> ... <MOD> ... at org.springmodules.validation.ValangValidatorFactoryBean$1.<init>(ValangValidatorFactoryBean.java:350) at org.springmodules.validation.ValangValidatorFactoryBean.afterPropertiesSet(ValangValidatorFactoryBean.java:266) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1058) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at Test.main(Test.java:24) Caused by: org.springmodules.validation.valang.ParseException: Encountered ":" at line 2, column 49. Was expecting one of: "BETWEEN" ... "NOT BETWEEN" ... "IN" ... "NOT IN" ... <IS_NULL> ... <IS_NOT_NULL> ... "HAS TEXT" ... "HAS NO TEXT" ... "HAS LENGTH" ... "HAS NO LENGTH" ... "IS BLANK" ... "IS NOT BLANK" ... <IS_UPPER_CASE> ... <IS_NOT_UPPER_CASE> ... <IS_LOWER_CASE> ... <IS_NOT_LOWER_CASE> ... "IS WORD" ... "IS NOT WORD" ... <MORE_THAN_OR_EQUAL> ... ">" ... <LESS_THAN_OR_EQUAL> ... "<" ... <NOT_EQUAL> ... <EQUALS> ... "+" ... "-" ... "*" ... <DIVIDE> ... <MOD> ... at org.springmodules.validation.valang.ValangParser.generateParseException(ValangParser.java:1564) at org.springmodules.validation.valang.ValangParser.jj_consume_token(ValangParser.java:1444) at org.springmodules.validation.valang.ValangParser.predicate(ValangParser.java:387) at org.springmodules.validation.valang.ValangParser.expression(ValangParser.java:225) at org.springmodules.validation.valang.ValangParser.predicates(ValangParser.java:165) at org.springmodules.validation.valang.ValangParser.parseValidation(ValangParser.java:100) at org.springmodules.validation.ValangValidatorFactoryBean$1.<init>(ValangValidatorFactoryBean.java:346) ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.