-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Please enhance TransientObjectException message
PostPosted: Wed Oct 06, 2004 11:41 pm 
Beginner
Beginner

Joined: Sat Jan 31, 2004 10:09 am
Posts: 26
Hibernate version:2.1.6


Full stack trace of any exception that occurs:
Caused by: net.sf.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: kk.Organization
net.sf.hibernate.impl.SessionImpl.throwTransientObjectException(SessionImpl.java:2768)
net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2760)
net.sf.hibernate.type.EntityType.getIdentifier(EntityType.java:66)
net.sf.hibernate.type.EntityType.isDirty(EntityType.java:139)
net.sf.hibernate.type.TypeFactory.findDirty(TypeFactory.java:225)
net.sf.hibernate.persister.AbstractEntityPersister.findDirty(AbstractEntityPersister.java:268)
net.sf.hibernate.impl.SessionImpl.flushEntity(SessionImpl.java:2508)
net.sf.hibernate.impl.SessionImpl.flushEntities(SessionImpl.java:2458)
net.sf.hibernate.impl.SessionImpl.flushEverything(SessionImpl.java:2260)
net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2239)
net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:61)
hibernate.SessionUtil.executeTxn(SessionUtil.java:167)


Name and version of the database you are using:MySQL 4.0.20a

This message only shows which transient object needs to be saved first. But it doesn't indicate that this transient object is a property of which entity. We may save more than one entities in a transaction, if you can display the exception more detail, it will be helpful for us to debug. thanks a lot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.