You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by manoj kaushik <ma...@daffodildb.com> on 2006/09/19 13:57:43 UTC

java.lang.ExceptionInInitializerError

hi all
i am trying to export database from one MySql instance to another. but when
i give the goal torque:jdbc it gives the
java.lang.ExceptionInInitializerError as shown below
C:\dev\torque>maven torque:jdbc
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

build:start:

torque:init:

torque:jdbc:
    [torque-jdbc-transform] Torque - JDBCToXMLSchema starting
    [torque-jdbc-transform] Your DB settings are:
    [torque-jdbc-transform] driver : com.mysql.jdbc.Driver
    [torque-jdbc-transform] URL : jdbc:mysql://localhost:3306/bookstore
    [torque-jdbc-transform] user : root
    [torque-jdbc-transform] schema : ROOT
    [torque-jdbc-transform] DB driver sucessfuly instantiated
    [torque-jdbc-transform] DB connection established
    [torque-jdbc-transform] Getting table list...

BUILD FAILED
File...... C:\Documents and Settings\Administrator\.maven\cache\maven-
torque-plugin-3.1.1\plugin.jelly
Element... torque-jdbc-transform
Line...... 449
Column.... 7
java.lang.ExceptionInInitializerError
Total time: 6 seconds
Finished at: Tue Sep 19 17:23:20 GMT+05:30 2006

my project.properties file is configured as:
# -------------------------------------------------------------------
#
#  T O R Q U E   S E T T I N G S
#
# -------------------------------------------------------------------

torque.project = bookstore
torque.database = MySql
torque.targetPackage = com.daffodilwood.export
torque.database.default.adapter=mysql
torque.database.createUrl = jdbc:mysql://localhost:3306/mysql
torque.database.buildUrl = jdbc:mysql://localhost:3306/bookstore
torque.database.url = jdbc:mysql://localhost:3306/bookstore
DatabaseName=northwindnew
torque.database.driver = com.mysql.jdbc.Driver
torque.database.user =root
torque.database.password =
torque.database.host = localhost:3306
torque.database.schema = ROOT
torque.useClasspath=false
torque.database.manualCreation=false
torque.addGetByNameMethod=true
torque.useClasspath=true




plz tell me what i am missing
thanks in advance
Manoj Kaushik