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

undeploy of EJB with @Schedule results in an repeated exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.1.0.Beta1
    • 7.0.2.Final, 7.1.0.Alpha1
    • EJB
    • None

    Description

      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:

      @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");
        }
      

      The repeatedly thrown exception:

      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@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@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@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@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]

      }

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            reschifl Lars Fischer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: