org.jvnet.hk2.config.TransactionFailure: Unexpected exception during isValid call

Oracle Community | anaq | 7 years ago
  1. 0

    Glassfish V3 custom realm issue

    Oracle Community | 7 years ago | anaq
    org.jvnet.hk2.config.TransactionFailure: Unexpected exception during isValid call
  2. 0

    I'm trying to set up a simple Spring Batch job to load some SOR people into the OR (incrementally) Empty data base i.e. no calculated nor SOR records in it (except the reference data). I set up a separate maven project with OR, Spring Batch dependencies to invoke the batch job via CLI. First I try to use the core API to programmatically add a sample record i.e. PersonService#addPerson. For example: {code} JpaReconciliationCriteriaImpl reconciliationCriteria = new JpaReconciliationCriteriaImpl(); JpaSorRoleImpl sorRole = new JpaSorRoleImpl(); JpaSorPersonImpl sorPerson = new JpaSorPersonImpl(); sorRole.setTitle("Test title"); sorRole.setSorId("Person1"); sorRole.setOrganizationalUnit(this.referenceRepository.getOrganizationalUnitByCode("MATH")); sorRole.setSystemOfRecord(this.referenceRepository.findSystemOfRecord("PEOPLESOFT")); sorRole.setAffiliationType(this.referenceRepository.findType(Type.DataTypes.AFFILIATION, "Faculty")); sorRole.setSponsorId(1L); sorPerson.addRole(sorRole); reconciliationCriteria.setSorPerson(sorPerson); personService.addPerson(reconciliationCriteria); {code} and I get: {code} javax.validation.ValidationException: Unexpected exception during isValid call at org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:144) at org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:118) at org.hibernate.validator.metadata.MetaConstraint.validateConstraint(MetaConstraint.java:121) at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:334) at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278) at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260) at org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213) at org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119) at org.openregistry.core.service.DefaultPersonService.addPerson(DefaultPersonService.java:395) ... Caused by: java.lang.NullPointerException at org.openregistry.core.domain.validation.RequiredFieldConstraintValidator.isValid(RequiredFieldConstraintValidator.java:42) at org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:141) {code} Please document what are the minimum requirements to add people records to the OR system via its central API e.g. what are the required pieces of data; What is the minimum required Spring application context configuration e.g. what beans are required for what purposes and what beans are optional; what is the minimum required amount of seed data needs to be in OR tables i.e. does one need to have any calculated persons records in there before attempting any processing, etc. Without this kinds of documentation, the new adopters are left in the dark and are more likely to fail to successfully evaluate the software in short periods of times (sometimes time constraints are given for these evaluations) Thanks, Dmitriy.

    Apereo Issues | 4 years ago | Dmitriy Kopylenko
    javax.validation.ValidationException: Unexpected exception during isValid call
  3. 0

    I'm trying to set up a simple Spring Batch job to load some SOR people into the OR (incrementally) Empty data base i.e. no calculated nor SOR records in it (except the reference data). I set up a separate maven project with OR, Spring Batch dependencies to invoke the batch job via CLI. First I try to use the core API to programmatically add a sample record i.e. PersonService#addPerson. For example: {code} JpaReconciliationCriteriaImpl reconciliationCriteria = new JpaReconciliationCriteriaImpl(); JpaSorRoleImpl sorRole = new JpaSorRoleImpl(); JpaSorPersonImpl sorPerson = new JpaSorPersonImpl(); sorRole.setTitle("Test title"); sorRole.setSorId("Person1"); sorRole.setOrganizationalUnit(this.referenceRepository.getOrganizationalUnitByCode("MATH")); sorRole.setSystemOfRecord(this.referenceRepository.findSystemOfRecord("PEOPLESOFT")); sorRole.setAffiliationType(this.referenceRepository.findType(Type.DataTypes.AFFILIATION, "Faculty")); sorRole.setSponsorId(1L); sorPerson.addRole(sorRole); reconciliationCriteria.setSorPerson(sorPerson); personService.addPerson(reconciliationCriteria); {code} and I get: {code} javax.validation.ValidationException: Unexpected exception during isValid call at org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:144) at org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:118) at org.hibernate.validator.metadata.MetaConstraint.validateConstraint(MetaConstraint.java:121) at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:334) at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278) at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260) at org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213) at org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119) at org.openregistry.core.service.DefaultPersonService.addPerson(DefaultPersonService.java:395) ... Caused by: java.lang.NullPointerException at org.openregistry.core.domain.validation.RequiredFieldConstraintValidator.isValid(RequiredFieldConstraintValidator.java:42) at org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:141) {code} Please document what are the minimum requirements to add people records to the OR system via its central API e.g. what are the required pieces of data; What is the minimum required Spring application context configuration e.g. what beans are required for what purposes and what beans are optional; what is the minimum required amount of seed data needs to be in OR tables i.e. does one need to have any calculated persons records in there before attempting any processing, etc. Without this kinds of documentation, the new adopters are left in the dark and are more likely to fail to successfully evaluate the software in short periods of times (sometimes time constraints are given for these evaluations) Thanks, Dmitriy.

    Apereo Issues | 4 years ago | Dmitriy Kopylenko
    javax.validation.ValidationException: Unexpected exception during isValid call
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JPA + JSR 303 Bean Validation problem

    Oracle Community | 6 years ago | sandstorm_sh
    javax.validation.ValidationException: Unable to initialize org.hibernate.validator.constraints.impl.PatternValidator
  6. 0

    JSF 2.0: h:inputText inside composite component fails with non-String objects when validation is set

    Stack Overflow | 6 years ago | Tuukka Mustonen
    javax.validation.ValidationException: Unexpected exception during isValid call

    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.ValidationException

      Unexpected exception during isValid call

      at org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint()
    2. Vaadin
      ConstraintTree.validateConstraints
      1. org.hibernate.validator.engine.ConstraintTree.validateSingleConstraint(ConstraintTree.java:144)
      2. org.hibernate.validator.engine.ConstraintTree.validateConstraints(ConstraintTree.java:118)
      2 frames
    3. Embedded GlassFish Web
      MetaConstraint.validateConstraint
      1. org.hibernate.validator.metadata.MetaConstraint.validateConstraint(MetaConstraint.java:121)
      1 frame
    4. Vaadin
      ValidatorImpl.validate
      1. org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:334)
      2. org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278)
      3. org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260)
      4. org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213)
      5. org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119)
      5 frames
    5. HK2 configuration module
      ConfigSupport._apply
      1. org.jvnet.hk2.config.WriteableView.canCommit(WriteableView.java:286)
      2. org.jvnet.hk2.config.Transaction.commit(Transaction.java:96)
      3. org.jvnet.hk2.config.ConfigSupport._apply(ConfigSupport.java:173)
      3 frames