[jboss-jira] [JBoss JIRA] Resolved: (EJBTHREE-2153) Timer "creation" should not fail if the schedule expression doesn't have a future timeout

jaikiran pai (JIRA) jira-events at lists.jboss.org
Wed Aug 18 11:21:12 EDT 2010


     [ https://jira.jboss.org/browse/EJBTHREE-2153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

jaikiran pai resolved EJBTHREE-2153.
------------------------------------

    Component Fix Version(s): timerservice-mk2:1.0.0-alpha-8
               Fix Version/s: depchain-1.0.0
                  Resolution: Done


Done http://github.com/jbossejb3/jboss-ejb3-timerservice/commit/c4479a003ea3ed259abb642d32ef45bab1fe1e95

> Timer "creation" should not fail if the schedule expression doesn't have a future timeout
> -----------------------------------------------------------------------------------------
>
>                 Key: EJBTHREE-2153
>                 URL: https://jira.jboss.org/browse/EJBTHREE-2153
>             Project: EJB 3.0
>          Issue Type: Bug
>          Components: timerservice-mk2
>         Environment: JBoss AS 6.0.0.M4, bom-as6:0.2.0-alpha-10
>            Reporter: jaikiran pai
>            Assignee: jaikiran pai
>             Fix For: depchain-1.0.0
>
>
> Currently a calendar timer being created out of a ScheduleExpression which doesn't have any future timeouts, fails with:
> java.lang.IllegalArgumentException: No timeout in future from now Wed Aug 18 19:59:56 SGT 2010 Invalid schedule expression: javax.ejb.ScheduleExpression at 4803581
> 	at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:433)
> 	at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:166)
> 	at org.jboss.ejb3.timerservice.mk2.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:154)
> We _shouldn't_ be failing the timer creation for such schedules. Instead, the timer creation must pass and any invocations on getNextTimeout() or other such methods should throw an exception as mandated by the spec.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list