We'll need install to put artifacts in Hudson's machine repository. Wonder if we can have profile to skip docs generation for that..?
2009/12/18 Andrus Adamchik <[email protected]> > > /home/hudson/tools/maven/latest2/bin/mvn "-Djdk=JDK 1.6 (latest)" >> -DcayenneTestConnection=HSQLDB clean test >> > > I think we need "clean install", not just "clean test" on Hudson. This > failure seems to be due to the test linked against the old piece of code: > > INFO: No property 'cayenne.test.dir' set. Using default directory: >> 'target/testrun' >> org.apache.maven.surefire.booter.SurefireExecutionException: >> org.apache.cayenne.tools.CayenneGeneratorTaskTest; nested exception is >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir; >> nested exception is >> org.apache.maven.surefire.testset.TestSetFailedException: >> org.apache.cayenne.tools.CayenneGeneratorTaskTest; nested exception is >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir >> org.apache.maven.surefire.testset.TestSetFailedException: >> org.apache.cayenne.tools.CayenneGeneratorTaskTest; nested exception is >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir >> at >> org.apache.cayenne.unit.ConnectionProperties.loadDefaultProperties(ConnectionProperties.java:93) >> at >> org.apache.cayenne.unit.ConnectionProperties.<clinit>(ConnectionProperties.java:70) >> at >> org.apache.cayenne.unit.CayenneResources.setConnectionKey(CayenneResources.java:200) >> at >> org.apache.cayenne.unit.CayenneResources.loadResources(CayenneResources.java:86) >> > > If you check ConnectionProperties SVN history, all references to > CayenneUserDir class were removed from it in this exact commit that > generates the Hudson error above. > Andrus > > > > On Dec 18, 2009, at 2:36 PM, Apache Hudson Server wrote: > >> See < >> http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/./cayenneTestConnection=HSQLDB,jdk=JDK%201.6%20(latest)/115/changes<http://hudson.zones.apache.org/hudson/job/Cayenne-trunk/./cayenneTestConnection=HSQLDB,jdk=JDK%201.6%20%28latest%29/115/changes> >> > >> >> Changes: >> >> [aadamchik] CAY-1338: Move CayenneUserDir to the Modeler >> >> CAY-1339: Remove org.apache.cayenne.project package from runtime >> >> * removing o.a.c.DataMapProject - it hasn't been used , so it can be >> removed immediately >> * removing old project upgrade code, leaving placehodlers for upgrade >> methods >> * performing temporary deprecation of the classes to be removed. Once the >> Modeler is >> updated, these will be removed. >> * adding ProjectTreeFactory - a new cleaner way to wrap a project into a >> Swing tree >> >> ------------------------------------------ >> [...truncated 70665 lines...] >> INFO: --- transaction started. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger logQuery >> INFO: INSERT INTO ARTIST (ARTIST_ID, ARTIST_NAME, DATE_OF_BIRTH) VALUES >> (?, ?, ?) >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logQueryParameters >> INFO: [bind: 1->ARTIST_ID:259, 2->ARTIST_NAME:'X', 3->DATE_OF_BIRTH:NULL] >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logUpdateCount >> INFO: === updated 1 row. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger logQuery >> INFO: INSERT INTO PAINTING (ARTIST_ID, ESTIMATED_PRICE, GALLERY_ID, >> PAINTING_DESCRIPTION, PAINTING_ID, PAINTING_TITLE) VALUES (?, ?, ?, ?, ?, ?) >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logQueryParameters >> INFO: [bind: 1->ARTIST_ID:259, 2->ESTIMATED_PRICE:NULL, >> 3->GALLERY_ID:NULL, 4->PAINTING_DESCRIPTION:NULL, 5->PAINTING_ID:257, >> 6->PAINTING_TITLE:'PX'] >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logUpdateCount >> INFO: === updated 1 row. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logQueryParameters >> INFO: [bind: 1->ARTIST_ID:NULL, 2->ESTIMATED_PRICE:NULL, >> 3->GALLERY_ID:NULL, 4->PAINTING_DESCRIPTION:NULL, 5->PAINTING_ID:258, >> 6->PAINTING_TITLE:'PY'] >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logUpdateCount >> INFO: === updated 1 row. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logCommitTransaction >> INFO: +++ transaction committed. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logQueryStart >> INFO: --- will run 1 query. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logBeginTransaction >> INFO: --- transaction started. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger logQuery >> INFO: UPDATE PAINTING SET ARTIST_ID = ? WHERE PAINTING_ID = ? >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logQueryParameters >> INFO: [bind: 1->ARTIST_ID:259, 2->PAINTING_ID:258] >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logUpdateCount >> INFO: === updated 1 row. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logCommitTransaction >> INFO: +++ transaction committed. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logQueryStart >> INFO: --- will run 1 query. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logBeginTransaction >> INFO: --- transaction started. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger logQuery >> INFO: SELECT t0.ARTIST_ID, t0.PAINTING_ID, t0.GALLERY_ID, >> t0.PAINTING_DESCRIPTION, t0.ESTIMATED_PRICE, t0.PAINTING_TITLE FROM PAINTING >> t0 WHERE t0.ARTIST_ID = ? [bind: 1->ARTIST_ID:259] >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logSelectCount >> INFO: === returned 2 rows. - took 1 ms. >> Dec 18, 2009 12:35:44 PM org.apache.cayenne.access.QueryLogger >> logCommitTransaction >> INFO: +++ transaction committed. >> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.937 sec >> Running org.apache.cayenne.DataRowTest >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec >> Running org.apache.cayenne.access.types.EnumTypeTest >> Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec >> Running org.apache.cayenne.access.CustomQueryTest >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec >> Running org.apache.cayenne.project.validator.DomainValidatorTest >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec >> >> Results : >> >> Tests run: 2031, Failures: 0, Errors: 0, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Cayenne Java 1.6 Extensions >> [INFO] task-segment: [clean, test] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] [clean:clean] >> [INFO] Deleting directory >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-jdk1.6-unpublished/target >> [INFO] [cayenne-build:date {execution: date}] >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:compile] >> [INFO] Compiling 1 source file to >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-jdk1.6-unpublished/target/classes >> [INFO] [resources:testResources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:testCompile] >> [INFO] Nothing to compile - all classes are up to date >> [WARNING] DEPRECATED [systemProperties]: use systemPropertyVariables >> instead >> [INFO] [surefire:test] >> [INFO] Surefire report directory: >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 >> (latest)/trunk/framework/cayenne-jdk1.6-unpublished/target/surefire-reports >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> There are no tests to run. >> >> Results : >> >> Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Cayenne Project >> [INFO] task-segment: [clean, test] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] [clean:clean] >> [INFO] Deleting directory >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-project-unpublished/target >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:compile] >> [INFO] Compiling 21 source files to >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-project-unpublished/target/classes >> [INFO] [resources:testResources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:testCompile] >> [INFO] Compiling 7 source files to >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-project-unpublished/target/test-classes >> [WARNING] DEPRECATED [systemProperties]: use systemPropertyVariables >> instead >> [INFO] [surefire:test] >> [INFO] Surefire report directory: >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 >> (latest)/trunk/framework/cayenne-project-unpublished/target/surefire-reports >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> Running org.apache.cayenne.project2.FileProjectSaverTest >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.534 sec >> Running org.apache.cayenne.project2.ProjectTest >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec >> Running >> org.apache.cayenne.project2.upgrade.v6.XMLDataChannelDescriptorLoader_V3_0_0_1Test >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec >> Running org.apache.cayenne.project2.DataChannelProjectSaverTest >> Dec 18, 2009 12:35:51 PM >> org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataSourceChildrenHandler >> createChildTagHandler >> INFO: loading user name and password. >> Dec 18, 2009 12:35:51 PM >> org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataSourceChildrenHandler >> createChildTagHandler >> INFO: loading user name and password. >> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.1 sec >> Running org.apache.cayenne.project2.DataChannelProjectLoaderTest >> Dec 18, 2009 12:35:51 PM >> org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataSourceChildrenHandler >> createChildTagHandler >> INFO: loading user name and password. >> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec >> Running org.apache.cayenne.project2.upgrade.v6.ProjectUpgrader_V6Test >> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.117 sec >> >> Results : >> >> Tests run: 10, Failures: 0, Errors: 0, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Cayenne Aggregated Server Jar >> [INFO] task-segment: [clean, test] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] [clean:clean] >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:compile] >> [INFO] No sources to compile >> [INFO] [resources:testResources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:testCompile] >> [INFO] No sources to compile >> [WARNING] DEPRECATED [systemProperties]: use systemPropertyVariables >> instead >> [INFO] [surefire:test] >> [INFO] No tests to run. >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Cayenne Aggregated Client Jar >> [INFO] task-segment: [clean, test] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] [clean:clean] >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:compile] >> [INFO] No sources to compile >> [INFO] [resources:testResources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:testCompile] >> [INFO] No sources to compile >> [WARNING] DEPRECATED [systemProperties]: use systemPropertyVariables >> instead >> [INFO] [surefire:test] >> [INFO] No tests to run. >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Cayenne Tools >> [INFO] task-segment: [clean, test] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] artifact org.apache.maven.plugins:maven-remote-resources-plugin: >> checking for updates from Maven Central Repo >> [INFO] [clean:clean] >> [INFO] Deleting directory >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-tools/target >> [INFO] [resources:resources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] Setting property: classpath.resource.loader.class => >> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'. >> [INFO] Setting property: velocimacro.messages.on => 'false'. >> [INFO] Setting property: resource.loader => 'classpath'. >> [INFO] Setting property: resource.manager.logwhenfound => 'false'. >> [INFO] [remote-resources:process {execution: default}] >> [INFO] [compiler:compile] >> [INFO] Compiling 28 source files to >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-tools/target/classes >> [INFO] [resources:testResources] >> [INFO] Using default encoding to copy filtered resources. >> [INFO] [compiler:testCompile] >> [INFO] Compiling 11 source files to >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-tools/target/test-classes >> [WARNING] DEPRECATED [systemProperties]: use systemPropertyVariables >> instead >> [INFO] [surefire:test] >> [INFO] Surefire report directory: >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-tools/target/surefire-reports >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> Running org.apache.cayenne.tools.CayenneGeneratorTaskTest >> Dec 18, 2009 12:35:58 PM >> org.springframework.beans.factory.xml.XmlBeanDefinitionReader >> loadBeanDefinitions >> INFO: Loading XML bean definitions from resource loaded through >> InputStream >> Dec 18, 2009 12:35:58 PM org.springframework.core.CollectionFactory >> <clinit> >> INFO: Commons Collections 3.x available >> Dec 18, 2009 12:35:58 PM org.apache.cayenne.unit.CayenneResources >> setupTestDir >> INFO: No property 'cayenne.test.dir' set. Using default directory: >> 'target/testrun' >> org.apache.maven.surefire.booter.SurefireExecutionException: >> org.apache.cayenne.tools.CayenneGeneratorTaskTest; nested exception is >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir; >> nested exception is >> org.apache.maven.surefire.testset.TestSetFailedException: >> org.apache.cayenne.tools.CayenneGeneratorTaskTest; nested exception is >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir >> org.apache.maven.surefire.testset.TestSetFailedException: >> org.apache.cayenne.tools.CayenneGeneratorTaskTest; nested exception is >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir >> java.lang.NoClassDefFoundError: org/apache/cayenne/project/CayenneUserDir >> at >> org.apache.cayenne.unit.ConnectionProperties.loadDefaultProperties(ConnectionProperties.java:93) >> at >> org.apache.cayenne.unit.ConnectionProperties.<clinit>(ConnectionProperties.java:70) >> at >> org.apache.cayenne.unit.CayenneResources.setConnectionKey(CayenneResources.java:200) >> at >> org.apache.cayenne.unit.CayenneResources.loadResources(CayenneResources.java:86) >> at >> org.apache.cayenne.unit.CayenneResources.getResources(CayenneResources.java:104) >> at >> org.apache.cayenne.tools.CayenneGeneratorTaskTest.<clinit>(CayenneGeneratorTaskTest.java:40) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at junit.framework.TestSuite.createTest(TestSuite.java:131) >> at junit.framework.TestSuite.addTestMethod(TestSuite.java:114) >> at junit.framework.TestSuite.<init>(TestSuite.java:75) >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native >> Method) >> at >> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) >> at >> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) >> at java.lang.reflect.Constructor.newInstance(Constructor.java:513) >> at >> org.apache.maven.surefire.junit.JUnitTestSet.constructTestObject(JUnitTestSet.java:151) >> at >> org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:197) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:143) >> at >> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:130) >> at org.apache.maven.surefire.Surefire.run(Surefire.java:180) >> 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:350) >> at >> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021) >> Caused by: java.lang.ClassNotFoundException: >> org.apache.cayenne.project.CayenneUserDir >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) >> ... 28 more >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] There are test failures. >> >> Please refer to >> /zonestorage/hudson/home/hudson/hudson/jobs/Cayenne-trunk/workspace/cayenneTestConnection/HSQLDB/jdk/JDK >> 1.6 (latest)/trunk/framework/cayenne-tools/target/surefire-reports for the >> individual test results. >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] For more information, run Maven with the -e switch >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 2 minutes 14 seconds >> [INFO] Finished at: Fri Dec 18 12:35:58 UTC 2009 >> [INFO] Final Memory: 71M/206M >> [INFO] >> ------------------------------------------------------------------------ >> [locks-and-latches] Releasing all the locks >> [locks-and-latches] All the locks released >> Recording test results >> >> >> > -- Andrey
