Hi community, I found another thing I wanted to discuss and get feedback on. On the EJB 3.2 section of the TCK we are down to 5 failures all related to schedule/timers.
To run them, use the following command ./runtests --web tomee-plume com.sun.ts.tests.ejb32.lite.timer.schedule.expire.Client This is the part failing https://github.com/eclipse-ee4j/jakartaee-tck/blob/master/src/com/sun/ts/tests/ejb32/lite/timer/schedule/expire/Client.java#L231 java.lang.IllegalArgumentException: End time cannot be before start time > at > org.apache.openejb.quartz.impl.triggers.CronTriggerImpl.setEndTime(CronTriggerImpl.java:417) > at > org.apache.openejb.core.timer.EJBCronTrigger.<init>(EJBCronTrigger.java:121) > at > org.apache.openejb.core.timer.CalendarTimerData.initializeTrigger(CalendarTimerData.java:61) > at org.apache.openejb.core.timer.TimerData.newTimer(TimerData.java:222) > at > org.apache.openejb.core.timer.EjbTimerServiceImpl.initializeNewTimer(EjbTimerServiceImpl.java:738) > at > org.apache.openejb.core.timer.EjbTimerServiceImpl.createTimer(EjbTimerServiceImpl.java:715) > at > org.apache.openejb.core.timer.TimerServiceImpl.createCalendarTimer(TimerServiceImpl.java:83) > at > org.apache.openejb.core.timer.TimerServiceWrapper.createCalendarTimer(TimerServiceWrapper.java:79) > at > com.sun.ts.tests.ejb30.timer.common.TimerBeanBaseWithoutTimeOutMethod.createTimer(TimerBeanBaseWithoutTimeOutMethod.java:140) > > When we want to set the endTime to Quartz, we get the exception above which does not sound stupid. The test says * @testName: endNeverExpires * * @test_Strategy: create a timer with year="currentYear - currentYear+1", and * end="currentYear-1". The end value is prior to the year values, and this * timer will never expire. Creating this timer will succeed, but any timer * method access in a subsequent business method will result in * NoSuchObjectLocalException. */ So I'm wondering what would be the best way to be compatible in TomEE. Any ideas? Of course I could do a pre-check and adjust it to null or whatever relevant value. Or should I ask for the TCK/spec mailings lists? -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com
