Subject Null Pointer Exception using SQL task in Ant
Author Liz
This code works fine with mckoi and oracle, I get an exception using
jaybird. Any ideas?

<echo>Creating tables using URL ${database.url}</echo>
<echo>sql is in ${database.script.file}</echo>
<echo> driver is ${database.driver}</echo>
<echo> userid is ${database.userid}</echo>
<echo> classpath is ${database.driver.classpath}</echo>

<sql classpath="${database.driver.classpath}"
driver="${database.driver}" url="${database.url}"
userid="${database.userid}" password="${database.password}"
src="${database.script.file}" print="true" output="result.txt" />
<!-- Build views (this is specific) -->
<echo> view.sql is in ${database.views.file}</echo>
<sql classpath="${database.driver.classpath}"
driver="${database.driver}" url="${database.url}"
userid="${database.userid}" password="${database.password}"
src="${database.views.file}" print="true" output="result.txt" />

Output is


[echo] Creating tables using URL
jdbc:firebirdsql:localhost:C:/workspace/newDataBuild/test/data/database/app-db.fdb
[echo] sql is in
C:/workspace/newDataBuild/test/data/sql/firebird/create.sql
[echo] driver is org.firebirdsql.jdbc.FBDriver
[echo] userid is SYSDBA
[echo] classpath is C:/libs/drivers/jaybird-full-2.0.0.jar

BUILD FAILED
C:\workspace\newDataBuild\build.xml:297: The following error occurred
while executing this line:
C:\workspace\newDataBuild\test\data\build.xml:137: The following error
occurred while executing this line:
C:\workspace\newDataBuild\test\data\helper\firebird\buildFirebird.xml:81:
java.lang.NullPointerException