Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8656

Timers not removed from hypersonic database when application undeployed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.0.0.M5, 6.0.0.CR1
    • Scheduling/Timers
    • None
    • Workaround Exists
    • Hide

      Remove lines related to timer from localDB.script and redeploy application

      Show
      Remove lines related to timer from localDB.script and redeploy application
    • Hide

      Deploy/Undeploy following bean on default server 3-4 times

      package org.test;

      import javax.ejb.*;

      @Singleton
      @Startup
      public class ScheduledBean {

      public ScheduledBean() {
      }

      @Timeout
      @Schedule(hour = "", minute="", second = "0")
      public void onTimer(final Timer timer)

      { System.out.println("Timer"); }

      }

      Show
      Deploy/Undeploy following bean on default server 3-4 times package org.test; import javax.ejb.*; @Singleton @Startup public class ScheduledBean { public ScheduledBean() { } @Timeout @Schedule(hour = " ", minute=" ", second = "0") public void onTimer(final Timer timer) { System.out.println("Timer"); } }

      TimerService started by Schedule annotation not working correctly.

      When application deployed timer added to hypersonic database (data/hipersonic/localDB), but when application undeployed these timer(s) not removed.
      If application deployed/undeployed few times multiple timer events will be fired on @Schedule.

      When server stops, data/hypersonic/localDB.script contains lines:
      INSERT INTO TIMEOUT_METHOD VALUES(314,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(315,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(316,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(317,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(318,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(319,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(320,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(321,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(322,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(323,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(324,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(325,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(326,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMEOUT_METHOD VALUES(327,'org.test.ScheduledBean','onTimer')
      INSERT INTO TIMER VALUES('36df3e13-09f2-4675-95cc-812222bd547b','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.001000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('65ab68c0-9915-4e43-92d7-e9c720c480a6','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.005000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('7046245c-5368-4296-a1b0-d3d1f7ec3040','aced0005740000','2010-11-23 00:00:30.000000000','2010-11-23 10:39:30.000000000','2010-11-23 10:38:29.982000000',0,'jboss.j2ee:ear=web_ear.ear,jar=ejb.jar,name=SingBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('78f0876b-c7c8-4499-9782-288ee3d818b4','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.013000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('9ab441e8-3c7e-4d4b-8f1d-599511ac1e0c','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.036000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('a3027bf3-21e3-4247-9731-5e82041aa6c7','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.001000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('adc3e406-6c26-4d39-9ede-f9a6ed4c27fe','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000',NULL,0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('d5e127e2-6aa1-48bb-bb10-935fb027eb2a','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000',NULL,0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('d87ef5e5-46d8-4e01-903f-721541cd7c21','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000',NULL,0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)
      INSERT INTO TIMER VALUES('db2e211e-53dd-4b26-8fe8-40ee35184f7f','aced0005740000','2010-11-23 00:00:00.000000000','2010-11-23 11:12:00.000000000','2010-11-23 11:11:00.034000000',0,'jboss.j2ee:jar=timer_test_ejb.jar,name=ScheduledBean,service=EJB3',1)

            jaikiran Jaikiran Pai (Inactive)
            unknown13_jira Vitaliy Abramov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: