Hi,
Could you check if there is any tuning/configuration that is
required in active mq, looks like there is a problem with the connection.
Could you send us the generic ra config.
Thanks
-Ramesh
davood wrote:
> Hi,
>
> I'm trying to use activemq with glassfish v2, initially it works but after a
> short time of using JMS, glassfish can't use activemq any more. When I
> restart the glassfish it works with activemq again but this time it fails
> even faster.
> For connecting glassfish to activemq I'm using genericra and I've made sure
> to enable connection validation for my "Connector Connection Pools" resource
> in glassfish. I'm sending small binary files (less than 1 mege byte) to JMS
> layer. after restarting the OS every thing works without a problem for a
> short time of usage.
> Except sending files to JMS layer I also do have a message driven bean, both
> of hem refuse to work after some time.
> I have to use activemq because we have .net clients too.
>
> --------------------------------------------------------------------------------------------------------------------------
> The resource manager is doing work outside a global transaction
> javax.transaction.xa.XAException: The JMS connection has failed:
> java.io.EOFException
> at
> com.sun.genericra.util.ExceptionUtils.newXAException(ExceptionUtils.java:79)
> at
> com.sun.genericra.outbound.XAResourceProxy._getXAResource(XAResourceProxy.java:252)
> at
> com.sun.genericra.outbound.XAResourceProxy.isSameRM(XAResourceProxy.java:152)
> at com.sun.jts.jta.TransactionState.computeXid(TransactionState.java:226)
> at
> com.sun.jts.jta.TransactionState.startAssociation(TransactionState.java:279)
> at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:205)
> at
> com.sun.enterprise.distributedtx.J2EETransaction.enlistResource(J2EETransaction.java:562)
> at
> com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistResource(J2EETransactionManagerImpl.java:372)
> at
> com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:144)
> at
> com.sun.enterprise.resource.ResourceManagerImpl.registerResource(ResourceManagerImpl.java:144)
> at
> com.sun.enterprise.resource.ResourceManagerImpl.enlistResource(ResourceManagerImpl.java:102)
> at
> com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:216)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
> at
> com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:75)
> at
> com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:115)
> .
> .
> .
> .
> Caused by: org.apache.activemq.ConnectionFailedException: The JMS connection
> has failed: java.io.EOFException
> at
> org.apache.activemq.ActiveMQConnection.checkClosedOrFailed(ActiveMQConnection.java:1233)
> at
> org.apache.activemq.ActiveMQXAConnection.createSession(ActiveMQXAConnection.java:70)
> at
> org.apache.activemq.ActiveMQXAConnection.createXASession(ActiveMQXAConnection.java:58)
> at
> com.sun.genericra.outbound.ManagedConnection.createXaSession(ManagedConnection.java:128)
> at
> com.sun.genericra.outbound.ManagedConnection._getXAResource(ManagedConnection.java:593)
> at
> com.sun.genericra.outbound.XAResourceProxy._getXAResource(XAResourceProxy.java:250)
> ... 67 more
> Caused by: java.io.EOFException
> at java.io.DataInputStream.readInt(DataInputStream.java:375)
> at
> org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:268)
> at
> org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:192)
> at
> org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:184)
> at
> org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:172)
> at java.lang.Thread.run(Thread.java:619)
> |#]
>
>
>
>
>
> Unexpected exception while registering component.
> javax.transaction.SystemException
> at com.sun.jts.jta.TransactionImpl.enlistResource(TransactionImpl.java:217)
> at
> com.sun.enterprise.distributedtx.J2EETransaction.enlistResource(J2EETransaction.java:562)
> at
> com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.enlistResource(J2EETransactionManagerImpl.java:372)
> at
> com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:144)
> at
> com.sun.enterprise.resource.ResourceManagerImpl.registerResource(ResourceManagerImpl.java:144)
> at
> com.sun.enterprise.resource.ResourceManagerImpl.enlistResource(ResourceManagerImpl.java:102)
> at
> com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:216)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
> at
> com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:75)
> at
> com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:115)
>
> Failed to obtain/create connection from connection pool [ ramq_cr_pool ].
> Reason : javax.transaction.SystemException|#]
>
> Error in allocating a connection. Cause: javax.transaction.SystemException
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:353)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
> at
> com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:75)
> at
> com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:115)
> at com.ix.ejbs.HelperBean.addConvertionJob(HelperBean.java:144)
> at com.ix.ejbs.HelperBean.processUploadedFile(HelperBean.java:118)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
> at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
> at
> com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
> at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
> at
> com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
> at
> com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:117)
>
> Caused by: com.sun.enterprise.resource.PoolingException:
> javax.transaction.SystemException
> at
> com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:225)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
> ... 56 more
> |#]
>
> [#|2008-07-25T12:11:15.875+0330|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=47;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=943c2cda-c139-4c4d-910f-dfa7621e9b8e;|
> javax.jms.JMSException: Error in allocating a connection. Cause:
> javax.transaction.SystemException
> Caused by: javax.resource.spi.ResourceAllocationException: Error in
> allocating a connection. Cause: javax.transaction.SystemException
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:353)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:235)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:158)
> at
> com.sun.genericra.outbound.ConnectionFactory.createConnection(ConnectionFactory.java:75)
> at
> com.sun.genericra.outbound.ConnectionFactory.createQueueConnection(ConnectionFactory.java:115)
> at com.ix.ejbs.HelperBean.addConvertionJob(HelperBean.java:144)
> at com.ix.ejbs.HelperBean.processUploadedFile(HelperBean.java:118)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1067)
> at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:176)
> at
> com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2895)
> at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3986)
> at
> com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:203)
> at
> com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:117)
> at $Proxy79.processUploadedFile(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.privateInvoke(StubInvocationHandlerImpl.java:233)
> at
> com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:152)
> at
> com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(BCELStubBase.java:225)
>
> Caused by: com.sun.enterprise.resource.PoolingException:
> javax.transaction.SystemException
> at
> com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:225)
> at
> com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:337)
> ... 56 more
>
> --------------------------------------------------------------------------------------------------------------------------
>
>
>