java.lang.IllegalArgumentException: org.springmodules.validation.util.condition.string.MaxLengthStringConditioncan only validation values of the following types: java.lang.String

Spring JIRA | Dehong Pan | 8 years ago
  1. 0

    There is a property of Date type in my entity, I just put JPA annotation @Column(name="xxx") there. in Line 44 of org.springmodules.validation.bean.conf.loader.annotation.handler.jpa.JpaColumnAnnotationHandler Set<Annotation> annotations = getAllPropertyAnnotations(clazz, descriptor); this statement gets the default attribute, length=255. and the following logic is trying to validate the length of this property because there is a "length=255". And then the validation framework will report this exception: java.lang.IllegalArgumentException: org.springmodules.validation.util.condition.string.MaxLengthStringConditioncan only validation values of the following types: java.lang.String at org.springmodules.validation.util.condition.TypeSpecificCondition.beforeObjectChecked(TypeSpecificCondition.java:74) at org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition.beforeObjectChecked(NonNullAcceptingTypeSpecificCondition.java:43) at org.springmodules.validation.util.condition.AbstractCondition.check(AbstractCondition.java:35) at org.springmodules.validation.util.condition.bean.PropertyBeanCondition.checkBean(PropertyBeanCondition.java:58) at org.springmodules.validation.util.condition.bean.AbstractBeanCondition.doCheck(AbstractBeanCondition.java:39) at org.springmodules.validation.util.condition.AbstractCondition.check(AbstractCondition.java:36) at org.springmodules.validation.bean.BeanValidator.validateAndShortCircuitRules(BeanValidator.java:429) at org.springmodules.validation.bean.BeanValidator.applyPropertiesValidationRules(BeanValidator.java:412) at org.springmodules.validation.bean.BeanValidator.applyBeanValidation(BeanValidator.java:349) at org.springmodules.validation.bean.BeanValidator.validateObjectGraphConstraints(BeanValidator.java:181) at org.springmodules.validation.bean.BeanValidator.validate(BeanValidator.java:99)

    Spring JIRA | 8 years ago | Dehong Pan
    java.lang.IllegalArgumentException: org.springmodules.validation.util.condition.string.MaxLengthStringConditioncan only validation values of the following types: java.lang.String
  2. 0

    There is a property of Date type in my entity, I just put JPA annotation @Column(name="xxx") there. in Line 44 of org.springmodules.validation.bean.conf.loader.annotation.handler.jpa.JpaColumnAnnotationHandler Set<Annotation> annotations = getAllPropertyAnnotations(clazz, descriptor); this statement gets the default attribute, length=255. and the following logic is trying to validate the length of this property because there is a "length=255". And then the validation framework will report this exception: java.lang.IllegalArgumentException: org.springmodules.validation.util.condition.string.MaxLengthStringConditioncan only validation values of the following types: java.lang.String at org.springmodules.validation.util.condition.TypeSpecificCondition.beforeObjectChecked(TypeSpecificCondition.java:74) at org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition.beforeObjectChecked(NonNullAcceptingTypeSpecificCondition.java:43) at org.springmodules.validation.util.condition.AbstractCondition.check(AbstractCondition.java:35) at org.springmodules.validation.util.condition.bean.PropertyBeanCondition.checkBean(PropertyBeanCondition.java:58) at org.springmodules.validation.util.condition.bean.AbstractBeanCondition.doCheck(AbstractBeanCondition.java:39) at org.springmodules.validation.util.condition.AbstractCondition.check(AbstractCondition.java:36) at org.springmodules.validation.bean.BeanValidator.validateAndShortCircuitRules(BeanValidator.java:429) at org.springmodules.validation.bean.BeanValidator.applyPropertiesValidationRules(BeanValidator.java:412) at org.springmodules.validation.bean.BeanValidator.applyBeanValidation(BeanValidator.java:349) at org.springmodules.validation.bean.BeanValidator.validateObjectGraphConstraints(BeanValidator.java:181) at org.springmodules.validation.bean.BeanValidator.validate(BeanValidator.java:99)

    Spring JIRA | 8 years ago | Dehong Pan
    java.lang.IllegalArgumentException: org.springmodules.validation.util.condition.string.MaxLengthStringConditioncan only validation values of the following types: java.lang.String
  3. 0

    [cas-user] Exception on logout in CAS Server

    Google Groups | 4 months ago | Alexandre Arcanjo de Queiroz
    java.lang.IllegalArgumentException: 'principal' cannot be null. Check the correctness of @Audit annotation at the following audit point: execution(public abstract transient java.lang.String org.jasig.cas.CentralAuthenticationService.delegateTicketGrantingTicket(java.lang.String,org.jasig.cas.authentication.Credential[]))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    CAS with WebLogic Authenticates then error with 'principal' cannot be null

    Stack Overflow | 3 years ago | gdotryan
    java.lang.IllegalArgumentException: 'principal' cannot be null. Check the correctness of @Audit annotation at the following audit point: execution(public abstract java.lang.String org.jasig.cas.CentralAuthenticationService.createTicketGrantingTicket(org.jasig.cas.authentication.principal.Credentials))
  6. 0

    TomEE Users - java.lang.IllegalArgumentException: 'principal' cannot be null

    nabble.com | 8 months ago
    java.lang.IllegalArgumentException: 'principal' cannot be null. Check the correctness of @Audit annotation at the following audit point: execution(public abstract java.lang.String org.jasig.cas.CentralAuthenticationService.createTicketGrantingTicket(org.jasig.cas.authentication.principal.Credentials))

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      org.springmodules.validation.util.condition.string.MaxLengthStringConditioncan only validation values of the following types: java.lang.String

      at org.springmodules.validation.util.condition.TypeSpecificCondition.beforeObjectChecked()
    2. org.springmodules.validation
      BeanValidator.validate
      1. org.springmodules.validation.util.condition.TypeSpecificCondition.beforeObjectChecked(TypeSpecificCondition.java:74)
      2. org.springmodules.validation.util.condition.NonNullAcceptingTypeSpecificCondition.beforeObjectChecked(NonNullAcceptingTypeSpecificCondition.java:43)
      3. org.springmodules.validation.util.condition.AbstractCondition.check(AbstractCondition.java:35)
      4. org.springmodules.validation.util.condition.bean.PropertyBeanCondition.checkBean(PropertyBeanCondition.java:58)
      5. org.springmodules.validation.util.condition.bean.AbstractBeanCondition.doCheck(AbstractBeanCondition.java:39)
      6. org.springmodules.validation.util.condition.AbstractCondition.check(AbstractCondition.java:36)
      7. org.springmodules.validation.bean.BeanValidator.validateAndShortCircuitRules(BeanValidator.java:429)
      8. org.springmodules.validation.bean.BeanValidator.applyPropertiesValidationRules(BeanValidator.java:412)
      9. org.springmodules.validation.bean.BeanValidator.applyBeanValidation(BeanValidator.java:349)
      10. org.springmodules.validation.bean.BeanValidator.validateObjectGraphConstraints(BeanValidator.java:181)
      11. org.springmodules.validation.bean.BeanValidator.validate(BeanValidator.java:99)
      11 frames