In the configuration of SQL task (SQLDeleteTask, etc.), if the plugin-database resource is missing or incorrect, a NullPointerException is thrown:
java.lang.NullPointerException
at org.jbjf.tasks.SQLDeleteTask.getConnection(Unknown Source)
at org.jbjf.tasks.SQLDeleteTask.runTask(Unknown Source)
at org.jbjf.core.AbstractBatch.runBatch(Unknown Source)
at org.jbjf.core.AbstractBatch._runBatch(Unknown Source)
at org.jbjf.core.AbstractBatch._main(Unknown Source)
at org.jbjf.core.DefaultBatch.main(Unknown Source)
2010-04-08 15:46:53,343 [main] FATAL com.dictao.test - Processing Exception
java.lang.NullPointerException
at org.jbjf.tasks.SQLDeleteTask.getConnection(Unknown Source)
at org.jbjf.tasks.SQLDeleteTask.runTask(Unknown Source)
at org.jbjf.core.AbstractBatch.runBatch(Unknown Source)
at org.jbjf.core.AbstractBatch._runBatch(Unknown Source)
at org.jbjf.core.AbstractBatch._main(Unknown Source)
at org.jbjf.core.DefaultBatch.main(Unknown Source)
It seems that we can mark this kind of resources as "required"
On 1.3.0 release
Anonymous
Good idea! I'll start working on this...
This might be more of a new feature than a bug. The simplest solution is probably just rewrite a new SQLDeleteTask that doesn't require a plugin-database resource.