java.lang.NullPointerException

GitHub | babanin | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Grails 3 flush hibernate session causes NullPointerException

    Stack Overflow | 2 months ago | Fernando Buccella
    java.lang.reflect.InvocationTargetException: null

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.hibernate.engine.spi.BatchFetchQueue.removeBatchLoadableEntityKey()
    2. Hibernate
      DefaultSaveOrUpdateEventListener.onSaveOrUpdate
      1. org.hibernate.engine.spi.BatchFetchQueue.removeBatchLoadableEntityKey(BatchFetchQueue.java:163)
      2. org.hibernate.engine.internal.StatefulPersistenceContext.addEntity(StatefulPersistenceContext.java:389)
      3. org.hibernate.engine.internal.StatefulPersistenceContext.addEntity(StatefulPersistenceContext.java:462)
      4. org.hibernate.action.internal.AbstractEntityInsertAction.makeEntityManaged(AbstractEntityInsertAction.java:143)
      5. org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:203)
      6. org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:181)
      7. org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:216)
      8. org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:334)
      9. org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:289)
      10. org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:195)
      11. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:126)
      12. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:209)
      13. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:194)
      14. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:114)
      15. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
      15 frames
    3. Grails GORM
      ClosureEventTriggeringInterceptor.onSaveOrUpdate
      1. org.grails.orm.hibernate.support.ClosureEventTriggeringInterceptor.onSaveOrUpdate(ClosureEventTriggeringInterceptor.java:105)
      1 frame
    4. Hibernate
      DefaultSaveOrUpdateEventListener.onSaveOrUpdate
      1. org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:684)
      2. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:676)
      3. org.hibernate.engine.spi.CascadingActions$5.cascade(CascadingActions.java:235)
      4. org.hibernate.engine.internal.Cascade.cascadeToOne(Cascade.java:350)
      5. org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:293)
      6. org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161)
      7. org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118)
      8. org.hibernate.event.internal.AbstractSaveEventListener.cascadeAfterSave(AbstractSaveEventListener.java:470)
      9. org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:295)
      10. org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:195)
      11. org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:126)
      12. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:209)
      13. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:194)
      14. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:114)
      15. org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:90)
      15 frames
    5. Grails GORM
      ClosureEventTriggeringInterceptor.onSaveOrUpdate
      1. org.grails.orm.hibernate.support.ClosureEventTriggeringInterceptor.onSaveOrUpdate(ClosureEventTriggeringInterceptor.java:105)
      1 frame
    6. Hibernate
      SessionImpl.saveOrUpdate
      1. org.hibernate.internal.SessionImpl.fireSaveOrUpdate(SessionImpl.java:684)
      2. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:676)
      3. org.hibernate.internal.SessionImpl.saveOrUpdate(SessionImpl.java:671)
      3 frames
    7. Grails GORM
      AbstractHibernateGormInstanceApi.performSave_closure3
      1. org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.performSave_closure3(AbstractHibernateGormInstanceApi.groovy:235)
      1 frame
    8. Groovy
      Closure.call
      1. groovy.lang.Closure.call(Closure.java:414)
      1 frame
    9. Grails GORM
      AbstractHibernateGormInstanceApi.save
      1. org.grails.orm.hibernate.GrailsHibernateTemplate.doExecute(GrailsHibernateTemplate.java:196)
      2. org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:140)
      3. org.grails.orm.hibernate.GrailsHibernateTemplate.execute(GrailsHibernateTemplate.java:110)
      4. org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.performSave(AbstractHibernateGormInstanceApi.groovy:234)
      5. org.grails.orm.hibernate.AbstractHibernateGormInstanceApi.save(AbstractHibernateGormInstanceApi.groovy:154)
      5 frames
    10. Grails GORM
      GormEntity$Trait$Helper.save
      1. org.grails.datastore.gorm.GormEntity$Trait$Helper.save(GormEntity.groovy:151)
      1 frame
    11. dependent.entity.fail
      UserIntegrationSpec.$tt__$spock_feature_0_0
      1. dependent.entity.fail.validate.UserIntegrationSpec.$tt__$spock_feature_0_0(UserIntegrationSpec.groovy:15)
      1 frame