NPE in Timer.getTimeRemaining()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

NPE in Timer.getTimeRemaining()

Bjorn Danielsson

While stress-testing my timers I sometimes get this exception:

SEVERE: EjbTransactionUtil.handleSystemException: null
        at org.apache.openejb.core.timer.TimerData.getTimeRemaining(
        at org.apache.openejb.core.timer.TimerImpl.getTimeRemaining(

This is in a loop that calls getTimeRemaining() for all timers
returned by TimerService.getTimers(), so occasional race conditions
are expected. But shouldn't it be NoMoreTimeoutsException for that

TomEE version is apache-tomee-jaxrs-1.7.0

Bjorn Danielsson
Cuspy Code AB