Error seen when creating an Item: object references an unsaved transient instance

  • 7018681
  • 02-Mar-2017
  • 02-Mar-2017

Environment

Novell Service Desk 7.x Item Configuration

Situation

Creating an Item in Service Desk 7.x

The following error may be seen in the web console:

ERROR:
An error occurred when trying to insert the item: object references an unsaved transient instance - save the transient instance before flushing: com.livetime.data.Item

The following error may be seen in the LiveTime.log:

ERROR536752[http-bio-443-exec-757] null(ItemContainer.java:772) - There was a problem inserting the item. (Item Id=181) An error occurred when trying to insert the item: object references an unsaved transient instance - save the transient instance before flushing: com.livetime.data.Item
org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: com.livetime.data.Item
    at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:244)
    at org.hibernate.type.EntityType.getIdentifier(EntityType.java:449)

Resolution

Possible Workaround
  1. Logout and login to the Service Desk web console
  2. Create the Item again

Cause

This is a session issue happening in the WebObjects framework.

Status

Reported to Engineering