tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Vysny (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENEJB-806) Transaction Logging not working in OpenEJB for RequiresNew transaction attribute
Date Wed, 21 May 2008 13:03:55 GMT

    [ https://issues.apache.org/jira/browse/OPENEJB-806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598636#action_12598636
] 

Martin Vysny commented on OPENEJB-806:
--------------------------------------

Probably not a duplicate of OPENEJB-702: The OpenEJB version is 3.0 and the bug did not occurred
in MDB

> Transaction Logging not working in OpenEJB for RequiresNew transaction attribute
> --------------------------------------------------------------------------------
>
>                 Key: OPENEJB-806
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-806
>             Project: OpenEJB
>          Issue Type: Bug
>    Affects Versions: 3.0
>            Reporter: Martin Vysny
>
> Hi, the following error message occurs when OpenEJB tries to commit a transaction (attached
at the end of the mail). There are two transactions active as one method with Required invokes
another with RequiresNew. The thing is, everything works fine - OpenEJB does not crash, transactions
are committed as required, only the exception is shown in the log. I'd hate to suppress errors
in log :) so, do I need to setup openejb.xml somehow, to get rid of this Exception? Isn't
this bug a duplicate of OPENEJB-702 ?
>  ERROR [btpool0-10 Transaction] Please correct the integration and supply a NamedXAResource
> java.lang.IllegalStateException: Cannot log transactions as org.apache.commons.dbcp.managed.LocalXAConnectionFactory$LocalXAResource@104fa3f
is not a NamedXAResource.
> 	at org.apache.geronimo.transaction.manager.TransactionImpl$TransactionBranch.getResourceName(TransactionImpl.java:697)
> 	at org.apache.geronimo.transaction.log.HOWLLog.prepare(HOWLLog.java:254)
> 	at org.apache.geronimo.transaction.manager.TransactionImpl.internalPrepare(TransactionImpl.java:444)
> 	at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:316)
> 	at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:245)
> 	at org.apache.openejb.core.transaction.TransactionPolicy.commitTransaction(TransactionPolicy.java:138)
> 	at org.apache.openejb.core.transaction.TxRequiresNew.afterInvoke(TxRequiresNew.java:73)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:233)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:188)
> 	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:165)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:321)
> 	at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
> 	at $Proxy27.invokeAgent(Unknown Source)
> 	at com.whitestein.fe.impl.ejb.FEInternalServicesBean.invokeAgentWithErrorHandling(FEInternalServicesBean.java:285)
> 	at sun.reflect.GeneratedMethodAccessor331.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
> 	at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:210)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:188)
> 	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:165)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:321)
> 	at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
> 	at $Proxy27.invokeAgentWithErrorHandling(Unknown Source)
> 	at com.whitestein.fe.impl.ejb.FEInternalServicesBean.processCommUnitInServantContext(FEInternalServicesBean.java:260)
> 	at sun.reflect.GeneratedMethodAccessor338.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
> 	at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:210)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:188)
> 	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:165)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:321)
> 	at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
> 	at $Proxy27.processCommUnitInServantContext(Unknown Source)
> 	at com.whitestein.fe.impl.services.ClientServantContextImpl.sendSynchronousMessage(ClientServantContextImpl.java:50)
> 	at com.whitestein.lsts.cal.servant.AbstractClientServant.sendSynchronousMessage(AbstractClientServant.java:30)
> 	at com.whitestein.abpm.human.servants.TodoServantImpl.submitSection(TodoServantImpl.java:182)
> 	at sun.reflect.GeneratedMethodAccessor727.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at com.whitestein.fe.impl.ejb.FEInternalServicesBean.invokeServant(FEInternalServicesBean.java:435)
> 	at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
> 	at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:210)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:188)
> 	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:165)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:321)
> 	at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
> 	at $Proxy27.invokeServant(Unknown Source)
> 	at com.whitestein.fe.impl.ejb.FEClientBean.invokeServant(FEClientBean.java:258)
> 	at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:158)
> 	at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:141)
> 	at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:67)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:210)
> 	at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:188)
> 	at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:165)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:217)
> 	at org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:77)
> 	at org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:321)
> 	at org.apache.openejb.util.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:49)
> 	at $Proxy63.invokeServant(Unknown Source)
> 	at com.whitestein.fe.impl.FEClientImpl.invokeServant(FEClientImpl.java:66)
> 	at com.whitestein.fe.client.AbstractClientCommunication$ServantInvocator.invoke(AbstractClientCommunication.java:263)
> 	at $Proxy70.submitSection(Unknown Source)
> 	at com.whitestein.abpm.webapp.beans.TodoBean.submit(TodoBean.java:617)
> 	at com.whitestein.abpm.webapp.beans.TodoBean.submit(TodoBean.java:588)
> 	at sun.reflect.GeneratedMethodAccessor726.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
> 	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
> 	at javax.faces.component.UICommand.broadcast(UICommand.java:332)
> 	at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
> 	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
> 	at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
> 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> 	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
> 	at org.mortbay.jetty.Server.handle(Server.java:313)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
> 	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:227)
> 	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message