See <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/975/changes>
Changes: [aadamchik] fixing derby tests (in fact any DB other than hsqldb will be affected by this, as in the absence of hsql profile , hsql jar is not added to the maven build, and non-core modules need it as they are tested on hsql regardless of the core modules DB) [aadamchik] fixing H2 unit test failures not cleaning up the DB properly [aadamchik] fixing H2 unit test failures the fix would ensure we keep at least 2 open connections during the tests, so that when an (intentional) exception happens in DB operation, closing the connection doesn't kill the in-memory db ------------------------------------------ [...truncated 95990 lines...] INFO: --- transaction started. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: SELECT t0.ARTIST_NAME, t0.DATE_OF_BIRTH, t0.ARTIST_ID FROM ARTIST t0 Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logSelectCount INFO: === returned 1 row. - took 0 ms. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:58 AM org.apache.cayenne.test.jdbc.UtilityLogger log INFO: update ARTIST set ARTIST_NAME = ? where ARTIST_ID = ? Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: SELECT t0.ARTIST_NAME, t0.DATE_OF_BIRTH, t0.ARTIST_ID FROM ARTIST t0 Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logSelectCount INFO: === returned 1 row. - took 0 ms. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 sec Running org.apache.cayenne.map.ClientObjectRelationshipTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec Running org.apache.cayenne.access.NestedDataContextParentPeerEventsTest Nov 28, 2013 9:33:58 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader load INFO: Loading XML configuration resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/cayenne-relationships.xml> Nov 28, 2013 9:33:58 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler createChildTagHandler INFO: Loading XML DataMap resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/relationships.map.xml> Nov 28, 2013 9:33:58 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler createChildTagHandler INFO: Loading XML DataMap resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/relationships1.map.xml> Nov 28, 2013 9:33:58 AM org.apache.cayenne.map.EntityResolver applyDBLayerDefaults INFO: added runtime complimentary DbRelationship from DELETE_RULE_TEST3 to DELETE_RULE_TEST1 Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: SELECT NEXT_ID FROM AUTO_PK_SUPPORT WHERE TABLE_NAME = 'MASTER' Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logSelectCount INFO: === returned 1 row. - took 0 ms. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: UPDATE AUTO_PK_SUPPORT SET NEXT_ID = NEXT_ID + 20 WHERE TABLE_NAME = 'MASTER' Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: INSERT INTO MASTER (ID, NAME) VALUES (?, ?) Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:200, 2->NAME:'X'] Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: UPDATE MASTER SET NAME = ? WHERE ID = ? Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->NAME:'Y', 2->ID:200] Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:58 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:59 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader load INFO: Loading XML configuration resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/cayenne-relationships.xml> Nov 28, 2013 9:33:59 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler createChildTagHandler INFO: Loading XML DataMap resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/relationships.map.xml> Nov 28, 2013 9:33:59 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler createChildTagHandler INFO: Loading XML DataMap resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/relationships1.map.xml> Nov 28, 2013 9:33:59 AM org.apache.cayenne.map.EntityResolver applyDBLayerDefaults INFO: added runtime complimentary DbRelationship from DELETE_RULE_TEST3 to DELETE_RULE_TEST1 Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: SELECT NEXT_ID FROM AUTO_PK_SUPPORT WHERE TABLE_NAME = 'CHILD' Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logSelectCount INFO: === returned 1 row. - took 0 ms. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: UPDATE AUTO_PK_SUPPORT SET NEXT_ID = NEXT_ID + 20 WHERE TABLE_NAME = 'CHILD' Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: INSERT INTO MASTER (ID, NAME) VALUES (?, ?) Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:201, 2->NAME:'X'] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:202, 2->NAME:'Y'] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: INSERT INTO CHILD (ID, MASTER_ID) VALUES (?, ?) Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:200, 2->MASTER_ID:201] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: UPDATE CHILD SET MASTER_ID = ? WHERE ID = ? Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->MASTER_ID:202, 2->ID:200] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:59 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader load INFO: Loading XML configuration resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/cayenne-relationships.xml> Nov 28, 2013 9:33:59 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler createChildTagHandler INFO: Loading XML DataMap resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/relationships.map.xml> Nov 28, 2013 9:33:59 AM org.apache.cayenne.configuration.XMLDataChannelDescriptorLoader$DataChannelChildrenHandler createChildTagHandler INFO: Loading XML DataMap resource from <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/test-classes/relationships1.map.xml> Nov 28, 2013 9:33:59 AM org.apache.cayenne.map.EntityResolver applyDBLayerDefaults INFO: added runtime complimentary DbRelationship from DELETE_RULE_TEST3 to DELETE_RULE_TEST1 Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: INSERT INTO MASTER (ID, NAME) VALUES (?, ?) Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:203, 2->NAME:'X'] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: INSERT INTO CHILD (ID, MASTER_ID) VALUES (?, ?) Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:201, 2->MASTER_ID:203] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->ID:202, 2->MASTER_ID:NULL] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: UPDATE CHILD SET MASTER_ID = ? WHERE ID = ? Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQueryParameters INFO: [bind: 1->MASTER_ID:203, 2->ID:202] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logUpdateCount INFO: === updated 1 row. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logBeginTransaction INFO: --- transaction started. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logQuery INFO: SELECT t0.MASTER_ID, t0.ID FROM CHILD t0 WHERE t0.MASTER_ID = ? [bind: 1->MASTER_ID:203] Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logSelectCount INFO: === returned 2 rows. - took 1 ms. Nov 28, 2013 9:33:59 AM org.apache.cayenne.log.CommonsJdbcEventLogger logCommitTransaction INFO: +++ transaction committed. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.935 sec Running org.apache.cayenne.DataRowTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 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.jdbc.SQLTemplateProcessorChainTest Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec Running org.apache.cayenne.exp.parser.ASTObjPathTest Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec Results : Failed tests: testConcurrentInserts(org.apache.cayenne.dba.ConcurrentPkGeneratorTest) Tests run: 2022, Failures: 1, Errors: 0, Skipped: 0 [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Cayenne ........................................... SUCCESS [1.176s] [INFO] Cayenne Build Tools Parent ........................ SUCCESS [0.052s] [INFO] Cayenne License and Notice Bundle ................. SUCCESS [2.515s] [INFO] Common Unit Test Utilities ........................ SUCCESS [1.197s] [INFO] Cayenne Dependency Injection Container ............ SUCCESS [3.777s] [INFO] Cayenne Server .................................... FAILURE [1:12.577s] [INFO] Cayenne ROP Client ................................ SKIPPED [INFO] Cayenne Project ................................... SKIPPED [INFO] Cayenne Tools ..................................... SKIPPED [INFO] Cayenne Lifecycle Utilities ....................... SKIPPED [INFO] Cayenne Integration Tests Parent .................. SKIPPED [INFO] Cayenne Maven Plugins ............................. SKIPPED [INFO] Cayenne Maven Plugin .............................. SKIPPED [INFO] Integration Tests - Cayenne Tools ................. SKIPPED [INFO] Cayenne Modeler Parent ............................ SKIPPED [INFO] Cayenne WebObjects Compatibility Library .......... SKIPPED [INFO] Cayenne Modeler ................................... SKIPPED [INFO] Cayenne Modeler Maven Plugin ...................... SKIPPED [INFO] Cayenne Tutorial .................................. SKIPPED [INFO] Cayenne ROP Server Tutorial ....................... SKIPPED [INFO] Cayenne ROP Client Tutorial ....................... SKIPPED [INFO] Cayenne Tutorials ................................. SKIPPED [INFO] Cayenne Documenation Parent ....................... SKIPPED [INFO] Cayenne Documentation ............................. SKIPPED [INFO] Cayenne Docbook Documentation ..................... SKIPPED [INFO] Docbook: Cayenne Stylesheets ...................... SKIPPED [INFO] Docbook: Cayenne Guide ............................ SKIPPED [INFO] Docbook: Getting Started with Cayenne ............. SKIPPED [INFO] Docbook: Getting Started with Cayenne ROP ......... SKIPPED [INFO] Docbook: Cayenne New Features and Upgrade Guide ... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1:22.924s [INFO] Finished at: Thu Nov 28 09:34:00 UTC 2013 [INFO] Final Memory: 38M/229M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project cayenne-server: There are test failures. [ERROR] [ERROR] Please refer to <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/surefire-reports> for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project cayenne-server: There are test failures. Please refer to <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/surefire-reports> for the individual test results. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) 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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures. Please refer to <https://builds.apache.org/job/Cayenne-trunk/cayenneTestConnection=h2,jdk=JDK%201.6%20(latest),label=Ubuntu/ws/trunk/cayenne-server/target/surefire-reports> for the individual test results. at org.apache.maven.plugin.surefire.SurefirePlugin.execute(SurefirePlugin.java:629) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :cayenne-server Build step 'Invoke top-level Maven targets' marked build as failure