ivan2007
Apr 14th, 2008, 04:49 PM
Hi,
I am trying to use a persistence context in both a parent and subflow.
When entering the subflow I get the following:
java.lang.IllegalStateException: Already value [org.springframework.orm.hibernate3.SessionHolder@1 254e59] for key [org.hibernate.impl.SessionFactoryImpl@56b64c] bound to thread [http-8084-4]
org.springframework.transaction.support.Transactio nSynchronizationManager.bindResource(TransactionSy nchronizationManager.java:169)
org.springframework.webflow.persistence.HibernateF lowExecutionListener.bind(HibernateFlowExecutionLi stener.java:173)
org.springframework.webflow.persistence.HibernateF lowExecutionListener.sessionStarting(HibernateFlow ExecutionListener.java:110)
org.springframework.webflow.engine.impl.FlowExecut ionListeners.fireSessionStarting(FlowExecutionList eners.java:117)
org.springframework.webflow.engine.impl.FlowExecut ionImpl.start(FlowExecutionImpl.java:359)
org.springframework.webflow.engine.impl.RequestCon trolContextImpl.start(RequestControlContextImpl.ja va:229)
org.springframework.webflow.engine.SubflowState.do Enter(SubflowState.java:101)
org.springframework.webflow.engine.State.enter(Sta te.java:193)
org.springframework.webflow.engine.Transition.exec ute(Transition.java:222)
I guess that webflow is trying to bind a persistence context while there is already one available. I am having this problem for longer than a month and still haven't found a solution.
According to the ref guide there is also a ConversationScoped PersistenceContext pattern. I think this should make the the persistence context available for subflows.
The ref guide however doesn't tell me how this is implemented.
Any suggestions?
I am trying to use a persistence context in both a parent and subflow.
When entering the subflow I get the following:
java.lang.IllegalStateException: Already value [org.springframework.orm.hibernate3.SessionHolder@1 254e59] for key [org.hibernate.impl.SessionFactoryImpl@56b64c] bound to thread [http-8084-4]
org.springframework.transaction.support.Transactio nSynchronizationManager.bindResource(TransactionSy nchronizationManager.java:169)
org.springframework.webflow.persistence.HibernateF lowExecutionListener.bind(HibernateFlowExecutionLi stener.java:173)
org.springframework.webflow.persistence.HibernateF lowExecutionListener.sessionStarting(HibernateFlow ExecutionListener.java:110)
org.springframework.webflow.engine.impl.FlowExecut ionListeners.fireSessionStarting(FlowExecutionList eners.java:117)
org.springframework.webflow.engine.impl.FlowExecut ionImpl.start(FlowExecutionImpl.java:359)
org.springframework.webflow.engine.impl.RequestCon trolContextImpl.start(RequestControlContextImpl.ja va:229)
org.springframework.webflow.engine.SubflowState.do Enter(SubflowState.java:101)
org.springframework.webflow.engine.State.enter(Sta te.java:193)
org.springframework.webflow.engine.Transition.exec ute(Transition.java:222)
I guess that webflow is trying to bind a persistence context while there is already one available. I am having this problem for longer than a month and still haven't found a solution.
According to the ref guide there is also a ConversationScoped PersistenceContext pattern. I think this should make the the persistence context available for subflows.
The ref guide however doesn't tell me how this is implemented.
Any suggestions?