[jboss-jira] [JBoss JIRA] (AS7-5473) ejb timer not cleared after undeploy causing the redeploy to fail
jaikiran pai (JIRA)
jira-events at lists.jboss.org
Mon Sep 3 03:45:32 EDT 2012
[ https://issues.jboss.org/browse/AS7-5473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715342#comment-12715342 ]
jaikiran pai commented on AS7-5473:
-----------------------------------
Hi Cheng,
This is an duplicate of an already known issue which is being tracked here AS7-4694. I'll mark this one as duplicate.
> ejb timer not cleared after undeploy causing the redeploy to fail
> -----------------------------------------------------------------
>
> Key: AS7-5473
> URL: https://issues.jboss.org/browse/AS7-5473
> Project: Application Server 7
> Issue Type: Bug
> Components: EJB
> Affects Versions: 7.2.0.Alpha1
> Reporter: Cheng Fang
> Assignee: jaikiran pai
>
> 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:
> {noformat}
> 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
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list