incubator-empire-db-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Hudson Server <hud...@hudson.zones.apache.org>
Subject Build failed in Hudson: Empire-DB snapshot #146
Date Mon, 12 Apr 2010 15:55:34 GMT
See <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/146/changes>

Changes:

[benniven] added: 
	a unit test for the codegen, that checks if nested tables/views 
	are generated when no template folder has been specified (<templateFolder></templateFolder>)

fix:    in all codegen testconf*.xml for the unit tests the wrong options
	were changed
	
	from	<dbSchema>DBSAMPLE</dbSchema>
	to	<dbSchema></dbSchema>

------------------------------------------
[...truncated 2917 lines...]
INFO  [2010/04/12 15:55]: TableClassPrefix=T  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:104)

INFO  [2010/04/12 15:55]: ViewClassPrefi=V  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:105)

INFO  [2010/04/12 15:55]: NestTable=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:106)

INFO  [2010/04/12 15:55]: NestViews=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:107)

INFO  [2010/04/12 15:55]: CreateRecordProperties=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:108)

INFO  [2010/04/12 15:55]: Connecting to Database'jdbc:hsqldb:file:src/test/resources/hsqldb/sample;shutdown=true'
/ User=sa  at org.apache.empire.db.codegen.CodeGenParser.openJDBCConnection(CodeGenParser.java:111)

INFO  [2010/04/12 15:55]: Connected successfully  at org.apache.empire.db.codegen.CodeGenParser.openJDBCConnection(CodeGenParser.java:119)

INFO  [2010/04/12 15:55]: TABLE: DEPARTMENTS  at org.apache.empire.db.codegen.CodeGenParser.populateDatabase(CodeGenParser.java:156)

INFO  [2010/04/12 15:55]: 	COLUMN:	DEPARTMENT_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	NAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	HEAD (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	BUSINESS_UNIT (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	UPDATE_TIMESTAMP (DATETIME)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: TABLE: EMPLOYEES  at org.apache.empire.db.codegen.CodeGenParser.populateDatabase(CodeGenParser.java:156)

INFO  [2010/04/12 15:55]: 	COLUMN:	EMPLOYEE_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	SALUTATION (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	FIRSTNAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	LASTNAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	DATE_OF_BIRTH (DATE)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	DEPARTMENT_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	GENDER (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	PHONE_NUMBER (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	EMAIL (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	SALARY (DECIMAL)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	RETIRED (BOOL)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	UPDATE_TIMESTAMP (DATETIME)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: Closing database connection  at org.apache.empire.db.codegen.util.DBUtil.close(DBUtil.java:59)

INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/SampleDB.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
ERROR [2010/04/12 15:55]: ResourceManager : unable to find resource '$templateFolder/Table.vm'
in any resource loader.  at org.apache.velocity.runtime.log.CommonsLogLogChute.log(CommonsLogLogChute.java:96)

ERROR [2010/04/12 15:55]: #parse(): cannot find template '$templateFolder/Table.vm', called
at templates/Database.vm[line 75, column 25]  at org.apache.velocity.runtime.log.CommonsLogLogChute.log(CommonsLogLogChute.java:96)

ERROR [2010/04/12 15:55]: Unable to find resource '$templateFolder/Table.vm'  at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:313)

org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource '$templateFolder/Table.vm'
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:483)
	at org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354)
	at org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1400)
	at org.apache.velocity.runtime.directive.Parse.render(Parse.java:198)
	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
	at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:366)
	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
	at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87)
	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
	at org.apache.velocity.Template.merge(Template.java:328)
	at org.apache.velocity.Template.merge(Template.java:235)
	at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:309)
	at org.apache.empire.db.codegen.CodeGenWriter.createDatabaseClass(CodeGenWriter.java:201)
	at org.apache.empire.db.codegen.CodeGenWriter.generateCodeFiles(CodeGenWriter.java:131)
	at org.apache.empire.db.codegen.CodeGenApp.start(CodeGenApp.java:66)
	at org.apache.empire.db.codegen.CodeGenApp.main(CodeGenApp.java:47)
	at org.apache.empire.db.codegen.CodeGenAppTest.testMainDefaultTemplateFolderNested(CodeGenAppTest.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
	at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
	at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
	at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
	at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/tables/SampleTable.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/views/SampleView.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/records/SampleRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/records/DEPARTMENTSRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/records/EMPLOYEESRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Code generation completed successfully!  at org.apache.empire.db.codegen.CodeGenApp.start(CodeGenApp.java:68)

INFO  [2010/04/12 15:55]: reading configuration file: src/test/resources/testconfig_using_template_folder.xml
 at org.apache.empire.xml.XMLConfiguration.readConfiguration(XMLConfiguration.java:104) 
INFO  [2010/04/12 15:55]: Logging sucessfully configured.  at org.apache.empire.xml.XMLConfiguration.initLogging(XMLConfiguration.java:163)

INFO  [2010/04/12 15:55]: reading bean properties from node: properties  at org.apache.empire.xml.XMLConfiguration.readProperties(XMLConfiguration.java:186)

INFO  [2010/04/12 15:55]: Configuration property 'jdbcClass' set to "org.hsqldb.jdbcDriver"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'jdbcURL' set to "jdbc:hsqldb:file:src/test/resources/hsqldb/sample;shutdown=true"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'jdbcUser' set to "sa"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'jdbcPwd' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'packageName' set to "org.apache.empire.db.example"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'dbCatalog' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'dbSchema' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'dbTablePattern' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'timestampColumn' set to "CREATIONDATE" 
at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'templateFolder' set to "src/main/resources/templates"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'targetFolder' set to "target/generated/dbsample"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'packageName' set to "org.apache.empire.db.samples.dbsample"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'dbClassName' set to "SampleDB"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'tableBaseName' set to "SampleTable"  at
org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'viewBaseName' set to "SampleView"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'recordBaseName' set to "SampleRecord"  at
org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'tableClassPrefix' set to "T"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'tableClassSuffix' set to "Table"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'viewClassPrefix' set to "V"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'nestTables' set to "true"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'nestViews' set to "false"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'createRecordProperties' set to "true"  at
org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Database connection successful. Config options are:  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:95)

INFO  [2010/04/12 15:55]: SchemaName=null  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:96)

INFO  [2010/04/12 15:55]: TimestampColumn=CREATIONDATE  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:97)

INFO  [2010/04/12 15:55]: TargetFolder=target/generated/dbsample  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:98)

INFO  [2010/04/12 15:55]: PackageName=org.apache.empire.db.samples.dbsample  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:99)

INFO  [2010/04/12 15:55]: DbClassName=SampleDB  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:100)

INFO  [2010/04/12 15:55]: TableBaseName=SampleTable  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:101)

INFO  [2010/04/12 15:55]: ViewBaseName=SampleView  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:102)

INFO  [2010/04/12 15:55]: RecordBaseName=SampleRecord  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:103)

INFO  [2010/04/12 15:55]: TableClassPrefix=T  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:104)

INFO  [2010/04/12 15:55]: ViewClassPrefi=V  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:105)

INFO  [2010/04/12 15:55]: NestTable=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:106)

INFO  [2010/04/12 15:55]: NestViews=false  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:107)

INFO  [2010/04/12 15:55]: CreateRecordProperties=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:108)

INFO  [2010/04/12 15:55]: Connecting to Database'jdbc:hsqldb:file:src/test/resources/hsqldb/sample;shutdown=true'
/ User=sa  at org.apache.empire.db.codegen.CodeGenParser.openJDBCConnection(CodeGenParser.java:111)

INFO  [2010/04/12 15:55]: Connected successfully  at org.apache.empire.db.codegen.CodeGenParser.openJDBCConnection(CodeGenParser.java:119)

INFO  [2010/04/12 15:55]: TABLE: DEPARTMENTS  at org.apache.empire.db.codegen.CodeGenParser.populateDatabase(CodeGenParser.java:156)

INFO  [2010/04/12 15:55]: 	COLUMN:	DEPARTMENT_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	NAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	HEAD (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	BUSINESS_UNIT (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	UPDATE_TIMESTAMP (DATETIME)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: TABLE: EMPLOYEES  at org.apache.empire.db.codegen.CodeGenParser.populateDatabase(CodeGenParser.java:156)

INFO  [2010/04/12 15:55]: 	COLUMN:	EMPLOYEE_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	SALUTATION (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	FIRSTNAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	LASTNAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	DATE_OF_BIRTH (DATE)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	DEPARTMENT_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	GENDER (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	PHONE_NUMBER (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	EMAIL (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	SALARY (DECIMAL)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	RETIRED (BOOL)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	UPDATE_TIMESTAMP (DATETIME)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: Closing database connection  at org.apache.empire.db.codegen.util.DBUtil.close(DBUtil.java:59)

INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/SampleDB.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/tables/SampleTable.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/views/SampleView.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/records/SampleRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/records/DEPARTMENTSRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/dbsample/org/apache/empire/db/samples/dbsample/records/EMPLOYEESRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Code generation completed successfully!  at org.apache.empire.db.codegen.CodeGenApp.start(CodeGenApp.java:68)

INFO  [2010/04/12 15:55]: reading configuration file: src/test/resources/testconfig_invalid_template_folder.xml
 at org.apache.empire.xml.XMLConfiguration.readConfiguration(XMLConfiguration.java:104) 
INFO  [2010/04/12 15:55]: Logging sucessfully configured.  at org.apache.empire.xml.XMLConfiguration.initLogging(XMLConfiguration.java:163)

INFO  [2010/04/12 15:55]: reading bean properties from node: properties  at org.apache.empire.xml.XMLConfiguration.readProperties(XMLConfiguration.java:186)

INFO  [2010/04/12 15:55]: Configuration property 'jdbcClass' set to "org.hsqldb.jdbcDriver"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'jdbcURL' set to "jdbc:hsqldb:file:src/test/resources/hsqldb/sample;shutdown=true"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'jdbcUser' set to "sa"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'jdbcPwd' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'packageName' set to "org.apache.empire.db.example"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'dbCatalog' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'dbSchema' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'dbTablePattern' set to "null"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'timestampColumn' set to "CREATIONDATE" 
at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'templateFolder' set to "i/do/not/exist"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'targetFolder' set to "target/generated/dbsample"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'packageName' set to "org.apache.empire.db.samples.dbsample"
 at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'dbClassName' set to "SampleDB"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'tableBaseName' set to "SampleTable"  at
org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'viewBaseName' set to "SampleView"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'recordBaseName' set to "SampleRecord"  at
org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Configuration property 'tableClassPrefix' set to "T"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'tableClassSuffix' set to "Table"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'viewClassPrefix' set to "V"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'nestTables' set to "true"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'nestViews' set to "false"  at org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217)

INFO  [2010/04/12 15:55]: Configuration property 'createRecordProperties' set to "true"  at
org.apache.empire.xml.XMLConfiguration.setPropertyValue(XMLConfiguration.java:217) 
INFO  [2010/04/12 15:55]: Database connection successful. Config options are:  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:95)

INFO  [2010/04/12 15:55]: SchemaName=null  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:96)

INFO  [2010/04/12 15:55]: TimestampColumn=CREATIONDATE  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:97)

INFO  [2010/04/12 15:55]: TargetFolder=target/generated/dbsample  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:98)

INFO  [2010/04/12 15:55]: PackageName=org.apache.empire.db.samples.dbsample  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:99)

INFO  [2010/04/12 15:55]: DbClassName=SampleDB  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:100)

INFO  [2010/04/12 15:55]: TableBaseName=SampleTable  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:101)

INFO  [2010/04/12 15:55]: ViewBaseName=SampleView  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:102)

INFO  [2010/04/12 15:55]: RecordBaseName=SampleRecord  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:103)

INFO  [2010/04/12 15:55]: TableClassPrefix=T  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:104)

INFO  [2010/04/12 15:55]: ViewClassPrefi=V  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:105)

INFO  [2010/04/12 15:55]: NestTable=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:106)

INFO  [2010/04/12 15:55]: NestViews=false  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:107)

INFO  [2010/04/12 15:55]: CreateRecordProperties=true  at org.apache.empire.db.codegen.CodeGenApp.listOptions(CodeGenApp.java:108)

INFO  [2010/04/12 15:55]: Connecting to Database'jdbc:hsqldb:file:src/test/resources/hsqldb/sample;shutdown=true'
/ User=sa  at org.apache.empire.db.codegen.CodeGenParser.openJDBCConnection(CodeGenParser.java:111)

INFO  [2010/04/12 15:55]: Connected successfully  at org.apache.empire.db.codegen.CodeGenParser.openJDBCConnection(CodeGenParser.java:119)

INFO  [2010/04/12 15:55]: TABLE: DEPARTMENTS  at org.apache.empire.db.codegen.CodeGenParser.populateDatabase(CodeGenParser.java:156)

INFO  [2010/04/12 15:55]: 	COLUMN:	DEPARTMENT_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	NAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	HEAD (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	BUSINESS_UNIT (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	UPDATE_TIMESTAMP (DATETIME)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: TABLE: EMPLOYEES  at org.apache.empire.db.codegen.CodeGenParser.populateDatabase(CodeGenParser.java:156)

INFO  [2010/04/12 15:55]: 	COLUMN:	EMPLOYEE_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	SALUTATION (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	FIRSTNAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	LASTNAME (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	DATE_OF_BIRTH (DATE)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	DEPARTMENT_ID (INTEGER)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	GENDER (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	PHONE_NUMBER (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	EMAIL (TEXT)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	SALARY (DECIMAL)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	RETIRED (BOOL)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: 	COLUMN:	UPDATE_TIMESTAMP (DATETIME)  at org.apache.empire.db.codegen.CodeGenParser.addColumn(CodeGenParser.java:298)

INFO  [2010/04/12 15:55]: Closing database connection  at org.apache.empire.db.codegen.util.DBUtil.close(DBUtil.java:59)

Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.659 sec <<< FAILURE!
Running org.apache.empire.db.codegen.util.DBUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.09 sec
Running org.apache.empire.db.codegen.CodeGenTest
INFO  [2010/04/12 15:55]: reading resource file: testconfig.xml  at org.apache.empire.xml.XMLConfiguration.readConfiguration(XMLConfiguration.java:97)

INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/MyDB.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/tables/BaseTable.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/views/BaseView.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
INFO  [2010/04/12 15:55]: Writing <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/records/BaseRecord.java>
 at org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:306) 
<http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/MyDB.java>
<http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/tables/BaseTable.java>
<http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/views/BaseView.java>
<http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/generated/db/org/foo/db/records/BaseRecord.java>
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec

Results :

Failed tests: 
  testMainDefaultTemplateFolderNested(org.apache.empire.db.codegen.CodeGenAppTest)

Tests run: 10, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to <http://hudson.zones.apache.org/hudson/job/Empire-DB%20snapshot/ws/trunk/empire-db-codegen/target/surefire-reports>
for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 
[INFO] Finished at: Mon Apr 12 15:55:33 UTC 2010
[INFO] Final Memory: 59M/187M
[INFO] ------------------------------------------------------------------------
Recording test results


Mime
View raw message