java.lang.NullPointerException

Hibernate JIRA | Marcus Brito | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    The JPATraversableResolver seems to fumble when passed a property path of "" (constraint on root bean class): {code} java.lang.NullPointerException at java.lang.Class.searchFields(Class.java:2599) at java.lang.Class.getField0(Class.java:2618) at java.lang.Class.getField(Class.java:1518) at org.hibernate.ejb.util.PersistenceUtilHelper.get(PersistenceUtilHelper.java:84) at org.hibernate.ejb.util.PersistenceUtilHelper.isLoadedWithReference(PersistenceUtilHelper.java:76) at org.hibernate.ejb.HibernatePersistence.isLoadedWithReference(HibernatePersistence.java:178) at javax.persistence.Persistence$1.isLoaded(Persistence.java:81) at org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33) at org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112) at org.hibernate.validator.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:47) at org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:764) at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331) 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) {code}

    Hibernate JIRA | 7 years ago | Marcus Brito
    java.lang.NullPointerException
  2. 0

    The JPATraversableResolver seems to fumble when passed a property path of "" (constraint on root bean class): {code} java.lang.NullPointerException at java.lang.Class.searchFields(Class.java:2599) at java.lang.Class.getField0(Class.java:2618) at java.lang.Class.getField(Class.java:1518) at org.hibernate.ejb.util.PersistenceUtilHelper.get(PersistenceUtilHelper.java:84) at org.hibernate.ejb.util.PersistenceUtilHelper.isLoadedWithReference(PersistenceUtilHelper.java:76) at org.hibernate.ejb.HibernatePersistence.isLoadedWithReference(HibernatePersistence.java:178) at javax.persistence.Persistence$1.isLoaded(Persistence.java:81) at org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33) at org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112) at org.hibernate.validator.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:47) at org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:764) at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331) 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) {code}

    Hibernate JIRA | 7 years ago | Marcus Brito
    java.lang.NullPointerException
  3. 0

    javax.validation.ValidationException

    Oracle Community | 7 years ago | 392 Guest
    javax.validation.ValidationException: Call to TraversableResolver.isReachable() threw an exception
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 30#1867419

    GitHub | 6 years ago | FauxFaux
    java.lang.NullPointerException
  6. 0

    Bekwam Blog: Dynamic Schemas in Talend Open Studio

    blogspot.com | 8 months ago
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at java.lang.Class.searchFields()
    2. Java RT
      Class.getField
      1. java.lang.Class.searchFields(Class.java:2599)
      2. java.lang.Class.getField0(Class.java:2618)
      3. java.lang.Class.getField(Class.java:1518)
      3 frames
    3. Hibernate EJB
      HibernatePersistence.isLoadedWithReference
      1. org.hibernate.ejb.util.PersistenceUtilHelper.get(PersistenceUtilHelper.java:84)
      2. org.hibernate.ejb.util.PersistenceUtilHelper.isLoadedWithReference(PersistenceUtilHelper.java:76)
      3. org.hibernate.ejb.HibernatePersistence.isLoadedWithReference(HibernatePersistence.java:178)
      3 frames
    4. JavaEE 7
      Persistence$1.isLoaded
      1. javax.persistence.Persistence$1.isLoaded(Persistence.java:81)
      1 frame
    5. Embedded GlassFish Web
      SingleThreadCachedTraversableResolver.isReachable
      1. org.hibernate.validator.engine.resolver.JPATraversableResolver.isReachable(JPATraversableResolver.java:33)
      2. org.hibernate.validator.engine.resolver.DefaultTraversableResolver.isReachable(DefaultTraversableResolver.java:112)
      3. org.hibernate.validator.engine.resolver.SingleThreadCachedTraversableResolver.isReachable(SingleThreadCachedTraversableResolver.java:47)
      3 frames
    6. Vaadin
      ValidatorImpl.validate
      1. org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:764)
      2. org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:331)
      3. org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForRedefinedDefaultGroup(ValidatorImpl.java:278)
      4. org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:260)
      5. org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:213)
      6. org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:119)
      6 frames