cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nacho Jimenez <nacho.jime...@gmail.com>
Subject Re: [CHS] "Illegal attempt to associate a collection with two open sessions" exception in update
Date Mon, 19 Sep 2005 16:31:10 GMT
No, deffinitely it's Hibernate 2 with Spring 1.1.

I can use the update() fuction  if i'm still in the  request here i
created the object getHibernateTemplate.create(obj), but once It's
created, It's imposible to update without getting the exception.

Anyone has an idea?

2005/9/19, Nacho Jimenez <nacho.jimenez@gmail.com>:
> No, I think i'm using hibernate2 (i'm uising Ugo's CHS petstore
> libraries), but i'll try.
> 
> 
> 
> 2005/9/19, Mark Lundquist <ml@wrinkledog.com>:
> >
> > On Sep 19, 2005, at 8:12 AM, Nacho Jimenez wrote:
> >
> > > Hi all,
> > >
> > > I'm working in a cocoon-hibernate-spring project, and I'm stuck in an
> > > Illegal attempt to associate a collection with two open sessions
> > > exception eveytime I try to update an persistent object with the
> > > getHibernateTemplate().update(Object) function.
> >
> > Are you using Hibernate 3?  Try using merge() instead of update().
> > —ml—
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
> >
>
Mime
View raw message