[
http://jira.jboss.com/jira/browse/JBAS-3127?page=all ]
Dimitris Andreadis updated JBAS-3127:
-------------------------------------
Component/s: Scheduling/Timers
(was: Other)
Fix Version/s: JBossAS-4.2.1.CR1
(was: JBossAS-4.2.0.CR1)
Priority: Minor (was: Major)
org.jboss.varia.scheduler.ScheduleManager.ScheduleInstance.stop()
called twice
------------------------------------------------------------------------------
Key: JBAS-3127
URL:
http://jira.jboss.com/jira/browse/JBAS-3127
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Scheduling/Timers
Affects Versions: JBossAS-4.0.3 SP1
Reporter: Dimitris Andreadis
Priority: Minor
Fix For: JBossAS-4.2.1.CR1
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira