Neni ta entita nahodou detached?

-- 
Vlastimil Vavru
Phone: +420 606 228 350
E-mail: [EMAIL PROTECTED]
http://vavru.cz

Dne Tue, 11 Dec 2007 14:17:01 +0100 ace ace <[EMAIL PROTECTED]> napsal/-a:

> Ahoj,
>
> pouzivam ve sve web aplikaci Hibernate + Spring. Pouzivam
> OpenSessionInViewFilter, kazdopadne stejne mi dochazi k
> LazyInitializationException. Soude podle logu (uvedeny nize) mi vse
> prijde naprosto v poradku...
> Nemate nekdo nejaky tip proc se tohle stava? Dekuji za odpoved.
>
> DEBUG - OpenSessionInViewFilter - Closing single Hibernate Session in
> OpenSessionInViewFilter
> DEBUG - SessionFactoryUtils - Closing Hibernate Session
> DEBUG - OpenSessionInViewFilter - Using SessionFactory 'sessionFactory'
> for OpenSessionInViewFilter
> DEBUG - DefaultListableBeanFactory - Returning cached instance of
> singleton bean 'sessionFactory'
> DEBUG - OpenSessionInViewFilter - Opening single Hibernate Session in
> OpenSessionInViewFilter
> DEBUG - SessionFactoryUtils - Opening Hibernate Session
> DEBUG - SessionImpl - opened session at timestamp: 4904447687229440
> DEBUG - tionSynchronizationManager - Bound value
> [EMAIL PROTECTED] for key
> [EMAIL PROTECTED] to thread [http-8888-2]
> ERROR - azyInitializationException - failed to lazily initialize a
> collection of role: cz.pokus.Objednavka.Zbozi, no session or session was
> closed
> org.hibernate.LazyInitializationException: failed to lazily initialize a
> collection of role: cz.tigra.agos.prognose.dataobjects.Projekt.prognozy,
> no session or session was closed
> at
> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)
> at
> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)
> at
> org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:97)
> at org.hibernate.collection.PersistentSet.size(PersistentSet.java:139)
> ------------------------------------------
>
> http://search.atlas.cz/



-- 
Vlastimil Vavru
Phone: +420 606 228 350
E-mail: [EMAIL PROTECTED]
http://vavru.cz

Odpovedet emailem