[Seasar-user:11524] Re: requiresNewTxにてcommit時に例外が発生した場合にRollbackされない
鈴木 順
[E-MAIL ADDRESS DELETED]
2007年 11月 7日 (水) 21:14:18 JST
小林さん
お世話になっております。鈴木です。
SNAPSHOT適用して稼動確認しました。
大方はOKですが、以下のような例外が発生します。
想像なのですがトランザクションが入れ子になっている場合に
例外が発生すると言う事は無いでしょうか?
スタックにあるように、
org.seasar.extension.tx.RequiredInterceptor.invoke
のトランザクションの中に
org.seasar.extension.tx.RequiresNewInterceptor.invoke
のトランザクションがあります。
[07/11/07 21:10:39:391 JST] 00000043 ConnectionMan E J2CA0058E: ConnectionManager は、リソース jdbc/cimTestXA に対して、接続 [E-MAIL ADDRESS DELETED] を ManagedConnection MCWrapper id 6152d0ce Managed connection [E-MAIL ADDRESS DELETED] State:STATE_TRAN_WRAPPER_INUSE
と関連付けることができませんでした。 例外を受け取りました: javax.resource.ResourceException: Current UOW does not match the UOW with which the ManagedConnection is already enlisted.
at com.ibm.ejs.j2c.ConnectionManager.reAssociate(ConnectionManager.java:1612)
at com.ibm.ejs.j2c.HandleList.reAssociate(HandleList.java:354)
at com.ibm.ejs.j2c.ConnectionHandleManager.userTranBegin(ConnectionHandleManager.java:310)
at com.ibm.ejs.j2c.LTCHandleCollaborator.transactionPostBegin(LTCHandleCollaborator.java:163)
at com.ibm.ejs.j2c.LTCHandleCollaborator.contextChange(LTCHandleCollaborator.java:104)
at com.ibm.ws.LocalTransaction.LTCCallbacks.contextChange(LTCCallbacks.java:136)
at com.ibm.ws.LocalTransaction.LTCUOWCallback.contextChange(LTCUOWCallback.java:166)
at com.ibm.ws.uow.UOWScopeCallbackManager.notifyCallbacks(UOWScopeCallbackManager.java:62)
at com.ibm.ws.Transaction.JTA.UserTransactionImpl.begin(UserTransactionImpl.java:180)
at com.ibm.ws.uow.UOWManagerImpl.uowBegin(UOWManagerImpl.java:1133)
at com.ibm.ws.uow.UOWManagerImpl.runUnderNewUOW(UOWManagerImpl.java:957)
at com.ibm.ws.uow.UOWManagerImpl.runUnderUOW(UOWManagerImpl.java:506)
at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter.executeCallback(WAS6TransactionManagerAdapter.java:123)
at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter.requiresNew(WAS6TransactionManagerAdapter.java:72)
at org.seasar.extension.tx.RequiresNewInterceptor.invoke(RequiresNewInterceptor.java:41)
at jp.co.worksap.cim.web.auto.ListPage$$EnhancedByS2AOP$$339bd0d8$$MethodInvocation$$deleteAction0.proceed(MethodInvocationClassGenerator.java)
at jp.co.worksap.cim.web.auto.ListPage$$EnhancedByS2AOP$$339bd0d8.deleteAction(ListPage$$EnhancedByS2AOP$$339bd0d8.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at org.seasar.teeda.core.el.impl.MethodBindingImpl.invoke(MethodBindingImpl.java:70)
at org.seasar.jsf.util.InvokeUtil.invokeInternal(InvokeUtil.java:92)
at org.seasar.jsf.util.InvokeUtil.invoke(InvokeUtil.java:72)
at org.seasar.jsf.application.ActionListenerImpl.processAction(ActionListenerImpl.java:65)
at javax.faces.component.UICommand.broadcast(UICommand.java:149)
at jp.co.worksap.common.jsfui.abstable.AbsTable.broadcast(AbsTable.java:357)
at org.seasar.jsf.component.S2UIViewRoot.broadcastForPhase(S2UIViewRoot.java:119)
at org.seasar.jsf.component.S2UIViewRoot.processApplication(S2UIViewRoot.java:90)
at org.seasar.jsf.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:177)
at org.seasar.jsf.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:108)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:92)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:136)
at jp.co.worksap.cim.webapp.AuthenticationFilter.doFilter(AuthenticationFilter.java:62)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at org.seasar.hibernate3.filter.FilterChainTxImpl.doFilter(FilterChainTxImpl.java:31)
at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$444110cf.$$doFilter$$invokeSuperMethod$$(FilterChainTxImpl$$EnhancedByS2AOP$$444110cf.java)
at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$444110cf$$MethodInvocation$$doFilter0.proceed(MethodInvocationClassGenerator.java)
at org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)
at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter$UOWActionImpl.run(WAS6TransactionManagerAdapter.java:167)
at com.ibm.ws.uow.UOWManagerImpl.runUnderNewUOW(UOWManagerImpl.java:969)
at com.ibm.ws.uow.UOWManagerImpl.runUnderUOW(UOWManagerImpl.java:506)
at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter.executeCallback(WAS6TransactionManagerAdapter.java:123)
at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter.required(WAS6TransactionManagerAdapter.java:67)
at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:41)
at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$444110cf$$MethodInvocation$$doFilter0.proceed(MethodInvocationClassGenerator.java)
at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$444110cf.doFilter(FilterChainTxImpl$$EnhancedByS2AOP$$444110cf.java)
at org.seasar.hibernate3.filter.OpenSessionInViewFilter.doFilter(OpenSessionInViewFilter.java:21)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at jp.co.worksap.cwf.client.filter.AsyncSoapExecuteFilter.doFilter(AsyncSoapExecuteFilter.java:30)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:77)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:142)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:121)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3174)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
[07/11/07 21:10:39:422 JST] 00000043 HandleList W PARK_OR_REASSOCIATE_FAILED_W_J2CA0083
以上
Seasar-user メーリングリストの案内