Hi,
I am also encountering the same problem in my application.
My env:
Websphere Application Server 6
Spring 1.2.8
The flow is like this.
1. User browses for a file and clicks Upload.
2. The control now goes to a struts action.
3. In the action class a new thred will be started and the file will be passed
to the thread for further processing.
4. Once the thread starts the action will forward the request to a success jsp (irrespective of thread completion status).
I am using OSIV filter and the configuration in web.xml is
Code:
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
Following is the exception stack :
Code:
[6/17/07 11:35:00:906 IST] 00000117 LazyInitializ E org.hibernate.LazyInitializationException <init> could not initialize proxy - the owning Session was closed
org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:53)
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:84)
at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:134)
at com.alter.model.ReferenceCode$$EnhancerByCGLIB$$2b0c448c.attLOV(<generated>)
at com.alter.util.FileUploadCheckHelper.checkUploadMap(FileUploadCheckHelper.java:280)
at com.alter.util.FileThread.run(FileThread.java:75)
Any help will be greatly appreciated...
Thanks in advance.
- Rakesh