Mantis - Resin
Viewing Issue Advanced Details
2475 minor always 03-02-08 20:41 03-04-08 09:52
netsql3  
ferg  
normal  
closed 3.1.5  
fixed  
none    
none 3.1.6  
0002475: Respirce Cron NPE
Using http://www.caucho.com/resin-3.0/resource/cron.xtp [^]
I set up a hello world job (not bean).

I get a NPE in CronResource, it seems that "set work" was not called in resin code.

I'd give you example, but it mirrors the hello world you have on the docs there.

Nice feature to build in cron.
Let me know when this might get fixed or if I can help.
Resin Professional 3.1.s080111 (built Fri, 11 Jan 2008 12:48:22 PST)

[20:38:30.612] {main} Resin started in 1201ms
[20:39:00.096] {resin-18} java.lang.NullPointerException
[20:39:00.096] {resin-18} at com.caucho.resources.CronResource.handleAlarm(CronResource.java:145)
[20:39:00.096] {resin-18} at com.caucho.util.Alarm.handleAlarm(Alarm.java:375)
[20:39:00.096] {resin-18} at com.caucho.util.Alarm.run(Alarm.java:345)
[20:39:00.096] {resin-18} at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
[20:39:00.096] {resin-18} at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
[20:39:00.096] {resin-18} at java.lang.Thread.run(Thread.java:619)

Notes
(0002812)
ferg   
03-04-08 09:52   
server/2m0[0-8]

Replaced with <scheduled-task>

See http://caucho.com/resin/doc/env-tags.xtp#scheduled-task [^] or http://caucho.com/resin/doc/resources.xtp#scheduled-task [^]