java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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}
    via by Marcus Brito,
  • 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}
    via by Marcus Brito,
  • javax.validation.ValidationException
    via by 392 Guest,
  • GitHub comment 30#1867419
    via GitHub by FauxFaux
    ,
  • Bekwam Blog: Dynamic Schemas in Talend Open Studio
    via by Unknown author,
    • 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)
    No Bugmate found.