db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff cox" <J...@cwindustries.net>
Subject can't build.
Date Mon, 31 Mar 2003 18:57:09 GMT
Hi,
	I have just started using torque, and I can't seem to get a
mapping file created. I keep getting the following build error:


      Buildfile: build-torque.xml
      
      main:
      
      check-use-classpath:
      
      check-run-only-on-schema-change:
      
      sql-check:
      
      sql:
           [echo] +------------------------------------------+
           [echo] |                                          |
           [echo] | Generating SQL for YOUR Torque project!  |
           [echo] | Woo hoo!                                 |
           [echo] |                                          |
           [echo] +------------------------------------------+

      sql-classpath:
      [torque-sql] Using contextProperties file:
C:\projects\CASC\build.properties
      [torque-sql] Using classpath
      [torque-sql] Generating to file
C:\projects\CASC\sql\report.CASC.sql.generation
      [torque-sql] Resolver: used
http://jakarta.apache.org/turbine/dtd/database_3_1.dtd
   StdErr
      
      BUILD FAILED
      file:C:/projects/CASC/build-torque.xml:201: Generation failed. For
more information consult the velocity log, or invoke ant with the -debug
flag.
      
      Total time: 4 seconds


If I set the debug flag I get a lot of information, the latter being:



.
.
.
sql-classpath:
[torque-sql] Using contextProperties file:
C:\projects\CASC\build.properties
[torque-sql] Using classpath
[torque-sql] Generating to file
C:\projects\CASC\sql\report.CASC.sql.generation
fileset: Setup scanner in dir C:\projects\CASC\conf with patternSet{
includes: [*-schema.xml] excludes: [] }
[torque-sql] Resolver: used
http://jakarta.apache.org/turbine/dtd/database_3_1.dtd
StdErr

BUILD FAILED
file:C:/projects/CASC/build-torque.xml:201: Generation failed. For more
information consult the velocity log, or invoke ant with the -debug
flag.
   at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:579)
   at org.apache.tools.ant.Task.perform(Task.java:319)
   at org.apache.tools.ant.Target.execute(Target.java:309)
   at org.apache.tools.ant.Target.performTasks(Target.java:336)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
   at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
   at org.apache.tools.ant.Task.perform(Task.java:319)
   at org.apache.tools.ant.Target.execute(Target.java:309)
   at org.apache.tools.ant.Target.performTasks(Target.java:336)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
   at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
   at org.apache.tools.ant.Task.perform(Task.java:319)
   at org.apache.tools.ant.Target.execute(Target.java:309)
   at org.apache.tools.ant.Target.performTasks(Target.java:336)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
   at org.apache.tools.ant.Main.runBuild(Main.java:610)
   at org.apache.tools.ant.Main.start(Main.java:196)
   at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: java.lang.NullPointerException
   at
org.apache.torque.engine.database.model.Database.doFinalInitialization(D
atabase.java:444)
   at
org.apache.torque.engine.database.model.AppData.doFinalInitialization(Ap
pData.java:313)
   at
org.apache.torque.engine.database.model.AppData.getDatabase(AppData.java
:221)
   at
org.apache.torque.task.TorqueDataModelTask.initControlContext(TorqueData
ModelTask.java:350)
   at
org.apache.torque.task.TorqueSQLTask.initControlContext(TorqueSQLTask.ja
va:220)
   at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:480)
   ... 20 more
--- Nested Exception ---
java.lang.NullPointerException
   at
org.apache.torque.engine.database.model.Database.doFinalInitialization(D
atabase.java:444)
   at
org.apache.torque.engine.database.model.AppData.doFinalInitialization(Ap
pData.java:313)
   at
org.apache.torque.engine.database.model.AppData.getDatabase(AppData.java
:221)
   at
org.apache.torque.task.TorqueDataModelTask.initControlContext(TorqueData
ModelTask.java:350)
   at
org.apache.torque.task.TorqueSQLTask.initControlContext(TorqueSQLTask.ja
va:220)
   at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:480)
   at org.apache.tools.ant.Task.perform(Task.java:319)
   at org.apache.tools.ant.Target.execute(Target.java:309)
   at org.apache.tools.ant.Target.performTasks(Target.java:336)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
   at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
   at org.apache.tools.ant.Task.perform(Task.java:319)
   at org.apache.tools.ant.Target.execute(Target.java:309)
   at org.apache.tools.ant.Target.performTasks(Target.java:336)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
   at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
   at org.apache.tools.ant.Task.perform(Task.java:319)
   at org.apache.tools.ant.Target.execute(Target.java:309)
   at org.apache.tools.ant.Target.performTasks(Target.java:336)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
   at org.apache.tools.ant.Main.runBuild(Main.java:610)
   at org.apache.tools.ant.Main.start(Main.java:196)
   at org.apache.tools.ant.Main.main(Main.java:235)

Total time: 2 minutes 4 seconds



Mime
View raw message