Gettings,
I'm having a strange error. I'm trying to update an object that is in my servlet session, both to ensure it is up to date and to associate it with my current session, but I get an error on the update. The exception is from within SessionImpl, and is follows:
Code:
at net.sf.hibernate.engine.Cascades.deleteOrphans(Cascades.java:542)
at net.sf.hibernate.engine.Cascades.cascadeCollection(Cascades.java:533)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:452)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:503)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:482)
at net.sf.hibernate.impl.SessionImpl.doUpdate(SessionImpl.java:1408)
at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1327)
at net.sf.hibernate.engine.Cascades$4.cascade(Cascades.java:114)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:436)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:503)
at net.sf.hibernate.engine.Cascades.cascade(Cascades.java:482)
at net.sf.hibernate.impl.SessionImpl.doUpdate(SessionImpl.java:1408)
at net.sf.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:1327)
at com.ts.users.daoimpl.HibernateUserDAO.updateUser(HibernateUserDAO.java:200)
at com.ts.users.UserFunctions.updateUser(UserFunctions.java:324)
Starting at the bottom, I call updateUser on my User object (from the Session), it in turn hits the DAO which does an update on it. It rapidly falls apart after that.
Any idea whats happening here? The User object references other persistent objects and collections.. many of which are empty at this time. Is this a mapping error of some sort, or some other problem?
thanks for assistance.