[jboss-jira] [JBoss JIRA] Created: (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 10:11:12 EDT 2010
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
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