-
Bug
-
Resolution: Obsolete
-
Minor
-
JBossAS-4.0.3 SP1
-
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.