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

org.jboss.varia.scheduler.ScheduleManager.ScheduleInstance.stop() called twice

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • No Release
    • JBossAS-4.0.3 SP1
    • Scheduling/Timers
    • None
    • Medium

      A bogus exception is thrown when shutting down the server in the all (clusterred) configuration:

      21:03:16,609 INFO [Server] Runtime shutdown hook called, forceHalt: true
      21:03:16,609 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      21:03:16,619 ERROR [ScheduleManager] Could not stop a Schedule
      javax.management.ListenerNotFoundException: Listener not found org.jboss.varia.s
      cheduler.ScheduleManager$MBeanListener@9d2f26 for object name jboss:service=Timer
      at org.jboss.mx.notification.MBeanServerListenerRegistry.remove(MBeanServerListenerRegistry.java:139)
      at org.jboss.mx.server.MBeanServerImpl.removeNotificationListener(MBeanServerImpl.java:820)
      at org.jboss.varia.scheduler.ScheduleManager$ScheduleInstance.stop(ScheduleManager.java:835)
      at org.jboss.varia.scheduler.ScheduleManager.removeSchedule(ScheduleManager.java:325)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...

      The problem can be demonstrated by uncommenting the single schedule provider example, then letting the schedule execute its 10 repetitions, then stop the server.

      By looking in the code ScheduleInstance.stop() is called twice:

      a) when a schedule has expired
      b) when the schedule provider deregisters.

              Unassigned Unassigned
              dandread1@redhat.com Dimitrios Andreadis
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: