org.hibernate.id.IdentifierGenerationException: null id generated for:class org.openxava.educational.model.Student

openxava | pearlbuk | 1 decade 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

    Openxava2.0.2 with MySQL

    openxava | 1 decade ago | pearlbuk
    org.hibernate.id.IdentifierGenerationException: null id generated for:class org.openxava.educational.model.Student

    Root Cause Analysis

    1. org.hibernate.id.IdentifierGenerationException

      null id generated for:class org.openxava.educational.model.Student

      at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId()
    2. Hibernate
      SessionImpl.save
      1. org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:95)
      2. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
      3. org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
      4. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
      5. org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
      6. org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
      7. org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:530)
      8. org.hibernate.impl.SessionImpl.save(SessionImpl.java:518)
      9. org.hibernate.impl.SessionImpl.save(SessionImpl.java:514)
      9 frames
    3. org.openxava.model
      MapFacade.create
      1. org.openxava.model.impl.HibernatePersistenceProvider.persist(HibernatePersistenceProvider.java:33)
      2. org.openxava.model.impl.BasePOJOPersistenceProvider.create(BasePOJOPersistenceProvider.java:155)
      3. org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:629)
      4. org.openxava.model.impl.MapFacadeBean.create(MapFacadeBean.java:38)
      5. org.openxava.model.MapFacade.create(MapFacade.java:73)
      5 frames
    4. org.openxava.actions
      SaveAction.execute
      1. org.openxava.actions.SaveAction.execute(SaveAction.java:24)
      1 frame
    5. org.openxava.controller
      ModuleManager.execute
      1. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:309)
      2. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:238)
      3. org.openxava.controller.ModuleManager.execute(ModuleManager.java:205)
      3 frames