geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zakharov, Vasily M" <vasily.m.zakha...@intel.com>
Subject Error ending association for XAResource
Date Thu, 25 May 2006 22:56:18 GMT
Hi, all,

I'm experiencing an unexpected transaction rollback while working with
Derby database through the tranql-connector-derby-embed-xa-1.1.rar
connector.
Below are the stack trace I see in the Geronimo log and the deployment
plan for the connector.

Could anyone please tell me what may be wrong in my configuration? Maybe
deployment plan is somewhat incorrect? Thank you!

19:15:48,420 WARN  [Transaction] Error ending association for XAResource
org.apache.geronimo.transaction.manager.WrapperNamedXAResource@12c775e;
transaction will roll back. XA error code: 100
javax.transaction.xa.XAException
	at org.apache.derby.jdbc.EmbedXAConnection.end(Unknown Source)
	at
org.apache.geronimo.transaction.manager.WrapperNamedXAResource.end(Wrapp
erNamedXAResource.java:51)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.endResources(Tra
nsactionImpl.java:524)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.endResources(Tra
nsactionImpl.java:503)
	at
org.apache.geronimo.transaction.manager.TransactionImpl.rollback(Transac
tionImpl.java:444)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl.rollback(
TransactionManagerImpl.java:155)
	at
org.apache.geronimo.transaction.manager.TransactionManagerImpl$$FastClas
sByCGLIB$$14ee5fe0.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv
oker.java:38)
	at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j
ava:118)
	at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav
a:800)
	at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation
Invoker.java:36)
	at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM
ethodInterceptor.java:96)
	at
org.apache.geronimo.transaction.ExtendedTransactionManager$$EnhancerByCG
LIB$$6c8a196e.rollback(<generated>)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.is
Rolledback(InheritableTransactionContext.java:283)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.co
mplete(InheritableTransactionContext.java:171)
	at
org.apache.geronimo.transaction.context.InheritableTransactionContext.co
mmit(InheritableTransactionContext.java:146)
	at
org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPolic
y.java:152)
	at
org.openejb.transaction.TransactionContextInterceptor.invoke(Transaction
ContextInterceptor.java:80)
	at
org.openejb.SystemExceptionInterceptor.invoke(SystemExceptionInterceptor
.java:82)
	at
org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java:238)
	at
org.openejb.proxy.EJBMethodInterceptor.intercept(EJBMethodInterceptor.ja
va:129)
	at
org.openejb.proxy.SessionEJBObject$$EnhancerByCGLIB$$46176911.newOrder(<
generated>)
	at
org.spec.jappserver.servlet.helper.SpecAction.doPurchase(SpecAction.java
:534)
	at
org.spec.jappserver.servlet.helper.SpecAction.atomicityTestOne(SpecActio
n.java:252)
	at
org.spec.jappserver.servlet.helper.SpecServletAction.doAtomicityTests(Sp
ecServletAction.java:1297)
	at
org.spec.jappserver.servlet.SpecAppServlet.performTask(SpecAppServlet.ja
va:166)
	at
org.spec.jappserver.servlet.SpecAppServlet.doGet(SpecAppServlet.java:96)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
	at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
	at
org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolder.j
ava:99)
	at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:830)
	at
org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:170)
	at
org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(Web
ApplicationHandler.java:821)
	at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:471)
	at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
	at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:633)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
	at org.mortbay.http.HttpServer.service(HttpServer.java:909)
	at
org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
	at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
	at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
	at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244
)
	at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
	at
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.0"
    configId="SPECjAppServerDB"
    parentId="geronimo/system-database/1.0/car">
    <resourceadapter>
        <outbound-resourceadapter>
            <connection-definition>
 
<connectionfactory-interface>javax.sql.DataSource</connectionfactory-int
erface>
                <connectiondefinition-instance>
                    <name>SPECDB</name>
                    <config-property-setting
name="DatabaseName">SPECDB</config-property-setting>
                    <config-property-setting
name="CreateDatabase">true</config-property-setting>
                    <config-property-setting name="UserName" />
                    <config-property-setting name="Password" />
                    <connectionmanager>
                        <xa-transaction>
                            <transaction-caching/>
                        </xa-transaction>
                        <single-pool>
                            <max-size>100</max-size>
 
<blocking-timeout-milliseconds>5000</blocking-timeout-milliseconds>
                            <match-one/>
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
            </connection-definition>
        </outbound-resourceadapter>
    </resourceadapter>
</connector>

Vasily Zakharov
Intel Middleware Products Division

Mime
View raw message