hibernate "null id in entry" exception



Hibernate 2.1.6
DB2 8.1
Java 1.5

I am trying to debug a Swing/Hibernate database app that was written
for us by a (now departed) contractor.

We are getting this exception when we save (ie session.saveOrUpdate()):
net.sf.hibernate.AssertionFailure: null id in entry (don't flush the Session after an exception occurs)


It occurs pretty consistently, but not in the same spot. What seems to cause it one time will work fine another time. I'm thinking that perhaps it is non-deterministic.

Can anyone point me in the right direction or offer any advice? Is hibernate attempting to insert something into the database that does
not have it's identity column set?


TIA
Allen
.



Relevant Pages

  • Hibernate reicht Exception nicht weiter?
    ... Quellcode initialisiere ich Hibernate wie folgt: ... public static SessionFactory getSessionFactory() { ... wird keine Exception geworfen. ...
    (de.comp.lang.java)
  • Re: hibernate question
    ... > Oracle 9 database with Hibernate. ... > catch(Exception ex) ... > public void save ... Turn on Hibernate SQL tracing and us what it's doing. ...
    (comp.lang.java.programmer)
  • Building an Exception Layer
    ... I am trying to build an Exception Layer for a new system. ... In this system I am planning to use Hibernate and Struts. ... StructureException ... will be used in Hibernate and Struts initialization. ...
    (comp.lang.java.programmer)
  • Re: Help needed for hibernate foreign key mapping.
    ... This is a hibernate exception which, IMO, it should not throw in this ... manner. ... ClassCastException is ...
    (comp.lang.java.programmer)
  • [PATCH 8/8] Move RODATA and NX tests to tests/
    ... * modify it under the terms of the GNU General Public License ... this implies having a dynamic exception handling table entry. ... -static noinline int test_address ...
    (Linux-Kernel)