2 Replies Latest reply on Feb 23, 2011 1:57 PM by Luca Merolla

    Schedule not working on JBossAS6 Final [solved]

    Luca Merolla Newbie

      Hello everybody,

       

      I have a problem to deploy a simple automatic timer on JBossAS 6.0.0.Final.

      The timer is supposed to fire every 5 seconds and this is the code:

      @Stateless

      @LocalBean

      public class ActiveTournamentsTaskBean { 

       

                private final Logger log = Logger.getLogger(getClass().getName());

       

                private TournamentManagerLocal tournamentService;

       

                @Schedule(second = "*/5", minute = "*", hour = "*", info = "Every 5 seconds")

                public void performTask() {

                          log.info("Active Tournaments task");

       

                          Context context;

                          try {

                                    context = new InitialContext(JndiProperties.getInstance());

                                    tournamentService = (TournamentManagerLocal) context

                                                        .lookup("coreApp/TournamentManager/local");

                                    tournamentService.updateActiveTournaments();

                          } catch (NamingException e) {

                                    log.error("Error updating active tournaments");

                                    log.debug(e);

                          }

                }

      }

      The problem is that during deployment the AS seems to start the timer before the application is deployed and this cause the timer to being called several times (loads the CPUs to 100% load) until the point that I have to manually kill the server.

      Here is part of the log

       

       

       

      01:00:56,905 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=SearchUtil,service=EJB3) to KernelDeployment of: ggCore.jar

      01:00:56,906 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=ActiveTournamentsTaskBean,service=EJB3

      01:00:56,906 INFO  [JBossASKernel]   with dependencies:

      01:00:56,907 INFO  [JBossASKernel]   and demands:

      01:00:56,907 INFO  [JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described

      01:00:56,907 INFO  [JBossASKernel]           jboss-switchboard:appName=ggPokerFruit,module=ggCore,name=ActiveTournamentsTaskBean; Required: Create

      01:00:56,907 INFO  [JBossASKernel]   and supplies:

      01:00:56,907 INFO  [JBossASKernel]           jndi:ActiveTournamentsTaskBean

      01:00:56,907 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=ActiveTournamentsTaskBean,service=EJB3) to KernelDeployment of: ggCore.jar

      01:00:56,908 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=MailComponent,service=EJB3

      01:00:56,908 INFO  [JBossASKernel]   with dependencies:

      01:00:56,908 INFO  [JBossASKernel]   and demands:

      01:00:56,909 INFO  [JBossASKernel]           jboss-injector:topLevelUnit=ggPokerFruit.ear,unit=ggCore.jar,bean=MailComponent; Required: Described

      01:00:56,909 INFO  [JBossASKernel]           jboss.ejb:service=EJBTimerService; Required: Described

      01:00:56,909 INFO  [JBossASKernel]           jboss-switchboard:appName=ggPokerFruit,module=ggCore,name=MailComponent; Required: Create

      01:00:56,909 INFO  [JBossASKernel]   and supplies:

      01:00:56,909 INFO  [JBossASKernel]           Class:com.os.ggCore.email.MailComponentLocal

      01:00:56,909 INFO  [JBossASKernel]           jndi:MailComponent

      01:00:56,909 INFO  [JBossASKernel]           jndi:ggPokerFruit/MailComponent/local

      01:00:56,909 INFO  [JBossASKernel]           jndi:ggPokerFruit/MailComponent/local-com.os.ggCore.email.MailComponentLocal

      ....

                ggPokerFruit/DozerBeanMapperService/local - EJB3.x Default Local Business Interface

                ggPokerFruit/DozerBeanMapperService/local-com.os.ggCore.service.DozerBeanMapperServiceLocal - EJB3.x Local Business Interface

       

      01:01:54,574 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:54,623 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=MailTemplateEAO,service=EJB3

      01:01:54,624 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.eao.MailTemplateEAO ejbName: MailTemplateEAO

      01:01:54,646 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

       

                ggPokerFruit/MailTemplateEAO/local - EJB3.x Default Local Business Interface

                ggPokerFruit/MailTemplateEAO/local-com.os.ggCore.eao.MailTemplateEAOLocal - EJB3.x Local Business Interface

       

       

      01:01:54,646 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:54,874 WARN  [HornetQActivation] Failure in HornetQ activation org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestTournamentQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestTournamentQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:573) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

      01:01:54,879 INFO  [GlobalComponentRegistry] Infinispan version: Infinispan 'Radegast' 4.1.0.FINAL

      01:01:54,908 INFO  [ComponentRegistry] Infinispan version: Infinispan 'Radegast' 4.1.0.FINAL

      01:01:54,909 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.service.cache.CacheService ejbName: CacheService

      01:01:54,912 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

                ggPokerFruit/CacheService/local - EJB3.x Default Local Business Interface

                ggPokerFruit/CacheService/local-com.os.ggCore.service.cache.CacheServiceLocal - EJB3.x Local Business Interface

       

       

      01:01:54,913 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:54,932 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.jms.servergame.ServerGameMDB ejbName: ServerGameMDB

      01:01:54,952 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:54,966 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=BettingTimerM,service=EJB3

      01:01:54,966 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.domain.timer.BettingTimerM ejbName: BettingTimerM

      01:01:55,043 WARN  [HornetQActivation] Failure in HornetQ activation org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestTableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestTableQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:573) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

      01:01:55,068 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

                ggPokerFruit/BettingTimerM/remote - EJB3.x Default Remote Business Interface

                ggPokerFruit/BettingTimerM/remote-com.os.ggCommon.bean.timer.BettingTimerMRemote - EJB3.x Remote Business Interface

                ggPokerFruit/BettingTimerM/local - EJB3.x Default Local Business Interface

                ggPokerFruit/BettingTimerM/local-com.os.ggCore.domain.timer.BettingTimerMLocal - EJB3.x Local Business Interface

       

      01:01:55,078 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:55,089 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=MoneySeatEAO,service=EJB3

      01:01:55,090 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.eao.MoneySeatEAO ejbName: MoneySeatEAO

      01:01:55,092 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

                ggPokerFruit/MoneySeatEAO/local - EJB3.x Default Local Business Interface

                ggPokerFruit/MoneySeatEAO/local-com.os.ggCore.eao.MoneySeatEAOLocal - EJB3.x Local Business Interface

       

       

      01:01:55,093 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:55,105 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.jms.common.GametableCacheMDB ejbName: GametableCacheMDB

      01:01:55,109 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:55,145 WARN  [HornetQActivation] Failure in HornetQ activation org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/gametableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.gametableQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:573) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:55,283 INFO  [GlobalComponentRegistry] Infinispan version: Infinispan 'Radegast' 4.1.0.FINAL

      01:01:55,314 INFO  [ComponentRegistry] Infinispan version: Infinispan 'Radegast' 4.1.0.FINAL

      01:01:55,315 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.service.cache.CacheATService ejbName: CacheATService

      01:01:55,318 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

                ggPokerFruit/ServerGametable/local - EJB3.x Default Local Business Interface

                ggPokerFruit/ServerGametable/local-com.os.ggCommon.bean.local.ServerGametableLocal - EJB3.x Local Business Interface

       

       

      01:01:55,926 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:55,937 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.jms.lobby.LobbyRequestMDB ejbName: LobbyRequestMDB

      01:01:55,953 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:55,973 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.jms.servergame.ServerMoneyGameMDB ejbName: ServerMoneyGameMDB

      01:01:56,004 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:56,034 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=SearchUtil,service=EJB3

      01:01:56,036 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.eao.util.SearchUtil ejbName: SearchUtil

      01:01:56,046 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

                ggPokerFruit/SearchUtil/local - EJB3.x Default Local Business Interface

                ggPokerFruit/SearchUtil/local-com.os.ggCore.eao.util.SearchUtilLocal - EJB3.x Local Business Interface

       

       

      01:01:56,047 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:56,051 INFO  [SessionSpecContainer] Starting jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=ActiveTournamentsTaskBean,service=EJB3

      01:01:56,051 INFO  [EJBContainer] STARTED EJB: com.os.ggCore.schedule.ActiveTournamentsTaskBean ejbName: ActiveTournamentsTaskBean

      01:01:56,052 INFO  [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

       

       

       

      01:01:56,052 WARN  [TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      01:01:56,093 WARN  [HornetQActivation] Failure in HornetQ activation org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestLobbyQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestLobbyQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:573) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:56,135 WARN  [HornetQActivation] Failure in HornetQ activation org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestMoneyTableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestMoneyTableQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:573) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:56,842 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,843 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,844 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,874 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,876 INFO  [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestTournamentQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15)

      01:01:56,877 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,893 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,921 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,956 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,973 ERROR [HornetQActivation] Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestTournamentQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestTournamentQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:56,984 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:56,988 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:57,057 INFO  [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestTableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15)

      01:01:57,146 INFO  [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/gametableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15)

      01:01:57,210 ERROR [HornetQActivation] Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestTableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestTableQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:57,260 ERROR [HornetQActivation] Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/gametableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.gametableQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:57,514 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:57,526 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      ...

      01:01:57,810 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:57,824 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:57,830 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      ...

      01:01:58,011 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,014 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,018 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,027 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,028 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,041 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,049 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,080 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,085 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,093 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,094 INFO  [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestLobbyQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15)

      01:01:58,118 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,137 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,140 INFO  [HornetQActivation] Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestMoneyTableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15)

      01:01:58,143 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,147 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,155 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,196 ERROR [HornetQActivation] Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestMoneyTableQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestMoneyTableQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

       

      01:01:58,208 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,222 ERROR [HornetQActivation] Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@4e8791 destination=/queue/requestLobbyQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=hornetq password=**** maxSession=15): HornetQException[errorCode=105 message=Unable to validate user: hornetq for check type CONSUME for address jms.queue.requestLobbyQueue]

                at org.hornetq.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:287) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.internalCreateConsumer(ClientSessionImpl.java:1556) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:447) [:6.0.0.Final]

                at org.hornetq.core.client.impl.ClientSessionImpl.createConsumer(ClientSessionImpl.java:392) [:6.0.0.Final]

                at org.hornetq.core.client.impl.DelegatingSession.createConsumer(DelegatingSession.java:201) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQMessageHandler.setup(HornetQMessageHandler.java:165) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:291) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539) [:6.0.0.Final]

                at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577) [:6.0.0.Final]

                at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172) [:6.0.0.Final]

                at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45) [:2.0.0.CR7]

                at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:821) [:2.0.0.CR7]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122) [:2.0.0.CR7]

       

      01:01:58,239 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,247 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,251 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,255 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,260 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,294 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,313 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,329 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,343 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      ...

      01:01:58,585 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,596 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,612 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,620 INFO  [AbstractNoInterfaceViewBinder] Binding the following entry in Global JNDI for bean:ActiveTournamentsTaskBean

       

                ggPokerFruit/ActiveTournamentsTaskBean/no-interface -> EJB3.1 no-interface view

       

      01:01:58,629 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,638 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,643 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,650 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,659 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,674 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      01:01:58,699 INFO  [ActiveTournamentsTaskBean] Active Tournaments task

      It seems that whatever whichever value I put in the @Schedule annotation the AS has always the same behaviour.

      Also, aside of the time period problem,  I would like to know how it is possible to start the Scheduler Bean after the application has been deployed.

      I was trying

      @Depends("jboss.j2ee:ear=ggPokerFruit.ear,jar=ggCore.jar,name=TournamentManager,service=EJB3")

      but it doesn't work neither.

       

      Thanks in advance,

      Luca