[jboss-jira] [JBoss JIRA] (AS7-2529) undeploy of EJB with @Schedule results in an repeated exception
Lars Fischer (Created) (JIRA)
jira-events at lists.jboss.org
Mon Nov 7 05:25:45 EST 2011
undeploy of EJB with @Schedule results in an repeated exception
---------------------------------------------------------------
Key: AS7-2529
URL: https://issues.jboss.org/browse/AS7-2529
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.1.0.Alpha1, 7.0.2.Final
Environment: Windows7 x64
JDK 1.6.update27
JBossAS7 Standalone
Reporter: Lars Fischer
Using a simple bean with a @Schedule works for the first deployment.
After undeploying the archive, the execution continues with an exception.
The used bean:
{code}
@Singleton
@Startup
public class SingletonBean {
public SingletonBean() {
System.out.println("SingletonBean: New instance created");
}
@PostConstruct
public void init() {
System.out.println("SingletonBean: init...");
}
@PreDestroy
public void close() {
System.out.println("SingletonBean: close...");
}
@Schedule(second = "*/15", minute = "*", hour = "*", persistent = false)
public void ping(){
System.out.println("ping");
}
{code}
The repeatedly thrown exception:
{quote}
11:19:15,001 ERROR [org.jboss.as.ejb3.timerservice.mk2.task.TimerTask] (pool-4-thread-8) Error invoking timeout for timer: [id=7da21855-8959-449a-a62d-e1fdb0547c57 timedObjectId=SingletonBean auto-timer?:true persistent?:false timerService=org.jboss.as.ejb3.timerservice.mk2.TimerServiceImpl at 6f0725b4 initialExpiration=Mon Nov 07 00:00:00 CET 2011 intervalDuration(in milli sec)=0 nextExpiration=Mon Nov 07 11:19:30 CET 2011 timerState=IN_TIMEOUT: java.lang.IllegalStateException: Component is stopped
at org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:98) [jboss-as-ee-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:77) [jboss-as-ee-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:127) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.timerservice.SingletonTimedObjectInvokerImpl.callTimeout(SingletonTimedObjectInvokerImpl.java:46) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.timerservice.mk2.task.CalendarTimerTask.callTimeout(CalendarTimerTask.java:73) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.timerservice.mk2.task.TimerTask.run(TimerTask.java:119) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_29]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_29]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
11:19:15,002 INFO [org.jboss.as.ejb3.timerservice.mk2.task.TimerTask] (pool-4-thread-8) Timer: [id=7da21855-8959-449a-a62d-e1fdb0547c57 timedObjectId=SingletonBean auto-timer?:true persistent?:false timerService=org.jboss.as.ejb3.timerservice.mk2.TimerServiceImpl at 6f0725b4 initialExpiration=Mon Nov 07 00:00:00 CET 2011 intervalDuration(in milli sec)=0 nextExpiration=Mon Nov 07 11:19:30 CET 2011 timerState=IN_TIMEOUT will be retried
11:19:15,003 INFO [org.jboss.as.ejb3.timerservice.mk2.task.TimerTask] (pool-4-thread-8) Retrying timeout for timer: [id=7da21855-8959-449a-a62d-e1fdb0547c57 timedObjectId=SingletonBean auto-timer?:true persistent?:false timerService=org.jboss.as.ejb3.timerservice.mk2.TimerServiceImpl at 6f0725b4 initialExpiration=Mon Nov 07 00:00:00 CET 2011 intervalDuration(in milli sec)=0 nextExpiration=Mon Nov 07 11:19:30 CET 2011 timerState=IN_TIMEOUT
11:19:15,003 ERROR [org.jboss.as.ejb3.timerservice.mk2.task.TimerTask] (pool-4-thread-8) Error during retyring timeout for timer: [id=7da21855-8959-449a-a62d-e1fdb0547c57 timedObjectId=SingletonBean auto-timer?:true persistent?:false timerService=org.jboss.as.ejb3.timerservice.mk2.TimerServiceImpl at 6f0725b4 initialExpiration=Mon Nov 07 00:00:00 CET 2011 intervalDuration(in milli sec)=0 nextExpiration=Mon Nov 07 11:19:30 CET 2011 timerState=RETRY_TIMEOUT: java.lang.IllegalStateException: Component is stopped
at org.jboss.as.ee.component.BasicComponent.waitForComponentStart(BasicComponent.java:98) [jboss-as-ee-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:77) [jboss-as-ee-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:127) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.timerservice.SingletonTimedObjectInvokerImpl.callTimeout(SingletonTimedObjectInvokerImpl.java:46) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.timerservice.mk2.task.CalendarTimerTask.callTimeout(CalendarTimerTask.java:73) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at org.jboss.as.ejb3.timerservice.mk2.task.TimerTask.run(TimerTask.java:119) [jboss-as-ejb3-7.1.0.Alpha2-SNAPSHOT.jar:7.1.0.Alpha2-SNAPSHOT]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_29]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [:1.6.0_29]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
{quote}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list