users@glassfish.java.net

Re: Dropped connections when using glassfish with activemq

From: davood <dave.fet_at_gmail.com>
Date: Tue, 3 Jun 2008 04:52:16 -0700 (PDT)

Hi,

I've append relevant parts of glassfish log files to this message. I just
created a new domain for glassfish to make sure about configurations I've
made so far and changed the log level for resource adapter. Dropped
connections are less but still there is dropped connections, most of the
time it works but some times it doesn't work without any obvious reason.


Thanks.



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)
        ... 68 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)
        
        
        Error in allocating a connection. Cause: javax.transaction.SystemException
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)
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)
        

-----------------------------------------------------------------------------------------------------------------------------------------------
        
        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)
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)
        ... 54 more
-- 
View this message in context: http://www.nabble.com/Dropped-connections-when-using-glassfish-with-activemq-tp17616900p17621805.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.