[Seasar-user:11544] Re: requiresNewTxにてcommit時に例外が発生した場合にRollbackされない

鈴木 順 [E-MAIL ADDRESS DELETED]
2007年 11月 8日 (木) 19:36:05 JST


小林さん

お世話になっております。鈴木です。

ログの方取得できました。
少々昨日送付したものとは違い、
S2SessionFactoryImpl::bindSession->createSession
がちゃんと2度発生していますが、
例外が発生している事は変わりがありません。
(こちらのログ整形ミスかもしれません。すみません。)
DBへの更新も実施されていません。

[07/11/08 19:19:58:641 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info end requiredTx
[07/11/08 19:21:58:859 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info begin requiredTx
[07/11/08 19:21:58:875 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:21:58:875 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:58:891 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:21:58:891 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:21:58:906 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:58:906 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:21:58:906 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info getResource key=[E-MAIL ADDRESS DELETED], value=null
[07/11/08 19:21:58:906 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:21:58:922 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:58:922 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:21:58:922 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info putResource key=[E-MAIL ADDRESS DELETED], value=[E-MAIL ADDRESS DELETED]
[07/11/08 19:21:58:922 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl bindSession S2SessionFactoryImpl::bindSession->createSession.tx=[E-MAIL ADDRESS DELETED]
[07/11/08 19:21:58:938 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl getConnection S2SessionFactoryImpl::getConnection.ThreadId=2
[07/11/08 19:21:58:969 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:21:58:984 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:59:016 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:21:59:031 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info getResource key=[E-MAIL ADDRESS DELETED], value=[E-MAIL ADDRESS DELETED]
[07/11/08 19:21:59:078 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:21:59:094 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:59:094 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:21:59:094 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info getResource key=[E-MAIL ADDRESS DELETED], value=[E-MAIL ADDRESS DELETED]
[07/11/08 19:21:59:188 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info begin requiresNewTx
[07/11/08 19:21:59:203 JST] 00000037 ConnectionMan E   J2CA0058E: ConnectionManager は、リソース jdbc/cimTestXA に対して、接続 [E-MAIL ADDRESS DELETED] を ManagedConnection MCWrapper id 626634b5  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:133)
	at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter.requiresNew(WAS6TransactionManagerAdapter.java:79)
	at org.seasar.extension.tx.RequiresNewInterceptor.invoke(RequiresNewInterceptor.java:41)
	at jp.co.worksap.cim.web.auto.ListPage$$EnhancedByS2AOP$$323474b1$$MethodInvocation$$deleteAction0.proceed(MethodInvocationClassGenerator.java)
	at jp.co.worksap.cim.web.auto.ListPage$$EnhancedByS2AOP$$323474b1.deleteAction(ListPage$$EnhancedByS2AOP$$323474b1.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$$6f763487.$$doFilter$$invokeSuperMethod$$(FilterChainTxImpl$$EnhancedByS2AOP$$6f763487.java)
	at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$6f763487$$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:180)
	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:133)
	at org.seasar.extension.tx.adapter.WAS6TransactionManagerAdapter.required(WAS6TransactionManagerAdapter.java:69)
	at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:41)
	at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$6f763487$$MethodInvocation$$doFilter0.proceed(MethodInvocationClassGenerator.java)
	at org.seasar.hibernate3.filter.FilterChainTxImpl$$EnhancedByS2AOP$$6f763487.doFilter(FilterChainTxImpl$$EnhancedByS2AOP$$6f763487.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.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:89)
	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1936)
	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.HttpInboundLink.ready(HttpInboundLink.java:288)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
	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/08 19:21:59:281 JST] 00000037 HandleList    W   PARK_OR_REASSOCIATE_FAILED_W_J2CA0083
[07/11/08 19:21:59:734 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081866
[07/11/08 19:21:59:750 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:59:766 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=1
[07/11/08 19:21:59:766 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081866
[07/11/08 19:21:59:812 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:59:828 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=1
[07/11/08 19:21:59:828 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info getResource key=[E-MAIL ADDRESS DELETED], value=null
[07/11/08 19:21:59:844 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081866
[07/11/08 19:21:59:859 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:21:59:859 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=1
[07/11/08 19:21:59:875 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info putResource key=[E-MAIL ADDRESS DELETED], value=[E-MAIL ADDRESS DELETED]
[07/11/08 19:21:59:875 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl bindSession S2SessionFactoryImpl::bindSession->createSession.tx=[E-MAIL ADDRESS DELETED]
[07/11/08 19:21:59:891 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl getConnection S2SessionFactoryImpl::getConnection.ThreadId=2
[07/11/08 19:22:00:047 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl$SynchronizationImpl afterCompletion S2SessionFactoryImpl::closeSession.tx=[E-MAIL ADDRESS DELETED]
[07/11/08 19:22:00:047 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info end requiresNewTx
[07/11/08 19:22:00:141 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:22:00:141 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:22:00:156 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:22:00:156 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info getResource key=[E-MAIL ADDRESS DELETED], value=[E-MAIL ADDRESS DELETED]
[07/11/08 19:22:00:438 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl$SynchronizationImpl beforeCompletion S2SessionFactoryImpl::FlushSession.tx=[E-MAIL ADDRESS DELETED]
[07/11/08 19:22:00:453 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::id=6917529027641081865
[07/11/08 19:22:00:469 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::type=1
[07/11/08 19:22:00:484 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info UOWManager::status=0
[07/11/08 19:22:00:484 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info getResource key=[E-MAIL ADDRESS DELETED], value=[E-MAIL ADDRESS DELETED]
[07/11/08 19:22:00:500 JST] 00000037 S2SessionFact I jp.co.worksap.common.s2.S2SessionFactoryImpl$SynchronizationImpl afterCompletion S2SessionFactoryImpl::closeSession.tx=[E-MAIL ADDRESS DELETED]
[07/11/08 19:22:00:516 JST] 00000037 WAS6Transacti I org.seasar.framework.log.Logger info end requiredTx


On Thu, 08 Nov 2007 16:53:59 +0900
鈴木 順 <[E-MAIL ADDRESS DELETED]> wrote:

> 
> 小林さん
> 
> 下記了解です。ちょっと所要で返信に時間がかかります。
> 多分20時頃までには返信できると思います。
> 
> すみませんが宜しくお願いします。
> 
> On Thu, 08 Nov 2007 16:00:11 +0900
> Koichi Kobayashi <[E-MAIL ADDRESS DELETED]> wrote:
> 
> > 小林 (koichik) です.
> > 
> > Date:    Thu, 08 Nov 2007 14:31:13 +0900
> > From:    鈴木 順 <[E-MAIL ADDRESS DELETED]>
> > To:      [E-MAIL ADDRESS DELETED]
> > Subject: [Seasar-user:11539] Re: requiresNewTxにてcommit時に例外が発生した場合にRollbackされない
> > 
> > > 確認しましたが管理コンソール上はXAになっております。
> > > 「oracle.jdbc.xa.client.OracleXADataSource」を使うようになっております。
> > > 一応画像を添付します。
> > 
> > 大丈夫そうですね.
> > 
> > > 他に必要な情報があればこちらで取得しますが、なにかありますでしょうか?
> > 
> > ログを出力するようにした Jar を添付するので,
> > こちらで再度試していただけないでしょうか.
> > org.seasar.extension.tx カテゴリの INFO レベルで
> > 
> > UOWManager::id=...
> > 
> > 等のログが出るのでそれをメールに貼ってください.
> > よろしくお願いします.
> > 
> > 
> > 
> > -- 
> > <component name="koichik">
> >     <property name="fullName">"Koichi Kobayashi"</property>
> >     <property name="email">"[E-MAIL ADDRESS DELETED]"</property>
> >     <property name="blog">"http://d.hatena.ne.jp/koichik"</property>
> > </component>
> 
> 
> _______________________________________________
> Seasar-user mailing list
> [E-MAIL ADDRESS DELETED]
> https://ml.seasar.org/mailman/listinfo/seasar-user


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

株式会社ワークスアプリケーションズ

               鈴木 順(Sunao Suzuki)

東京都港区赤坂1-12-32 アーク森ビル19F
 内線   : 4621
 E-Mail : [E-MAIL ADDRESS DELETED]

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/




Seasar-user メーリングリストの案内