tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Gumbrecht (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENEJB-2044) Single Action Timer created in @PostConstruct fails to start
Date Thu, 10 Oct 2013 09:01:53 GMT

     [ https://issues.apache.org/jira/browse/OPENEJB-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andy Gumbrecht resolved OPENEJB-2044.
-------------------------------------

    Resolution: Fixed

Call to schedule ensures scheduler is started.

> 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
>
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> 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)

Mime
View raw message