tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjorn Danielsson <bjorn-apa...@lists.cuspycode.com>
Subject NPE in Timer.getTimeRemaining()
Date Thu, 12 Feb 2015 14:24:07 GMT
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

Mime
View raw message