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
Hi,

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

SEVERE: EjbTransactionUtil.handleSystemException: null
java.lang.NullPointerException
        at org.apache.openejb.core.timer.TimerData.getTimeRemaining(TimerData.java:375)
        at org.apache.openejb.core.timer.TimerImpl.getTimeRemaining(TimerImpl.java:52)

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
situation?

TomEE version is apache-tomee-jaxrs-1.7.0

--
Bjorn Danielsson
Cuspy Code AB