When the user performs a fileupload it works fine but in JBoss log I get an exception. The fileupload works and the uploaded data is also persisted in the DB.
But here is the exception I always get :
Code:
15:28:47,736 ERROR [[/signalisation]] Session attribute event listener threw exception
java.lang.IllegalStateException: cannot passivate persistence context with active transaction
at org.jboss.seam.persistence.ManagedPersistenceContext.sessionWillPassivate(ManagedPersistenceContext.java:152)
at org.jboss.web.tomcat.service.session.ClusteredSession.notifyWillPassivate(ClusteredSession.java:1532)
at org.jboss.web.tomcat.service.session.JBossCacheManager.storeSession(JBossCacheManager.java:303)
at org.jboss.web.tomcat.service.session.InstantSnapshotManager.snapshot(InstantSnapshotManager.java:51)
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:147)
at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)
at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
I use the fileupload component the same way than in the component showcase.
I use the @In seam annotations in all the beans.
Do you have any clue for clustered environments ? (@Clusted annotation on the SFSB)
I don't think that the problem comes from the @Clustered annotation because removing this also produces the exception.
But removing the <distributable/> tag in web.xml (web session replication) does not produce the exception.
Do you have any information and experience with clustered applications ? With fileupload component ?
are you using SMPC or container managed transactions? It looks to me like the transaction management may not be configured for clustering. What type of transaction-management have you got configured?
As I mentioned in my first post the fileupload works but it only produces the exception. I will let the outputProgress component in my applications because our users really appreciate this feature.
Hopefully it will be fixed in futur releases. I will open a JIRA for this issue
Thanks
Georges
PS: I think you somehow mentioned that you had problems or did not use the outputprogress component.