org.hibernate.TransientObjectException

object references an unsaved transient instance - save the transient instance before flushing: com.aphroditesocial.web.model.UserProfile

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 web22

  • via Stack Overflow by The Nightmare
    ,
  • Stack trace

    • org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.aphroditesocial.web.model.UserProfile at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:294) at org.hibernate.type.EntityType.getIdentifier(EntityType.java:537) at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:165) at org.hibernate.persister.collection.AbstractCollectionPersister.writeElement(AbstractCollectionPersister.java:899) at org.hibernate.persister.collection.AbstractCollectionPersister.recreate(AbstractCollectionPersister.java:1308) at org.hibernate.action.internal.CollectionRecreateAction.execute(CollectionRecreateAction.java:67) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:465)

    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

    derproggerderprogger
    2 times, last one
    Victor_ITVictor_IT
    3 times, last one
    DoktorDoener666DoktorDoener666
    Once,
    kjhdofjosvskjhdofjosvs
    Once,
    MoYaproMoYapro
    Once,
    4 more bugmates