Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5473

ejb timer not cleared after undeploy causing the redeploy to fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • EAP 6.1.0.Alpha (7.2.0.Final)
    • EJB
    • None

      The app has some @Schedule timers, and was deployed, and undeployed, and restart as7. These timers are not cleared after the undeploy. Then I updated my app, removing/modifying the timeout methods, and redeploy it --force. It failed, complaining about the missing timeout methods, which have been changed/removed in the newer version of my app:

      10:27:22,934 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."test.war".component.TestBean.ejb3.timerService: org.jboss.msc.service.StartException in service jboss.deployment.unit."test.war".component.TestBean.ejb3.timerService: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [classes.jar:1.6.0_33]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [classes.jar:1.6.0_33]
      	at java.lang.Thread.run(Thread.java:680) [classes.jar:1.6.0_33]
      Caused by: java.lang.IllegalStateException: JBAS014478: Could not find timeout method: test.TestBean.saturdayNight(javax.ejb.Timer)
      	at org.jboss.as.ejb3.timerservice.CalendarTimer.<init>(CalendarTimer.java:139)
      	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.getActivePersistentTimers(TimerServiceImpl.java:907)
      	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.restoreTimers(TimerServiceImpl.java:634)
      	at org.jboss.as.ejb3.timerservice.TimerServiceImpl.start(TimerServiceImpl.java:191)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      	... 3 more
      
      10:27:23,140 INFO  [org.jboss.as.server] (management-handler-thread - 6) JBAS015870: Deploy of deployment "test.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"test.war\".component.TestBean.ejb3.timerService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"test.war\".component.TestBean.ejb3.timerService: Failed to start service
          Caused by: java.lang.IllegalStateException: JBAS014478: Could not find timeout method: test.TestBean.saturdayNight(javax.ejb.Timer)"},"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.web.deployment.default-host./test Missing[JBAS014861: <one or more transitive dependencies>]","jboss.deployment.unit.\"test.war\".component.TestBean.START Missing[JBAS014861: <one or more transitive dependencies>]"]}
      10:27:23,152 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment test.war in 11ms
      

            jaikiran Jaikiran Pai (Inactive)
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: