javax.validation.ConstraintDeclarationException: HV000132: Void methods must not be constrained or marked for cascaded validation, but method public void org.hibernate.validator.test.internal.constraintvalidators.ScriptAssertValidatorTest$CalendarService.createCalendarEvent(java.lang.String,java.util.Date,java.util.Date) is.

Hibernate JIRA | Gunnar Morling | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    For a purely composed cross-parameter constraint (i.e. a constraint which has no own validator but is annotated with another cross-parameter constraint), the validation target needs to be retrieved from the composing constraint(s). Currently such a constraint causes the following exception: {code} javax.validation.ConstraintDeclarationException: HV000132: Void methods must not be constrained or marked for cascaded validation, but method public void org.hibernate.validator.test.internal.constraintvalidators.ScriptAssertValidatorTest$CalendarService.createCalendarEvent(java.lang.String,java.util.Date,java.util.Date) is. at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.checkReturnValueConfiguration(ExecutableMetaData.java:479) at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.build(ExecutableMetaData.java:362) at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl$BuilderDelegate.build(BeanMetaDataImpl.java:601) at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl$BeanMetaDataBuilder.build(BeanMetaDataImpl.java:508) at org.hibernate.validator.internal.metadata.BeanMetaDataManager.createBeanMetaData(BeanMetaDataManager.java:182) {code}

    Hibernate JIRA | 4 years ago | Gunnar Morling
    javax.validation.ConstraintDeclarationException: HV000132: Void methods must not be constrained or marked for cascaded validation, but method public void org.hibernate.validator.test.internal.constraintvalidators.ScriptAssertValidatorTest$CalendarService.createCalendarEvent(java.lang.String,java.util.Date,java.util.Date) is.
  2. 0

    For a purely composed cross-parameter constraint (i.e. a constraint which has no own validator but is annotated with another cross-parameter constraint), the validation target needs to be retrieved from the composing constraint(s). Currently such a constraint causes the following exception: {code} javax.validation.ConstraintDeclarationException: HV000132: Void methods must not be constrained or marked for cascaded validation, but method public void org.hibernate.validator.test.internal.constraintvalidators.ScriptAssertValidatorTest$CalendarService.createCalendarEvent(java.lang.String,java.util.Date,java.util.Date) is. at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.checkReturnValueConfiguration(ExecutableMetaData.java:479) at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.build(ExecutableMetaData.java:362) at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl$BuilderDelegate.build(BeanMetaDataImpl.java:601) at org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl$BeanMetaDataBuilder.build(BeanMetaDataImpl.java:508) at org.hibernate.validator.internal.metadata.BeanMetaDataManager.createBeanMetaData(BeanMetaDataManager.java:182) {code}

    Hibernate JIRA | 4 years ago | Gunnar Morling
    javax.validation.ConstraintDeclarationException: HV000132: Void methods must not be constrained or marked for cascaded validation, but method public void org.hibernate.validator.test.internal.constraintvalidators.ScriptAssertValidatorTest$CalendarService.createCalendarEvent(java.lang.String,java.util.Date,java.util.Date) is.

    Root Cause Analysis

    1. javax.validation.ConstraintDeclarationException

      HV000132: Void methods must not be constrained or marked for cascaded validation, but method public void org.hibernate.validator.test.internal.constraintvalidators.ScriptAssertValidatorTest$CalendarService.createCalendarEvent(java.lang.String,java.util.Date,java.util.Date) is.

      at org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.checkReturnValueConfiguration()
    2. Hibernate Validator Engine
      BeanMetaDataManager.createBeanMetaData
      1. org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.checkReturnValueConfiguration(ExecutableMetaData.java:479)
      2. org.hibernate.validator.internal.metadata.aggregated.ExecutableMetaData$Builder.build(ExecutableMetaData.java:362)
      3. org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl$BuilderDelegate.build(BeanMetaDataImpl.java:601)
      4. org.hibernate.validator.internal.metadata.aggregated.BeanMetaDataImpl$BeanMetaDataBuilder.build(BeanMetaDataImpl.java:508)
      5. org.hibernate.validator.internal.metadata.BeanMetaDataManager.createBeanMetaData(BeanMetaDataManager.java:182)
      5 frames