1 2 Previous Next 20 Replies Latest reply on Oct 4, 2011 2:44 PM by clebert.suconic Go to original post
      • 15. Re: Strange problem with Standalone 2.2.5 journal/pages...
        didka

        Clebert, I found one problem:

         

        I discovered this message in log of Jboss AS during startup:

        09:35:13,827 WARN  [loggerI18N] [com.arjuna.ats.internal.jta.recovery.general] Caught exception: java.lang.ClassNotFoundException: org.hornetq.jms.server.recovery.HornetQXAResourceRecovery from BaseClassLoader@6a634f6b{VFSClassLoaderPolicy@1df3305e{name=vfsfile:/opt/jboss-5.1.0.GA/server/nose_gw/deploy/transaction-jboss-beans.xml domain=ClassLoaderDomain@b7c96a9{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@c80f4cb} roots=[MemoryContextHandler@1223457454[path= context=vfsmemory://5c4o59i-llrey1-gt5sdfhq-1-gt5sdnih-16 real=vfsmemory://5c4o59i-llrey1-gt5sdfhq-1-gt5sdnih-16]]  delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}} for org.hornetq.jms.server.recovery.HornetQXAResourceRecovery

         

        This is because I put only these jars to lib folder of JBoss configuration as it is said in documentation:

        hornetq-core-client.jar

        hornetq-jms-client.jar

        hornetq-ra.jar

        netty.jar

         

        I found org.hornetq.jms.server.recovery.HornetQXAResourceRecovery class in hornetq-jms.jar and placed it to the lib folder also. Then I got these messages:

         

        09:47:02,562 WARNING [HornetQResourceAdapter] It wasn't possible to lookup for a Transaction Manager through the configured properties TransactionManagerLocatorClass and TransactionManagerLocatorMethod

        09:47:02,562 WARNING [HornetQResourceAdapter] HornetQ Resource Adapter won't be able to set and verify transaction timeouts in certain cases.

         

        Is it OK? Or what should I do also?

        • 16. Re: Strange problem with Standalone 2.2.5 journal/pages...
          clebert.suconic

          09:47:02,562 WARNING [HornetQResourceAdapter] It wasn't possible to lookup for a Transaction Manager through the configured properties TransactionManagerLocatorClass and TransactionManagerLocatorMethod

          09:47:02,562 WARNING [HornetQResourceAdapter] HornetQ Resource Adapter won't be able to set and verify transaction timeouts in certain cases.

           

          We only the the TM to validate timeouts on the current transaction. It will be mostly ok. it should be able to play with XIDs and replays, but if you sit forever on a Transaction (waiting for an user's operation) the ResourceAdapter will not verify the status of the current transaction before calling prepare or commit.

           

           

          the best would be to discover why the Transaction manager is not being located, but if you always commit quickly this will not be an issue.

          • 17. Re: Strange problem with Standalone 2.2.5 journal/pages...
            didka

            This didn't help.

            Warnings and errors still apear in hornetq log

             

            [Thread-1 (group:HornetQ-scheduled-threads-63323788)] 09:09:49,778 WARNING [org.hornetq.core.transaction.impl.ResourceManagerImpl]  transaction with xid XidImpl (574390407 bq:55.102.48.48.48.48.48.49.58.99.97.55.98.58.52.101.56.53.50.99.98.57.58.51.100.99.48.52 formatID:131075 gtxid:49.45.55.102.48.48.48.48.48.49.58.99.97.55.98.58.52.101.56.53.50.99.98.57.58.51.100.98.102.100 timed out

            [Thread-1 (group:HornetQ-scheduled-threads-63323788)] 09:09:49,779 SEVERE [org.hornetq.core.transaction.impl.ResourceManagerImpl]  failed to timeout transaction, xid:XidImpl (568055061 bq:55.102.48.48.48.48.48.49.58.57.97.55.57.58.52.101.56.53.50.56.99.49.58.101.57.101.53.57 formatID:131075 gtxid:49.45.55.102.48.48.48.48.48.49.58.57.97.55.57.58.52.101.56.53.50.56.99.49.58.101.57.101.53.53

            java.lang.IllegalStateException: Transaction is in invalid state SUSPENDED

                      at org.hornetq.core.transaction.impl.TransactionImpl.rollback(TransactionImpl.java:345)

                      at org.hornetq.core.transaction.impl.ResourceManagerImpl$TxTimeoutHandler.run(ResourceManagerImpl.java:228)

                      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

                      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

                      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)

                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)

                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)

                      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

                      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

                      at java.lang.Thread.run(Thread.java:662)

            [Thread-4 (group:HornetQ-scheduled-threads-63323788)] 09:09:51,778 WARNING [org.hornetq.core.transaction.impl.ResourceManagerImpl]  transaction with xid XidImpl (1920638887 bq:55.102.48.48.48.48.48.49.58.57.97.55.57.58.52.101.56.53.50.56.99.49.58.101.97.50.55.48 formatID:131075 gtxid:49.45.55.102.48.48.48.48.48.49.58.57.97.55.57.58.52.101.56.53.50.56.99.49.58.101.97.50.54.100 timed out

            • 18. Re: Strange problem with Standalone 2.2.5 journal/pages...
              clebert.suconic

              you need to find out what's suspending the transaction.

               

              YOu probably need to fix the integration with the TM first.

              • 19. Re: Strange problem with Standalone 2.2.5 journal/pages...
                didka

                TM integration issue is fixed.

                I placed hornetq-jboss-as-integration.jar also and warnings on HornetQ RA startup disapeared.

                By the way, I think you can improve documentation about integration with Jboss AS and add  hornetq-jms.jar and hornetq-jboss-as-integration.jar  to the list of jar files needed in library folder. First is needed for XARecovery module and second for TM integration.

                 

                But this didn't solve my problem with transaction time-out.

                I still receive this:

                 

                [Thread-3 (group:HornetQ-scheduled-threads-1278255007)] 14:15:17,982 WARNING [org.hornetq.core.transaction.impl.ResourceManagerImpl]  transaction with xid XidImpl (2023534258 bq:55.102.48.48.48.48.48.49.58.56.97.52.101.58.52.101.56.57.51.101.99.49.58.57.53.51.102.57.56 formatID:131075 gtxid:49.45.55.102.48.48.48.48.48.49.58.56.97.52.101.58.52.101.56.57.51.101.99.49.58.57.53.51.102.57.50 timed out

                 

                I'am still using EAP 4 and now trying to migrate to 5.1.0 GA. I hope this will help.

                • 20. Re: Strange problem with Standalone 2.2.5 journal/pages...
                  clebert.suconic

                  Use the EAP 5.1

                   

                  Send me a private email if you'e having a hard time on finding it.

                  1 2 Previous Next