java.lang.IllegalStateException

org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.openxava.escuela.modelo.Alumno.profesor -> org.openxava.escuela.modelo.Profesor

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web4

  • via openxava by sfdors
    ,
  • via openxava by jorgecanoc
    ,
  • Stack trace

    • java.lang.IllegalStateException: org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.openxava.escuela.modelo.Alumno.profesor -> org.openxava.escuela.modelo.Profesor at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:627) at org.hibernate.ejb.AbstractEntityManagerImpl.flush(AbstractEntityManagerImpl.java:300) at org.openxava.model.impl.JPAPersistenceProvider.flush(JPAPersistenceProvider.java:69) at org.openxava.model.impl.MapFacadeBean.commitTransaction(MapFacadeBean.java:74) at org.openxava.model.impl.MapFacadeBean.createAggregate(MapFacadeBean.java:291) at org.openxava.model.MapFacade.createAggregate(MapFacade.java:171) at org.openxava.actions.SaveElementInCollectionAction.createAggregate(SaveElementInCollectionAction.java:110) at org.openxava.actions.SaveElementInCollectionAction.saveAggregate(SaveElementInCollectionAction.java:102) at org.openxava.actions.SaveElementInCollectionAction.execute(SaveElementInCollectionAction.java:33) at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:326) at org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:252) at org.openxava.controller.ModuleManager.execute(ModuleManager.java:218)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.