Menu

#6 NullPointerException when plugin-database is not specified

version-1.3.1
open
5
2012-07-20
2010-04-08
Anonymous
No

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

Discussion

  • adymlincoln

    adymlincoln - 2010-04-11

    Good idea! I'll start working on this...

     
  • adymlincoln

    adymlincoln - 2010-04-22

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





Monday.com Logo