users@glassfish.java.net

Re: Dropped connections when using glassfish with activemq

From: davood <dave.fet_at_gmail.com>
Date: Wed, 4 Jun 2008 23:28:40 -0700 (PDT)

Hi,

The very same problem is back again, I don't know why it worked much better
last day. Here is the log when it drops a connection. Connection validation
is enabled.


[#|2008-06-05T09:51:01.828+0330|WARNING|sun-appserver9.1|javax.enterprise.system.core.transaction|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=f50efe9a-d997-475b-91e3-9a998a22c3c6;|JTS5041:
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)
|#]

[#|2008-06-05T09:51:01.843+0330|SEVERE|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=f50efe9a-d997-475b-91e3-9a998a22c3c6;|RAR5029: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)
        .
        .
        .
        .
|#]

[#|2008-06-05T09:51:01.843+0330|WARNING|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=f50efe9a-d997-475b-91e3-9a998a22c3c6;|poolmgr.err_enlisting_res_in_getconn|#]

[#|2008-06-05T09:51:01.843+0330|WARNING|sun-appserver9.1|javax.enterprise.resource.resourceadapter|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;ramq_cr_pool;javax.transaction.SystemException;_RequestID=f50efe9a-d997-475b-91e3-9a998a22c3c6;|RAR5117
: Failed to obtain/create connection from connection pool [ ramq_cr_pool ].
Reason : javax.transaction.SystemException|#]

[#|2008-06-05T09:51:01.843+0330|INFO|sun-appserver9.1|com.sun.genericjmsra|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;|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)
        ... 56 more
|#]

[#|2008-06-05T09:51:01.843+0330|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=28;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=f50efe9a-d997-475b-91e3-9a998a22c3c6;|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)
        .
        .
        .
        .
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-06-05T09:51:48.453+0330|WARNING|sun-appserver9.1|org.apache.activemq.ActiveMQConnection|_ThreadID=97;_ThreadName=ActiveMQ
Transport:
tcp://localhost/127.0.0.1:61616;_RequestID=ccfb6861-fe8a-47fd-bda4-04bae2d29a43;|Async
exception with no exception listener: java.io.EOFException
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)
|#]

[#|2008-06-05T09:51:48.453+0330|WARNING|sun-appserver9.1|org.apache.activemq.ActiveMQConnection|_ThreadID=98;_ThreadName=ActiveMQ
Transport:
tcp://localhost/127.0.0.1:61616;_RequestID=416c267b-68e9-4bf1-855b-43a414dfd045;|Async
exception with no exception listener: java.io.EOFException
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)
|#]

-- 
View this message in context: http://www.nabble.com/Dropped-connections-when-using-glassfish-with-activemq-tp17616900p17663079.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.