1 2 Previous Next 23 Replies Latest reply on May 9, 2012 5:02 AM by Andy Taylor

    Not able to add and fetch 100 000 message to JMS Queue. Exception ->Unable to get managed connection for java:/JmsXA

    varsha g Newbie

      I am using jboss7.1.2.Final-SNAPSHOT build #824 from https://ci.jboss.org/hudson/view/All/job/JBoss-AS-7.x-latest/  and HornetQ Server version 2.2.13.Final.

      These are the settings in my standalone/configuration/standalone-full.xml

       

                    <address-settings>

                         <address-setting match="#">

       

                             <dead-letter-address>jms.queue.DLQ</dead-letter-address>

       

                             <expiry-address>jms.queue.ExpiryQueue</expiry-address>

       

                             <redelivery-delay>0</redelivery-delay>

       

                             <max-size-bytes>524288000</max-size-bytes>

       

                             <page-size-bytes>52428800</page-size-bytes>

       

                             <address-full-policy>PAGE</address-full-policy>       <message-counter-history-day-limit>10</message-counter-history-day-limit>

                         </address-setting>

                 </address-settings>

       

       

      <subsystem xmlns="urn:jboss:domain:messaging:1.2">

                 <hornetq-server>

                     <persistence-enabled>true</persistence-enabled>

                     <journal-type>ASYNCIO</journal-type>

                     <journal-file-size>10485760</journal-file-size>

                     <journal-min-files>2</journal-min-files>

                     <journal-max-io>500</journal-max-io>

       

      </hornetq-server>

      </subsystem>

       

       

      When I'm Testing with 100000 records; The Server hangs and starts again.  Everytime it hangs its a different error or warning, Following are the different errors/warnings :-

       

        -- 13:02:14,483 ERROR [org.hornetq.core.client.impl.ClientSessionImpl] (Thread-10 (HornetQ-client-global-threads-1868041274)) XA operation failed Cannot start, session is already doing work in a transaction XidImpl (557588165 bq:0.0.0.0.0.0.0.0.0.0.-1.-1.68.-87.52.16.116.-56.-98.-29.79.-115.93.-68.0.0.34.47.0.0.0.0.0.0.0.0 formatID:131077 gtxid:0.0.0.0.0.0.0.0.0.0.-1.-1.68.-87.52.16.116.-56.-98.-29.79.-115.93.-68.0.0.34.46.49 code:-6 

       

        -- 13:04:52,783 ERROR [stderr] (Thread-10 (HornetQ-client-global-threads-1868041274))     at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:636)

       

        -- 12:52:56,421 WARN  [org.hornetq.ra.inflow.HornetQMessageHandler] (Thread-10 (HornetQ-client-global-threads-1868041274)) Unable to call after delivery: javax.resource.spi.LocalTransactionException: javax.transaction.RollbackException: ARJUNA016053: Could not commit transaction.

       

        -- 12:53:26,474 WARN  [com.arjuna.ats.jta] (Thread-10 (HornetQ-client-global-threads-1868041274)) ARJUNA016086: TransactionImple.enlistResource setTransactionTimeout on XAResource < formatId=131077, gtrid_length=29, bqual_length=36, tx_uid=0:ffff44a93410:74c89ee3:4f8d5dbc:222e, node_name=1, branch_uid=0:ffff44a93410:74c89ee3:4f8d5dbc:222f, subordinatenodename=null, eis_name=unknown eis name > threw: XAException.XAER_RMERR: javax.transaction.xa.XAException

       

      -- 13:05:12,682 WARN  [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-2) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@5a32f187 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!

      13:05:12,685 WARN  [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-2) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@5a32f187 -- APPARENT DEADLOCK!!! Complete Status:

          Managed Threads: 3

          Active Threads: 0

          Active Tasks:

          Pending Tasks:

              com.mchange.v2.c3p0.stmt.GooGooStatementCache$1StmtAcquireTask@6a7ad0a8

              com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@2518fc35

              com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@b560e9a

              com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@3ed8a646

      Pool thread stack traces:

          Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]

              java.lang.Object.wait(Native Method)

              com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

          Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]

              java.lang.Object.wait(Native Method)

              com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

          Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]

              java.lang.Object.wait(Native Method)

              com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

       

      --  13:05:12,682 WARN  [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-2) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@5a32f187 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!

      13:05:12,685 WARN  [com.mchange.v2.async.ThreadPoolAsynchronousRunner] (Timer-2) com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@5a32f187 -- APPARENT DEADLOCK!!! Complete Status:

          Managed Threads: 3

          Active Threads: 0

          Active Tasks:

          Pending Tasks:

              com.mchange.v2.c3p0.stmt.GooGooStatementCache$1StmtAcquireTask@6a7ad0a8

              com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@2518fc35

              com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@b560e9a

              com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@3ed8a646

      Pool thread stack traces:

          Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]

              java.lang.Object.wait(Native Method)

              com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

          Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]

              java.lang.Object.wait(Native Method)

              com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

          Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]

              java.lang.Object.wait(Native Method)

              com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

       

      Please Let me know the solution for the above

      thanks

        1 2 Previous Next