[erp_devel_main-webservice] $ ant run.webservice.tests Buildfile: build.xml set.code.rev: code.rev: init: run.webservice.tests: copy.srcClient: sqlc: [sql] Executing commands [sql] 2 of 2 SQL statements executed successfully [java] 0 [main] INFO org.openbravo.data.Sqlc - strFileProperties: /srv/hudson/workspace/erp_devel_main-webservice/config/Openbravo.properties [java] 297 [main] INFO org.openbravo.data.Sqlc - javaDateFormat: dd-MM-yyyy [java] 302 [main] INFO org.openbravo.data.Sqlc - directory source: . [java] 305 [main] INFO org.openbravo.data.Sqlc - directory destiny: /srv/hudson/workspace/erp_devel_main-webservice/build/javasqlc/src [java] 308 [main] INFO org.openbravo.data.Sqlc - file termination: .xsql [java] 318 [main] INFO org.openbravo.data.Sqlc - file connection: /srv/hudson/workspace/erp_devel_main-webservice/config/Openbravo.properties [java] 323 [main] INFO org.openbravo.data.Sqlc - Write TXT Files: false [java] 327 [main] INFO org.openbravo.data.Sqlc - QueryExecutionStrategy: optimized [java] 332 [main] INFO org.openbravo.data.Sqlc - Loading driver: org.postgresql.Driver [java] 340 [main] INFO org.openbravo.data.Sqlc - Driver loaded [java] 349 [main] INFO org.openbravo.data.Sqlc - connect made [java] 0 [main] INFO org.openbravo.data.Sqlc - strFileProperties: /srv/hudson/workspace/erp_devel_main-webservice/config/Openbravo.properties [java] 252 [main] INFO org.openbravo.data.Sqlc - javaDateFormat: dd-MM-yyyy [java] 256 [main] INFO org.openbravo.data.Sqlc - directory source: /srv/hudson/workspace/erp_devel_main-webservice/modules [java] 258 [main] INFO org.openbravo.data.Sqlc - directory destiny: /srv/hudson/workspace/erp_devel_main-webservice/build/javasqlc/src [java] 261 [main] INFO org.openbravo.data.Sqlc - file termination: .xsql [java] 272 [main] INFO org.openbravo.data.Sqlc - file connection: /srv/hudson/workspace/erp_devel_main-webservice/config/Openbravo.properties [java] 276 [main] INFO org.openbravo.data.Sqlc - Write TXT Files: false [java] 280 [main] INFO org.openbravo.data.Sqlc - QueryExecutionStrategy: traditional [java] 283 [main] INFO org.openbravo.data.Sqlc - Loading driver: org.postgresql.Driver [java] 288 [main] INFO org.openbravo.data.Sqlc - Driver loaded [java] 294 [main] INFO org.openbravo.data.Sqlc - connect made buildAD: [java] 0 [main] INFO org.openbravo.data.Sqlc - strFileProperties: /srv/hudson/workspace/erp_devel_main-webservice/config/Openbravo.properties [java] 428 [main] INFO org.openbravo.data.Sqlc - javaDateFormat: dd-MM-yyyy [java] 432 [main] INFO org.openbravo.data.Sqlc - directory source: ../srcAD [java] 434 [main] INFO org.openbravo.data.Sqlc - directory destiny: /srv/hudson/workspace/erp_devel_main-webservice/build/javasqlc/src [java] 437 [main] INFO org.openbravo.data.Sqlc - file termination: .xsql [java] 446 [main] INFO org.openbravo.data.Sqlc - file connection: /srv/hudson/workspace/erp_devel_main-webservice/config/Openbravo.properties [java] 448 [main] INFO org.openbravo.data.Sqlc - Write TXT Files: false [java] 451 [main] INFO org.openbravo.data.Sqlc - QueryExecutionStrategy: traditional [java] 453 [main] INFO org.openbravo.data.Sqlc - Loading driver: org.postgresql.Driver [java] 456 [main] INFO org.openbravo.data.Sqlc - Driver loaded [java] 463 [main] INFO org.openbravo.data.Sqlc - connect made compileSqlc: [sql] Executing commands [sql] 2 of 2 SQL statements executed successfully init: calculate.version: calculate.version.from.hg: calculate.version.from.file: calculate.instance.version: [sql] Executing commands [sql] 1 of 1 SQL statements executed successfully init: compile.src.gen: generate.entities.quick: run.webservice.tests: [junit] Running org.openbravo.test.AllWebserviceTests [junit] Testsuite: org.openbravo.test.AllWebserviceTests [junit] Tests run: 12, Failures: 2, Errors: 0, Time elapsed: 431.491 sec [junit] Tests run: 12, Failures: 2, Errors: 0, Time elapsed: 431.491 sec [junit] ------------- Standard Error ----------------- [junit] org.openbravo.base.exception.OBException: Exception when executing ws: /ws/dal/City/TEST808127D2C2CE0127D2C9463A0002 [junit] at org.openbravo.test.webservice.BaseWSTest.doTestGetRequest(BaseWSTest.java:212) [junit] at org.openbravo.test.webservice.BaseWSTest.doTestGetRequest(BaseWSTest.java:172) [junit] at org.openbravo.test.webservice.WSUpdateTest.testReadAddDeleteCity(WSUpdateTest.java:170) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [junit] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:597) [junit] at junit.framework.TestCase.runTest(TestCase.java:168) [junit] at org.openbravo.test.base.BaseTest.runTest(BaseTest.java:166) [junit] at junit.framework.TestCase.runBare(TestCase.java:134) [junit] at junit.framework.TestResult$1.protect(TestResult.java:110) [junit] at junit.framework.TestResult.runProtected(TestResult.java:128) [junit] at junit.framework.TestResult.run(TestResult.java:113) [junit] at junit.framework.TestCase.run(TestCase.java:124) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:232) [junit] at junit.framework.TestSuite.run(TestSuite.java:227) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:232) [junit] at junit.framework.TestSuite.run(TestSuite.java:227) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:420) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:1339) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:831) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeOrQueue(JUnitTask.java:1785) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:785) [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [junit] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:597) [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [junit] at org.apache.tools.ant.Task.perform(Task.java:348) [junit] at org.apache.tools.ant.Target.execute(Target.java:357) [junit] at org.apache.tools.ant.Target.performTasks(Target.java:385) [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [junit] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [junit] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416) [junit] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) [junit] at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) [junit] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [junit] at java.lang.reflect.Method.invoke(Method.java:597) [junit] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [junit] at org.apache.tools.ant.Task.perform(Task.java:348) [junit] at org.apache.tools.ant.Target.execute(Target.java:357) [junit] at org.apache.tools.ant.Target.performTasks(Target.java:385) [junit] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337) [junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1306) [junit] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [junit] at org.apache.tools.ant.Project.executeTargets(Project.java:1189) [junit] at org.apache.tools.ant.Main.runBuild(Main.java:758) [junit] at org.apache.tools.ant.Main.startAnt(Main.java:217) [junit] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) [junit] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) [junit] Caused by: java.io.FileNotFoundException: http://localhost:8080/openbravo/ws/dal/City/TEST808127D2C2CE0127D2C9463A0002 [junit] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311) [junit] at org.openbravo.test.webservice.BaseWSTest.doTestGetRequest(BaseWSTest.java:197) [junit] ... 50 more [junit] 28 [junit] ------------- ---------------- --------------- [junit] [junit] Testcase: testSchemaWebService took 13.994 sec [junit] Testcase: testTypesWebService took 0.148 sec [junit] Testcase: testWhereClause took 1.643 sec [junit] Testcase: testPagedWhereClause took 2.388 sec [junit] FAILED [junit] expected:<2> but was:<3> [junit] junit.framework.AssertionFailedError: expected:<2> but was:<3> [junit] at org.openbravo.test.webservice.WSReadTest.requestColumnPage(WSReadTest.java:105) [junit] at org.openbravo.test.webservice.WSReadTest.testPagedWhereClause(WSReadTest.java:88) [junit] at org.openbravo.test.base.BaseTest.runTest(BaseTest.java:166) [junit] [junit] Testcase: testAllToXML took 405.667 sec [junit] Testcase: testACreateCity took 0.563 sec [junit] Testcase: testReadUpdateCity took 0.774 sec [junit] FAILED [junit] null [junit] junit.framework.AssertionFailedError: null [junit] at org.openbravo.test.webservice.BaseWSTest.doContentRequest(BaseWSTest.java:127) [junit] at org.openbravo.test.webservice.WSUpdateTest.testReadUpdateCity(WSUpdateTest.java:89) [junit] at org.openbravo.test.base.BaseTest.runTest(BaseTest.java:166) [junit] [junit] Testcase: testIncorrectRootTag took 0.76 sec [junit] Testcase: testReadAddDeleteCity took 4.715 sec [junit] Testcase: testReadAddCityWrongMethodError took 0.754 sec [junit] Testcase: testZRemoveCity took 0.021 sec [junit] Testcase: testPerformance took 0.06 sec [junit] Test org.openbravo.test.AllWebserviceTests FAILED BUILD SUCCESSFUL Total time: 7 minutes 18 seconds