Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005891 [Resin] minor always 05-01-15 16:03 06-03-15 08:50
Reporter bbik View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.44
Summary 0005891: Cancelled ejb timers returned by getTimers()
Description Not sure, is it a bug, buy I suppose so.
After cancellation, timers are returned by getTimers:

@Singleton
@LocalBean
@Startup
public class TimerTest
{
    @Resource
    TimerService ts;
    static TimerTest inst;
    @PostConstruct
    void init()
    { inst=this;
    }
    public synchronized static TimerTest getInstance()
    { return(inst);
    }
    public Collection<Timer> getTimers()
    { Collection <Timer> res=ts.getTimers();
        return(res);
    }
    public void cancelAll()
    { for(Timer ot: ts.getTimers())
        {
                System.out.println("Found old timer "+ot.getInfo()+", cancelling it.");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Exception here on second+ call:
 javax.ejb.NoSuchObjectLocalException: "This timer has been cancelled."
                ot.cancel();
        }
    }

Thank you
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
05-01-15 16:03 bbik New Issue
05-01-15 16:04 bbik Issue Monitored: bbik
06-03-15 08:50 ferg Assigned To  => ferg
06-03-15 08:50 ferg Status new => closed
06-03-15 08:50 ferg Resolution open => fixed
06-03-15 08:50 ferg Fixed in Version  => 4.0.45


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker