• Post Reply Bookmark Topic Watch Topic
  • New Topic

LocalTransactionException

 
Asha P Pudakalkatti
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the below exception in server log. Can anyone suggest the solution?
[#|2011-02-11T06:52:52.139-0600|SEVERE|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=22;_ThreadName=p: thread-pool-1; w: 9;_RequestID=1c6a22ab-e514-49bd-869f-3166928c58af;|RAR5031:System Exception.
javax.resource.spi.LocalTransactionException: Closed Connection
at com.stc.gjc.spi.LocalTransaction.commit(LocalTransaction.java:61)
at com.sun.enterprise.resource.ConnectorXAResource.commit(ConnectorXAResource.java:114)
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:462)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3796)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3575)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1226)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.java:1197)
at com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDelivery(MessageBeanListenerImpl.java:79)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:205)
at $Proxy116.onBatchFileList(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.stc.connector.framework.eway.EndpointProxy.invoke(EndpointProxy.java:177)
at $Proxy115.onBatchFileList(Unknown Source)
at com.stc.connector.batchadapter.system.BatchInboundWork.run(BatchInboundWork.java:206)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
|#]

[#|2011-02-11T06:52:52.142-0600|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=22;_ThreadName=p: thread-pool-1; w: 9;HospitalGemsUpdates:esBatchInbound_svc_jcdHospitalGemsUpdates;javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException;|MDB00037: [HospitalGemsUpdates:esBatchInbound_svc_jcdHospitalGemsUpdates]: Message-driven bean invocation exception: [javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException]|#]

[#|2011-02-11T06:52:52.142-0600|INFO|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=22;_ThreadName=p: thread-pool-1; w: 9;|javax.ejb.EJBException
javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException
javax.transaction.SystemException
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:476)
at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:371)
at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3796)
at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3575)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1226)
at com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.java:1197)
at com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDelivery(MessageBeanListenerImpl.java:79)
at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:205)
at $Proxy116.onBatchFileList(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.stc.connector.framework.eway.EndpointProxy.invoke(EndpointProxy.java:177)
at $Proxy115.onBatchFileList(Unknown Source)
at com.stc.connector.batchadapter.system.BatchInboundWork.run(BatchInboundWork.java:206)
at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
Caused by: javax.transaction.xa.XAException: javax.resource.spi.LocalTransactionException: Closed Connection
at com.sun.enterprise.resource.ConnectorXAResource.handleResourceException(ConnectorXAResource.java:105)
at com.sun.enterprise.resource.ConnectorXAResource.commit(ConnectorXAResource.java:116)
at com.sun.enterprise.distributedtx.J2EETransaction.commit(J2EETransaction.java:462)
... 17 more
javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[javax.ejb.EJBException: Unable to complete container-managed transaction.; nested exception is: javax.transaction.SystemException]|#]


The stack trace does suggest that an underlying connection is closed before the container has had a chance to commit the transaction. In the absence of any other information, the most obvious thing to do would be to adjust the timeout property on the underlying connection. Did you try that?

cheers,
ram.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!