[jboss-jira] [JBoss JIRA] Created: (JGRP-582) Timer task throws exception on task submission if task has already been cancelled

Bela Ban (JIRA) jira-events at lists.jboss.org
Fri Aug 24 09:04:35 EDT 2007


Timer task throws exception on task submission if task has already been cancelled
---------------------------------------------------------------------------------

                 Key: JGRP-582
                 URL: http://jira.jboss.com/jira/browse/JGRP-582
             Project: JGroups
          Issue Type: Bug
            Reporter: Bela Ban
         Assigned To: Bela Ban
             Fix For: 2.5.1, 2.6


When we submit a timer task to a timer, but - before the timer is scheduled - it is cancelled, then we get the exception below.
SOLUTION: simply catch and eat the exception

@FD_SOCK Ping thread 09:43:17,125 ERROR [jgroups] uncaught exception in Thread[FD_SOCK Ping thread,5,JGroups threads] (thread group=org.jgroups.util.Util$1[name=JGroups threads,maxpri=10] )
java.lang.IllegalStateException: Timer already cancelled.
        at java.util.Timer.sched(Timer.java:354)
        at java.util.Timer.schedule(Timer.java:170)
        at org.jgroups.util.TimeScheduler.schedule(TimeScheduler.java:125)
        at org.jgroups.util.TimeScheduler.add(TimeScheduler.java:112)
        at org.jgroups.protocols.FD_SOCK$BroadcastTask.addSuspectedMember(FD_SOCK.java:1186)
        at org.jgroups.protocols.FD_SOCK.broadcastSuspectMessage(FD_SOCK.java:721)
        at org.jgroups.protocols.FD_SOCK.run(FD_SOCK.java:453)
        at java.lang.Thread.run(Thread.java:595) 

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

        



More information about the jboss-jira mailing list