• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.hibernate.Transient Object Exception

 
Shivali Sethi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I update my object using session.update(), getting this error
I debugged and found it has all the vals and its child also has all the required vals


org.hibernate.TransientObjectException: com.dst.fourx.model.agreementModel.termM
odel.FundingTermDetail
at org.hibernate.engine.ForeignKeys.get Entity
Identifier
IfNotUnsaved(Fore
ignKeys.java:216)
at org.hibernate.type.AnyType.nullSafeSet(AnyType.java:131)
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(Abst
ractEntityPersister.java:1826)
at org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2172)
at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert
(AbstractEntityPersister.java:2118)
at org.hibernate.persister.entity.AbstractEntityPersister.update(Abstrac
tEntityPersister.java:2374)
at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.ja
va:84)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)

at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)

at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio
ns(AbstractFlushingEventListener.java:296)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlus
hEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356)
at org.hibernate.transaction.CacheSynchronization.beforeCompletion(Cache
Synchronization.java:59)
at weblogic.transaction.internal.ServerSCInfo.doBeforeCompletion(ServerS
CInfo.java:1150)
at weblogic.transaction.internal.ServerSCInfo.callBeforeCompletions(Serv
erSCInfo.java:1128)
at weblogic.transaction.internal.ServerSCInfo.startPrePrepareAndChain(Se
rverSCInfo.java:115)
at weblogic.transaction.internal.ServerTransactionImpl.localPrePrepareAn
dChain(ServerTransactionImpl.java:1288)
at weblogic.transaction.internal.ServerTransactionImpl.globalPrePrepare(
ServerTransactionImpl.java:2098)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
rverTransactionImpl.java:259)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
sactionImpl.java:227)
at weblogic.ejb.container.internal.BaseEJBObject.postInvoke1(BaseEJBObje
ct.java:539)
at weblogic.ejb.container.internal.StatelessEJBObject.postInvoke1(Statel
essEJBObject.java:72)
what could be the cause for this.please suggest
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic