The problem is that for a recurring task the threadlocalservlet is null because there was no request that triggered the function. Fixing this requires some changes in url handling, the contextpath/absolute location needs to be cached to make it work for recurring tasks.

exception occured while executing timed function: invoke notifyModerators() every 1 minutes
exception message: null
java.lang.NullPointerException
    at utils.ThreadLocalServlet.getContextPath(ThreadLocalServlet.java:16)
    at utils.PageServlet.getAbsoluteLocation(PageServlet.java:3902)
    at webdsl.generated.functions.notifyModerators_.notifyModerators_(notifyModerators_.java:29)
    at utils.DispatchServlet$5.run(DispatchServlet.java:206)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)
Submitted by Danny Groenewegen on 26 September 2011 at 16:02

On 26 September 2011 at 16:02 Danny Groenewegen tagged 1.2.9

On 24 February 2012 at 17:02 Danny Groenewegen removed tag 1.2.9

On 24 February 2012 at 17:02 Danny Groenewegen tagged 1.3.0

On 15 January 2013 at 14:36 Danny Groenewegen tagged confirmed

On 15 January 2013 at 14:36 Danny Groenewegen removed tag 1.3.0

Log in to post comments