Hibernate JIRA | David J. M. Karlsen | 5 years ago
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    spring中方法级验证参数 - resentment - 博客园 | 2 months ago
    javax.validation.ConstraintViolationException: null
  2. 0
    samebug tip
    The code you're using is probably expecting a value different of null for some variable or object.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Bug in Scheduler? What format for

    GitHub | 3 months ago | poornerd
  5. 0

    This has been spawned from a forum posting. If a bean validated with the _MethodValidationInterceptor_ has two methods with the same name that are prefixed with get/has/is, calling one of these methods will result in a _NullPointerException_. {noformat} java.lang.NullPointerException at org.hibernate.validator.internal.engine.ValidatorImpl.validateParametersInContext( at org.hibernate.validator.internal.engine.ValidatorImpl.validateAllParameters( at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke( at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke( at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed( at org.springframework.aop.framework.JdkDynamicAopProxy.invoke( {noformat} Code snippet example: Problem experienced when calling following methods on method validated bean. {code} ValidatedObject getMyValidObject(arg1); ValidatedObject getMyValidObject(arg1, arg2); {code} Workaround: {code} ValidatedObject retrieveMyValidObject(arg1); ValidatedObject retrieveMyValidObject(arg1, arg2); {code} or: {code} ValidatedObject getMyValidObject(arg1); ValidatedObject getMyValidObjectDifferentMethodName(arg1, arg2); {code} I'm not aware of a workaround that doesn't involve having to change the interface! A detailed description with some code references is available here:

    Hibernate JIRA | 5 years ago | Louis Burton

    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. javax.validation.ConstraintViolationException

      No message provided

      at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke()
    2. Spring Context
      1. org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(
      1 frame