Andy Gumbrecht created OPENEJB-2044:
---------------------------------------

             Summary: Single Action Timer created in @PostConstruct fails to 
start
                 Key: OPENEJB-2044
                 URL: https://issues.apache.org/jira/browse/OPENEJB-2044
             Project: OpenEJB
          Issue Type: Bug
          Components: container system
    Affects Versions: 4.6.0
         Environment: NA
            Reporter: Andy Gumbrecht
            Assignee: Andy Gumbrecht
            Priority: Critical
             Fix For: 4.6.0


Bean with:
@Singleton
@Startup
...
@Resource
private TimerService timerService; 
...
@PostConstruct
public void postConstruct() {
...
timerService.createSingleActionTimer

Produces the following warning (Which should be an error as it is critical).
The timer is not scheduled as the service is not started.

WARN [OpenEJB.ejbd.6] [Transaction] - Unexpected exception from 
afterCompletion; continuing
java.lang.IllegalStateException: Scheduler is not configured properly
        at 
org.apache.openejb.core.timer.EjbTimerServiceImpl.schedule(EjbTimerServiceImpl.java:475)
        at 
org.apache.openejb.core.timer.TimerData.transactionComplete(TimerData.java:262)
        at org.apache.openejb.core.timer.TimerData.access$200(TimerData.java:47)
        at 
org.apache.openejb.core.timer.TimerData$TimerDataSynchronization.afterCompletion(TimerData.java:306)
        at 
org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:554)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to