Building OFBiz with Jenkins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
41 messages Options
123
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
Ho , I guess I did not clean-all and load-demo before :/

Retrying...

Jacques

From: "Jacques Le Roux" <[hidden email]>

> I'm looking at it. It could be that port numbers are harcoded in tests code and would be issues there
> ...
> OK, in the meantime ran the tests, I got a lot of error here (locally on WinXP)
>
> example-testsuserLoginEntityXmlAssertFailureField [UserLogin.currentPassword] did not match; file value
> [{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
> [[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
>
> junit.framework.AssertionFailedError: Field [UserLogin.currentPassword] did not match; file value
> [{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
> [[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
> at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:89)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.016 facilitytestsinventory-tests.testGetInventoryAvailableByFacilityFailureAssertion failed: [quantityOnHandTotal=507] equals
> 509
> as BigDecimal
>
> junit.framework.AssertionFailedError: Assertion failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
>
> junit.framework.AssertionFailedError: Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.078 luceneteststestCreateIndexFailureexpected:<7> but was:<31>
>
> junit.framework.AssertionFailedError: expected:<7> but was:<31>
> at org.ofbiz.content.test.LuceneTests.testCreateIndex(LuceneTests.java:69)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 39.469 scrumtestsproductBacklog-tests.testUpdateProductBacklogByAdminFailureCan only update customer request, when status is
> in-process...is now: CRQ_CANCELLED
>
> junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.000 scrumtestsproductBacklog-tests.testUpdateProductBacklogByProductOwnerFailureCan only update customer request, when status is
> in-process...is now: CRQ_CANCELLED
>
> junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.000 scrumtestsscrumProject-tests.testCreateScrumProjectByProductOwnerFailureERROR: Could not complete the Create Work Effort
> [file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
> process [problem creating the newEntity value: Error while inserting:
> [GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID,
> CURRENT_STATUS_ID,
> LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE,
> WORK_EFFORT_NAME,
> SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
> ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
> ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
> TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
> RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
> RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
> CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
> CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have caused
> a
> duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
> 'WORK_EFFORT'.))]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Work Effort
> [file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
> process [problem creating the newEntity value: Error while inserting:
> [GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID,
> CURRENT_STATUS_ID,
> LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE,
> WORK_EFFORT_NAME,
> SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
> ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
> ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
> TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
> RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
> RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
> CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
> CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have caused
> a
> duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
> 'WORK_EFFORT'.))]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.562 scrumtestssprint-tests.testUpdateSprintByAdminFailureERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 2.250 scrumtestssprintBacklog-tests.testcreateSprintBacklogByAdminFailureERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.063 scrumtestssprintBacklog-tests.testcreateSprintBacklogByScrummasterFailureERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
> 12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
> 12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.000 servicetestsservice-xml-rpc-local-engineFailureFailed to read server's response: Connection refused: connect
>
> junit.framework.AssertionFailedError: Failed to read server's response: Connection refused: connect
> at org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:67)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
>
> Can't say more at the moment....
>
> Jacques
>
> From: "Jacopo Cappellato" <[hidden email]>
>> Pierre,
>>
>> you are right: I have two tests failing too.
>> May it be related to the changes to ports recently committed... I didn't have time to investigate.
>>
>> Jacopo
>>
>>
>> On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:
>>
>>> Hi Jacopo,
>>>
>>> Currently in my Jenkins environment following testsuites are failing:
>>>
>>>   1. bash -ex ./ant run-test-suite -Dtest.component=service
>>>   -Dtest.suiteName=servicetests - which seem to have to do with a port
>>>   already in use due to code:  public static final String url = "
>>>   http://localhost:8080/webtools/control/xmlrpc in
>>>   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>>   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
>>>   -Dtest.suiteName=webapptests - I haven't looked into this one yet.
>>>
>>>
>>> Regards,
>>>
>>> Pierre
>>>
>>>
>>>
>>>
>>>
>>> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
>>> [hidden email]> het volgende:
>>>
>>>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>>>
>>>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>>>  fails)
>>>>
>>>> Pierre, I don't know if it is useful but run-tests completes successfully
>>>> in my local box.
>>>>
>>>> Jacopo
>>>>
>>>>
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
In reply to this post by Jacques Le Roux
Jacques,

did you load demo data?

Jacopo

On Apr 10, 2012, at 4:30 PM, Jacques Le Roux wrote:

> I'm looking at it. It could be that port numbers are harcoded in tests code and would be issues there
> ...
> OK, in the meantime ran the tests, I got a lot of error here (locally on WinXP)
>
> example-testsuserLoginEntityXmlAssertFailureField [UserLogin.currentPassword] did not match; file value
> [{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
> [[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
>
> junit.framework.AssertionFailedError: Field [UserLogin.currentPassword] did not match; file value
> [{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
> [[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
> at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:89)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.016 facilitytestsinventory-tests.testGetInventoryAvailableByFacilityFailureAssertion failed: [quantityOnHandTotal=507] equals 509
> as BigDecimal
>
> junit.framework.AssertionFailedError: Assertion failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
>
> junit.framework.AssertionFailedError: Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.078 luceneteststestCreateIndexFailureexpected:<7> but was:<31>
>
> junit.framework.AssertionFailedError: expected:<7> but was:<31>
> at org.ofbiz.content.test.LuceneTests.testCreateIndex(LuceneTests.java:69)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 39.469 scrumtestsproductBacklog-tests.testUpdateProductBacklogByAdminFailureCan only update customer request, when status is
> in-process...is now: CRQ_CANCELLED
>
> junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.000 scrumtestsproductBacklog-tests.testUpdateProductBacklogByProductOwnerFailureCan only update customer request, when status is
> in-process...is now: CRQ_CANCELLED
>
> junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.000 scrumtestsscrumProject-tests.testCreateScrumProjectByProductOwnerFailureERROR: Could not complete the Create Work Effort
> [file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
> process [problem creating the newEntity value: Error while inserting:
> [GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID, CURRENT_STATUS_ID,
> LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE, WORK_EFFORT_NAME,
> SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
> ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
> ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
> TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
> RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
> RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
> CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
> CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have caused a
> duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
> 'WORK_EFFORT'.))]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Work Effort
> [file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
> process [problem creating the newEntity value: Error while inserting:
> [GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
> 16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
> (SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID, CURRENT_STATUS_ID,
> LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE, WORK_EFFORT_NAME,
> SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
> ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
> ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
> TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
> RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
> RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
> CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
> CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have caused a
> duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
> 'WORK_EFFORT'.))]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.562 scrumtestssprint-tests.testUpdateSprintByAdminFailureERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 2.250 scrumtestssprintBacklog-tests.testcreateSprintBacklogByAdminFailureERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.063 scrumtestssprintBacklog-tests.testcreateSprintBacklogByScrummasterFailureERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
> 12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>
> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
> 12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
> 12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.000 servicetestsservice-xml-rpc-local-engineFailureFailed to read server's response: Connection refused: connect
>
> junit.framework.AssertionFailedError: Failed to read server's response: Connection refused: connect
> at org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:67)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
>
> Can't say more at the moment....
>
> Jacques
>
> From: "Jacopo Cappellato" <[hidden email]>
>> Pierre,
>>
>> you are right: I have two tests failing too.
>> May it be related to the changes to ports recently committed... I didn't have time to investigate.
>>
>> Jacopo
>>
>>
>> On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:
>>
>>> Hi Jacopo,
>>>
>>> Currently in my Jenkins environment following testsuites are failing:
>>>
>>>  1. bash -ex ./ant run-test-suite -Dtest.component=service
>>>  -Dtest.suiteName=servicetests - which seem to have to do with a port
>>>  already in use due to code:  public static final String url = "
>>>  http://localhost:8080/webtools/control/xmlrpc in
>>>  framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>>  2. bash -ex ./ant run-test-suite -Dtest.component=webapp
>>>  -Dtest.suiteName=webapptests - I haven't looked into this one yet.
>>>
>>>
>>> Regards,
>>>
>>> Pierre
>>>
>>>
>>>
>>>
>>>
>>> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
>>> [hidden email]> het volgende:
>>>
>>>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>>>
>>>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>>> fails)
>>>>
>>>> Pierre, I don't know if it is useful but run-tests completes successfully
>>>> in my local box.
>>>>
>>>> Jacopo
>>>>
>>>>
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Only this one remains

servicetestsservice-xml-rpc-local-engineFailureFailed to read server's response: Connection refused: connect

junit.framework.AssertionFailedError: Failed to read server's response: Connection refused: connect
at org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:67)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)

HTH (port issue there?)

Jacques

From: "Jacques Le Roux" <[hidden email]>

> Ho , I guess I did not clean-all and load-demo before :/
>
> Retrying...
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>> I'm looking at it. It could be that port numbers are harcoded in tests code and would be issues there
>> ...
>> OK, in the meantime ran the tests, I got a lot of error here (locally on WinXP)
>>
>> example-testsuserLoginEntityXmlAssertFailureField [UserLogin.currentPassword] did not match; file value
>> [{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
>> [[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
>>
>> junit.framework.AssertionFailedError: Field [UserLogin.currentPassword] did not match; file value
>> [{SHA}47ca69ebb4bdc9ae0adec130880165d2cc05db1a], db value [{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a] pk
>> [[GenericEntity:UserLogin][userLoginId,admin(java.lang.String)]]
>> at org.ofbiz.testtools.EntityXmlAssertTest.run(EntityXmlAssertTest.java:89)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.016 facilitytestsinventory-tests.testGetInventoryAvailableByFacilityFailureAssertion failed: [quantityOnHandTotal=507] equals
>> 509
>> as BigDecimal
>>
>> junit.framework.AssertionFailedError: Assertion failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
>>
>> junit.framework.AssertionFailedError: Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.078 luceneteststestCreateIndexFailureexpected:<7> but was:<31>
>>
>> junit.framework.AssertionFailedError: expected:<7> but was:<31>
>> at org.ofbiz.content.test.LuceneTests.testCreateIndex(LuceneTests.java:69)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 39.469 scrumtestsproductBacklog-tests.testUpdateProductBacklogByAdminFailureCan only update customer request, when status is
>> in-process...is now: CRQ_CANCELLED
>>
>> junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.000 scrumtestsproductBacklog-tests.testUpdateProductBacklogByProductOwnerFailureCan only update customer request, when status
>> is
>> in-process...is now: CRQ_CANCELLED
>>
>> junit.framework.AssertionFailedError: Can only update customer request, when status is in-process...is now: CRQ_CANCELLED
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.000 scrumtestsscrumProject-tests.testCreateScrumProjectByProductOwnerFailureERROR: Could not complete the Create Work Effort
>> [file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
>> process [problem creating the newEntity value: Error while inserting:
>> [GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
>> (SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID,
>> CURRENT_STATUS_ID,
>> LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE,
>> WORK_EFFORT_NAME,
>> SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
>> ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
>> ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
>> TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
>> RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
>> RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
>> CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
>> CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
>> ?,
>> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have
>> caused a
>> duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
>> 'WORK_EFFORT'.))]
>>
>> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Work Effort
>> [file:/D:/workspace/ofbizClean/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml#createWorkEffort]
>> process [problem creating the newEntity value: Error while inserting:
>> [GenericEntity:WorkEffort][createdByUserLogin,system(java.lang.String)][createdDate,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][createdStamp,2012-04-10 16:09:35.421(java.sql.Timestamp)][createdTxStamp,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][currentStatusId,SPJ_ACTIVE(java.lang.String)][lastModifiedByUserLogin,system(java.lang.String)][lastModifiedDate,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][lastStatusUpdate,2012-04-10 16:09:35.421(java.sql.Timestamp)][lastUpdatedStamp,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-10
>> 16:09:35.421(java.sql.Timestamp)][revisionNumber,1(java.lang.Long)][workEffortId,TEST_WE_006(java.lang.String)][workEffortName,TEST_WEN06(java.lang.String)][workEffortTypeId,SCRUM_PROJECT(java.lang.String)]
>> (SQL Exception while executing the following:INSERT INTO OFBIZ.WORK_EFFORT (WORK_EFFORT_ID, WORK_EFFORT_TYPE_ID,
>> CURRENT_STATUS_ID,
>> LAST_STATUS_UPDATE, WORK_EFFORT_PURPOSE_TYPE_ID, WORK_EFFORT_PARENT_ID, SCOPE_ENUM_ID, PRIORITY, PERCENT_COMPLETE,
>> WORK_EFFORT_NAME,
>> SHOW_AS_ENUM_ID, SEND_NOTIFICATION_EMAIL, DESCRIPTION, LOCATION_DESC, ESTIMATED_START_DATE, ESTIMATED_COMPLETION_DATE,
>> ACTUAL_START_DATE, ACTUAL_COMPLETION_DATE, ESTIMATED_MILLI_SECONDS, ESTIMATED_SETUP_MILLIS, ESTIMATE_CALC_METHOD,
>> ACTUAL_MILLI_SECONDS, ACTUAL_SETUP_MILLIS, TOTAL_MILLI_SECONDS_ALLOWED, TOTAL_MONEY_ALLOWED, MONEY_UOM_ID, SPECIAL_TERMS,
>> TIME_TRANSPARENCY, UNIVERSAL_ID, SOURCE_REFERENCE_ID, FIXED_ASSET_ID, FACILITY_ID, INFO_URL, RECURRENCE_INFO_ID, TEMP_EXPR_ID,
>> RUNTIME_DATA_ID, NOTE_ID, SERVICE_LOADER_NAME, QUANTITY_TO_PRODUCE, QUANTITY_PRODUCED, QUANTITY_REJECTED, RESERV_PERSONS,
>> RESERV2ND_P_P_PERC, RESERV_NTH_P_P_PERC, ACCOMMODATION_MAP_ID, ACCOMMODATION_SPOT_ID, REVISION_NUMBER, CREATED_DATE,
>> CREATED_BY_USER_LOGIN, LAST_MODIFIED_DATE, LAST_MODIFIED_BY_USER_LOGIN, LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP,
>> CREATED_TX_STAMP, SEQUENCE_NUM) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
>> ?,
>> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (The statement was aborted because it would have
>> caused a
>> duplicate key value in a unique or primary key constraint or unique index identified by 'SQL120304122912870' defined on
>> 'WORK_EFFORT'.))]
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.562 scrumtestssprint-tests.testUpdateSprintByAdminFailureERROR: Could not complete the Create Sprint Backlog
>> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
>> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
>> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
>> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
>> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
>> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
>> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
>> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
>> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>>
>> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
>> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
>> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=10209,
>> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
>> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
>> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
>> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
>> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
>> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
>> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 2.250 scrumtestssprintBacklog-tests.testcreateSprintBacklogByAdminFailureERROR: Could not complete the Create Sprint Backlog
>> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
>> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
>> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
>> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
>> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
>> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
>> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
>> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
>> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>>
>> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
>> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
>> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
>> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:30:53.734(java.sql.Timestamp)][createdTxStamp,2012-03-04
>> 12:30:53.734(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,2012-04-02
>> 19:10:56.359(java.sql.Timestamp)][enabled,Y(java.lang.String)][externalAuthId,null()][hasLoggedOut,N(java.lang.String)][isSystem,null()][lastCurrencyUom,null()][lastLocale,en(java.lang.String)][lastTimeZone,null()][lastUpdatedStamp,2012-04-07
>> 12:58:31.734(java.sql.Timestamp)][lastUpdatedTxStamp,2012-04-07
>> 12:58:31.718(java.sql.Timestamp)][partyId,admin(java.lang.String)][passwordHint,Auto-Generated
>> Password(java.lang.String)][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,0(java.lang.Long)][userLdapDn,null()][userLoginId,admin(java.lang.String)],
>> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.063 scrumtestssprintBacklog-tests.testcreateSprintBacklogByScrummasterFailureERROR: Could not complete the Create Sprint
>> Backlog
>> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
>> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
>> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
>> 12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
>> 12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
>> 12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
>> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>>
>> junit.framework.AssertionFailedError: ERROR: Could not complete the Create Sprint Backlog
>> [file:/D:/workspace/ofbizClean/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml#createSprintBacklog] process [problem
>> invoking the [createWorkEffortRequest] service with the map named [sprintBL] containing [{workEffortId=DEMO-SPRINT-1,
>> userLogin=[GenericEntity:UserLogin][createdStamp,2012-03-04 12:31:46.71(java.sql.Timestamp)][createdTxStamp,2012-03-04
>> 12:31:46.515(java.sql.Timestamp)][currentPassword,{SHA}47b56994cbc2b6d10aa1be30f70165adb305a41a(java.lang.String)][disabledDateTime,null()][enabled,null()][externalAuthId,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastTimeZone,null()][lastUpdatedStamp,2012-03-04
>> 12:31:46.71(java.sql.Timestamp)][lastUpdatedTxStamp,2012-03-04
>> 12:31:46.515(java.sql.Timestamp)][partyId,SCRUMASTER(java.lang.String)][passwordHint,null()][requirePasswordChange,N(java.lang.String)][successiveFailedLogins,null()][userLdapDn,null()][userLoginId,scrummaster(java.lang.String)],
>> locale=en}]: The following required parameter is missing: [IN] [createWorkEffortRequest.custRequestId]]
>> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:93)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 0.000 servicetestsservice-xml-rpc-local-engineFailureFailed to read server's response: Connection refused: connect
>>
>> junit.framework.AssertionFailedError: Failed to read server's response: Connection refused: connect
>> at org.ofbiz.testtools.ServiceTest.run(ServiceTest.java:67)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>
>> Can't say more at the moment....
>>
>> Jacques
>>
>> From: "Jacopo Cappellato" <[hidden email]>
>>> Pierre,
>>>
>>> you are right: I have two tests failing too.
>>> May it be related to the changes to ports recently committed... I didn't have time to investigate.
>>>
>>> Jacopo
>>>
>>>
>>> On Apr 10, 2012, at 12:22 PM, Pierre Smits wrote:
>>>
>>>> Hi Jacopo,
>>>>
>>>> Currently in my Jenkins environment following testsuites are failing:
>>>>
>>>>   1. bash -ex ./ant run-test-suite -Dtest.component=service
>>>>   -Dtest.suiteName=servicetests - which seem to have to do with a port
>>>>   already in use due to code:  public static final String url = "
>>>>   http://localhost:8080/webtools/control/xmlrpc in
>>>>   framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>>>   2. bash -ex ./ant run-test-suite -Dtest.component=webapp
>>>>   -Dtest.suiteName=webapptests - I haven't looked into this one yet.
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Pierre
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Op 8 april 2012 20:11 schreef Jacopo Cappellato <
>>>> [hidden email]> het volgende:
>>>>
>>>>> On Apr 8, 2012, at 4:30 PM, Pierre Smits wrote:
>>>>>
>>>>>> 4. Do ant target "run-tests" (fails - see below - triggers 5 even when
>>>>>>  fails)
>>>>>
>>>>> Pierre, I don't know if it is useful but run-tests completes successfully
>>>>> in my local box.
>>>>>
>>>>> Jacopo
>>>>>
>>>>>
>>>
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
yes, I think so

Jacopo

On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:

> HTH (port issue there?)

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
In reply to this post by Jacques Le Roux

On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:

> Only this one remains

Jacques, I didn't see any commit yet

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo

Jacques

From: "Jacopo Cappellato" <[hidden email]>
> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>
>> Only this one remains
>
> Jacques, I didn't see any commit yet
>
> Jacopo
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
ah I see... it is strange that you get just one test that is failing

Jacopo

On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:

> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>
> Jacques
>
> From: "Jacopo Cappellato" <[hidden email]>
>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>> Only this one remains
>> Jacques, I didn't see any commit yet
>> Jacopo
>>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess

serviceteststestSOAPSimpleServiceErrorService did not return expected result

org.ofbiz.service.GenericServiceException: Service did not return expected result
at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
19.563 serviceteststestSOAPServiceErrorService did not return expected result

org.ofbiz.service.GenericServiceException: Service did not return expected result
at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect

org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
Caused by:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)

Jacques


From: "Jacopo Cappellato" <[hidden email]>

> ah I see... it is strange that you get just one test that is failing
>
> Jacopo
>
> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>
>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>
>> Jacques
>>
>> From: "Jacopo Cappellato" <[hidden email]>
>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>> Only this one remains
>>> Jacques, I didn't see any commit yet
>>> Jacopo
>>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
Jacques,

what a mess... I think we need to be more accurate here.

The tests are failing since your commit 1311214 with the new test port numbers; I didn't follow the details and so I don't know exactly your reasoning behind this change and most of all why it was urgent.
However, the changes below fixes the tests (but of course they cannot be committed in this form):

Index: framework/common/servicedef/services_test.xml
===================================================================
--- framework/common/servicedef/services_test.xml (revision 1311693)
+++ framework/common/servicedef/services_test.xml (working copy)
@@ -83,20 +83,20 @@
     <service name="groupTest" engine="group" location="testGroup" invoke=""/>
 
     <service name="testHttp" engine="http"
-            location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
+            location="http://localhost:8081/webtools/control/httpService" invoke="testScv">
         <description>HTTP service wrapper around the test service</description>
         <attribute name="message" type="String" mode="IN" optional="true"/>
         <attribute name="resp" type="String" mode="OUT"/>
     </service>
 
     <service name="testSoap" engine="soap" export="true"
-            location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
+            location="http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
         <description>SOAP service; calls the OFBiz test SOAP service</description>
         <implements service="testSOAPScv"/>
     </service>
     
     <service name="testSoapSimple" engine="soap" export="true"
-            location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
+            location="http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
         <description>simple SOAP service; calls the OFBiz test service</description>
         <implements service="testScv"/>
     </service>
Index: framework/service/config/serviceengine.xml
===================================================================
--- framework/service/config/serviceengine.xml (revision 1311693)
+++ framework/service/config/serviceengine.xml (working copy)
@@ -63,7 +63,7 @@
         <engine name="ofbiz-workflow" class="org.ofbiz.workflow.WorkflowEngine"/>
         <engine name="workflow" class="org.ofbiz.shark.service.SharkServiceEngine"/>
         <engine name="xml-rpc-local" class="org.ofbiz.service.engine.XMLRPCClientEngine">
-            <parameter name="url" value="http://localhost:8080/webtools/control/xmlrpc"/>
+            <parameter name="url" value="http://localhost:8081/webtools/control/xmlrpc"/>
             <parameter name="login" value="admin"/>
             <parameter name="password" value="ofbiz"/>
         </engine>
Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
===================================================================
--- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (revision 1311693)
+++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (working copy)
@@ -37,7 +37,7 @@
 
     public static final String module = XmlRpcTests.class.getName();
     public static final String resource = "ServiceErrorUiLabels";
-    public static final String url = "http://localhost:8080/webtools/control/xmlrpc";
+    public static final String url = "http://localhost:8081/webtools/control/xmlrpc";
 
     public XmlRpcTests(String name) {
         super(name);


I am not sure how to implement properly the above changes... What if we revert your commit in the meantime?

Jacopo



On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:

> You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess
>
> serviceteststestSOAPSimpleServiceErrorService did not return expected result
>
> org.ofbiz.service.GenericServiceException: Service did not return expected result
> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 19.563 serviceteststestSOAPServiceErrorService did not return expected result
>
> org.ofbiz.service.GenericServiceException: Service did not return expected result
> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect
>
> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:529)
> at java.net.Socket.connect(Socket.java:478)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
> Caused by:
> java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:529)
> at java.net.Socket.connect(Socket.java:478)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
>
> Jacques
>
>
> From: "Jacopo Cappellato" <[hidden email]>
>> ah I see... it is strange that you get just one test that is failing
>> Jacopo
>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>> Jacques
>>> From: "Jacopo Cappellato" <[hidden email]>
>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>> Only this one remains
>>>> Jacques, I didn't see any commit yet
>>>> Jacopo
>>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
Actually, I am reviewing the changes I did and I may be able to commit them and fix the tests.

Jacopo

On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:

> Jacques,
>
> what a mess... I think we need to be more accurate here.
>
> The tests are failing since your commit 1311214 with the new test port numbers; I didn't follow the details and so I don't know exactly your reasoning behind this change and most of all why it was urgent.
> However, the changes below fixes the tests (but of course they cannot be committed in this form):
>
> Index: framework/common/servicedef/services_test.xml
> ===================================================================
> --- framework/common/servicedef/services_test.xml (revision 1311693)
> +++ framework/common/servicedef/services_test.xml (working copy)
> @@ -83,20 +83,20 @@
>     <service name="groupTest" engine="group" location="testGroup" invoke=""/>
>
>     <service name="testHttp" engine="http"
> -            location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
> +            location="http://localhost:8081/webtools/control/httpService" invoke="testScv">
>         <description>HTTP service wrapper around the test service</description>
>         <attribute name="message" type="String" mode="IN" optional="true"/>
>         <attribute name="resp" type="String" mode="OUT"/>
>     </service>
>
>     <service name="testSoap" engine="soap" export="true"
> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>         <description>SOAP service; calls the OFBiz test SOAP service</description>
>         <implements service="testSOAPScv"/>
>     </service>
>
>     <service name="testSoapSimple" engine="soap" export="true"
> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>         <description>simple SOAP service; calls the OFBiz test service</description>
>         <implements service="testScv"/>
>     </service>
> Index: framework/service/config/serviceengine.xml
> ===================================================================
> --- framework/service/config/serviceengine.xml (revision 1311693)
> +++ framework/service/config/serviceengine.xml (working copy)
> @@ -63,7 +63,7 @@
>         <engine name="ofbiz-workflow" class="org.ofbiz.workflow.WorkflowEngine"/>
>         <engine name="workflow" class="org.ofbiz.shark.service.SharkServiceEngine"/>
>         <engine name="xml-rpc-local" class="org.ofbiz.service.engine.XMLRPCClientEngine">
> -            <parameter name="url" value="http://localhost:8080/webtools/control/xmlrpc"/>
> +            <parameter name="url" value="http://localhost:8081/webtools/control/xmlrpc"/>
>             <parameter name="login" value="admin"/>
>             <parameter name="password" value="ofbiz"/>
>         </engine>
> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
> ===================================================================
> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (revision 1311693)
> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (working copy)
> @@ -37,7 +37,7 @@
>
>     public static final String module = XmlRpcTests.class.getName();
>     public static final String resource = "ServiceErrorUiLabels";
> -    public static final String url = "http://localhost:8080/webtools/control/xmlrpc";
> +    public static final String url = "http://localhost:8081/webtools/control/xmlrpc";
>
>     public XmlRpcTests(String name) {
>         super(name);
>
>
> I am not sure how to implement properly the above changes... What if we revert your commit in the meantime?
>
> Jacopo
>
>
>
> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>
>> You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess
>>
>> serviceteststestSOAPSimpleServiceErrorService did not return expected result
>>
>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 19.563 serviceteststestSOAPServiceErrorService did not return expected result
>>
>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect
>>
>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>> Caused by: java.net.ConnectException: Connection refused: connect
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>> at java.net.Socket.connect(Socket.java:529)
>> at java.net.Socket.connect(Socket.java:478)
>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>> Caused by:
>> java.net.ConnectException: Connection refused: connect
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>> at java.net.Socket.connect(Socket.java:529)
>> at java.net.Socket.connect(Socket.java:478)
>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>> at org.ofbiz.base.start.Start.start(Start.java:289)
>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>
>> Jacques
>>
>>
>> From: "Jacopo Cappellato" <[hidden email]>
>>> ah I see... it is strange that you get just one test that is failing
>>> Jacopo
>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>>> Jacques
>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>> Only this one remains
>>>>> Jacques, I didn't see any commit yet
>>>>> Jacopo
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
I have committed my changes in rev. 1324614.
Now the tests should all pass.

Jacopo

On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:

> Actually, I am reviewing the changes I did and I may be able to commit them and fix the tests.
>
> Jacopo
>
> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>
>> Jacques,
>>
>> what a mess... I think we need to be more accurate here.
>>
>> The tests are failing since your commit 1311214 with the new test port numbers; I didn't follow the details and so I don't know exactly your reasoning behind this change and most of all why it was urgent.
>> However, the changes below fixes the tests (but of course they cannot be committed in this form):
>>
>> Index: framework/common/servicedef/services_test.xml
>> ===================================================================
>> --- framework/common/servicedef/services_test.xml (revision 1311693)
>> +++ framework/common/servicedef/services_test.xml (working copy)
>> @@ -83,20 +83,20 @@
>>    <service name="groupTest" engine="group" location="testGroup" invoke=""/>
>>
>>    <service name="testHttp" engine="http"
>> -            location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
>> +            location="http://localhost:8081/webtools/control/httpService" invoke="testScv">
>>        <description>HTTP service wrapper around the test service</description>
>>        <attribute name="message" type="String" mode="IN" optional="true"/>
>>        <attribute name="resp" type="String" mode="OUT"/>
>>    </service>
>>
>>    <service name="testSoap" engine="soap" export="true"
>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>>        <description>SOAP service; calls the OFBiz test SOAP service</description>
>>        <implements service="testSOAPScv"/>
>>    </service>
>>
>>    <service name="testSoapSimple" engine="soap" export="true"
>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>>        <description>simple SOAP service; calls the OFBiz test service</description>
>>        <implements service="testScv"/>
>>    </service>
>> Index: framework/service/config/serviceengine.xml
>> ===================================================================
>> --- framework/service/config/serviceengine.xml (revision 1311693)
>> +++ framework/service/config/serviceengine.xml (working copy)
>> @@ -63,7 +63,7 @@
>>        <engine name="ofbiz-workflow" class="org.ofbiz.workflow.WorkflowEngine"/>
>>        <engine name="workflow" class="org.ofbiz.shark.service.SharkServiceEngine"/>
>>        <engine name="xml-rpc-local" class="org.ofbiz.service.engine.XMLRPCClientEngine">
>> -            <parameter name="url" value="http://localhost:8080/webtools/control/xmlrpc"/>
>> +            <parameter name="url" value="http://localhost:8081/webtools/control/xmlrpc"/>
>>            <parameter name="login" value="admin"/>
>>            <parameter name="password" value="ofbiz"/>
>>        </engine>
>> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>> ===================================================================
>> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (revision 1311693)
>> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (working copy)
>> @@ -37,7 +37,7 @@
>>
>>    public static final String module = XmlRpcTests.class.getName();
>>    public static final String resource = "ServiceErrorUiLabels";
>> -    public static final String url = "http://localhost:8080/webtools/control/xmlrpc";
>> +    public static final String url = "http://localhost:8081/webtools/control/xmlrpc";
>>
>>    public XmlRpcTests(String name) {
>>        super(name);
>>
>>
>> I am not sure how to implement properly the above changes... What if we revert your commit in the meantime?
>>
>> Jacopo
>>
>>
>>
>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>
>>> You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess
>>>
>>> serviceteststestSOAPSimpleServiceErrorService did not return expected result
>>>
>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>> 19.563 serviceteststestSOAPServiceErrorService did not return expected result
>>>
>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect
>>>
>>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>> Caused by: java.net.ConnectException: Connection refused: connect
>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>> at java.net.Socket.connect(Socket.java:529)
>>> at java.net.Socket.connect(Socket.java:478)
>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>> Caused by:
>>> java.net.ConnectException: Connection refused: connect
>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>> at java.net.Socket.connect(Socket.java:529)
>>> at java.net.Socket.connect(Socket.java:478)
>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>
>>> Jacques
>>>
>>>
>>> From: "Jacopo Cappellato" <[hidden email]>
>>>> ah I see... it is strange that you get just one test that is failing
>>>> Jacopo
>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>>>> Jacques
>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>> Only this one remains
>>>>>> Jacques, I didn't see any commit yet
>>>>>> Jacopo
>>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
Thanks, I have asked infra about Buildbot again this morning, begins to be long...

Jacques

From: "Jacopo Cappellato" <[hidden email]>

>I have committed my changes in rev. 1324614.
> Now the tests should all pass.
>
> Jacopo
>
> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>
>> Actually, I am reviewing the changes I did and I may be able to commit them and fix the tests.
>>
>> Jacopo
>>
>> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>>
>>> Jacques,
>>>
>>> what a mess... I think we need to be more accurate here.
>>>
>>> The tests are failing since your commit 1311214 with the new test port numbers; I didn't follow the details and so I don't know
>>> exactly your reasoning behind this change and most of all why it was urgent.
>>> However, the changes below fixes the tests (but of course they cannot be committed in this form):
>>>
>>> Index: framework/common/servicedef/services_test.xml
>>> ===================================================================
>>> --- framework/common/servicedef/services_test.xml (revision 1311693)
>>> +++ framework/common/servicedef/services_test.xml (working copy)
>>> @@ -83,20 +83,20 @@
>>>    <service name="groupTest" engine="group" location="testGroup" invoke=""/>
>>>
>>>    <service name="testHttp" engine="http"
>>> -            location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
>>> +            location="http://localhost:8081/webtools/control/httpService" invoke="testScv">
>>>        <description>HTTP service wrapper around the test service</description>
>>>        <attribute name="message" type="String" mode="IN" optional="true"/>
>>>        <attribute name="resp" type="String" mode="OUT"/>
>>>    </service>
>>>
>>>    <service name="testSoap" engine="soap" export="true"
>>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
>>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>>>        <description>SOAP service; calls the OFBiz test SOAP service</description>
>>>        <implements service="testSOAPScv"/>
>>>    </service>
>>>
>>>    <service name="testSoapSimple" engine="soap" export="true"
>>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
>>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>>>        <description>simple SOAP service; calls the OFBiz test service</description>
>>>        <implements service="testScv"/>
>>>    </service>
>>> Index: framework/service/config/serviceengine.xml
>>> ===================================================================
>>> --- framework/service/config/serviceengine.xml (revision 1311693)
>>> +++ framework/service/config/serviceengine.xml (working copy)
>>> @@ -63,7 +63,7 @@
>>>        <engine name="ofbiz-workflow" class="org.ofbiz.workflow.WorkflowEngine"/>
>>>        <engine name="workflow" class="org.ofbiz.shark.service.SharkServiceEngine"/>
>>>        <engine name="xml-rpc-local" class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>> -            <parameter name="url" value="http://localhost:8080/webtools/control/xmlrpc"/>
>>> +            <parameter name="url" value="http://localhost:8081/webtools/control/xmlrpc"/>
>>>            <parameter name="login" value="admin"/>
>>>            <parameter name="password" value="ofbiz"/>
>>>        </engine>
>>> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>> ===================================================================
>>> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (revision 1311693)
>>> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (working copy)
>>> @@ -37,7 +37,7 @@
>>>
>>>    public static final String module = XmlRpcTests.class.getName();
>>>    public static final String resource = "ServiceErrorUiLabels";
>>> -    public static final String url = "http://localhost:8080/webtools/control/xmlrpc";
>>> +    public static final String url = "http://localhost:8081/webtools/control/xmlrpc";
>>>
>>>    public XmlRpcTests(String name) {
>>>        super(name);
>>>
>>>
>>> I am not sure how to implement properly the above changes... What if we revert your commit in the meantime?
>>>
>>> Jacopo
>>>
>>>
>>>
>>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>>
>>>> You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess
>>>>
>>>> serviceteststestSOAPSimpleServiceErrorService did not return expected result
>>>>
>>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>> 19.563 serviceteststestSOAPServiceErrorService did not return expected result
>>>>
>>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect
>>>>
>>>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>> at java.net.Socket.connect(Socket.java:529)
>>>> at java.net.Socket.connect(Socket.java:478)
>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>> Caused by:
>>>> java.net.ConnectException: Connection refused: connect
>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>> at java.net.Socket.connect(Socket.java:529)
>>>> at java.net.Socket.connect(Socket.java:478)
>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>
>>>> Jacques
>>>>
>>>>
>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>> ah I see... it is strange that you get just one test that is failing
>>>>> Jacopo
>>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>>>>> Jacques
>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>>> Only this one remains
>>>>>>> Jacques, I didn't see any commit yet
>>>>>>> Jacopo
>>>>>
>>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
In reply to this post by Jacopo Cappellato-4
Hi Jacopo,

When running following:
sudo ./ant run-test-suite -Dtest.component=service
-Dtest.suiteName=servicetests

I get:
/Users/s0001/Documents/workspace/ofbiz-trunk/build.xml:954: test.suiteName
is a required parameter: -Dtest.suiteName=testsuitename

and it fails

Test ran fine yesterday (exept for the port issue)

Regards,

Pierre


Op 11 april 2012 09:58 schreef Jacopo Cappellato <
[hidden email]> het volgende:

> I have committed my changes in rev. 1324614.
> Now the tests should all pass.
>
> Jacopo
>
> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>
> > Actually, I am reviewing the changes I did and I may be able to commit
> them and fix the tests.
> >
> > Jacopo
> >
> > On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
> >
> >> Jacques,
> >>
> >> what a mess... I think we need to be more accurate here.
> >>
> >> The tests are failing since your commit 1311214 with the new test port
> numbers; I didn't follow the details and so I don't know exactly your
> reasoning behind this change and most of all why it was urgent.
> >> However, the changes below fixes the tests (but of course they cannot
> be committed in this form):
> >>
> >> Index: framework/common/servicedef/services_test.xml
> >> ===================================================================
> >> --- framework/common/servicedef/services_test.xml    (revision 1311693)
> >> +++ framework/common/servicedef/services_test.xml    (working copy)
> >> @@ -83,20 +83,20 @@
> >>    <service name="groupTest" engine="group" location="testGroup"
> invoke=""/>
> >>
> >>    <service name="testHttp" engine="http"
> >> -            location="
> http://localhost:8080/webtools/control/httpService" invoke="testScv">
> >> +            location="
> http://localhost:8081/webtools/control/httpService" invoke="testScv">
> >>        <description>HTTP service wrapper around the test
> service</description>
> >>        <attribute name="message" type="String" mode="IN"
> optional="true"/>
> >>        <attribute name="resp" type="String" mode="OUT"/>
> >>    </service>
> >>
> >>    <service name="testSoap" engine="soap" export="true"
> >> -            location="
> http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
> >> +            location="
> http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
> >>        <description>SOAP service; calls the OFBiz test SOAP
> service</description>
> >>        <implements service="testSOAPScv"/>
> >>    </service>
> >>
> >>    <service name="testSoapSimple" engine="soap" export="true"
> >> -            location="
> http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
> >> +            location="
> http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
> >>        <description>simple SOAP service; calls the OFBiz test
> service</description>
> >>        <implements service="testScv"/>
> >>    </service>
> >> Index: framework/service/config/serviceengine.xml
> >> ===================================================================
> >> --- framework/service/config/serviceengine.xml       (revision 1311693)
> >> +++ framework/service/config/serviceengine.xml       (working copy)
> >> @@ -63,7 +63,7 @@
> >>        <engine name="ofbiz-workflow"
> class="org.ofbiz.workflow.WorkflowEngine"/>
> >>        <engine name="workflow"
> class="org.ofbiz.shark.service.SharkServiceEngine"/>
> >>        <engine name="xml-rpc-local"
> class="org.ofbiz.service.engine.XMLRPCClientEngine">
> >> -            <parameter name="url" value="
> http://localhost:8080/webtools/control/xmlrpc"/>
> >> +            <parameter name="url" value="
> http://localhost:8081/webtools/control/xmlrpc"/>
> >>            <parameter name="login" value="admin"/>
> >>            <parameter name="password" value="ofbiz"/>
> >>        </engine>
> >> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
> >> ===================================================================
> >> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>  (revision 1311693)
> >> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>  (working copy)
> >> @@ -37,7 +37,7 @@
> >>
> >>    public static final String module = XmlRpcTests.class.getName();
> >>    public static final String resource = "ServiceErrorUiLabels";
> >> -    public static final String url = "
> http://localhost:8080/webtools/control/xmlrpc";
> >> +    public static final String url = "
> http://localhost:8081/webtools/control/xmlrpc";
> >>
> >>    public XmlRpcTests(String name) {
> >>        super(name);
> >>
> >>
> >> I am not sure how to implement properly the above changes... What if we
> revert your commit in the meantime?
> >>
> >> Jacopo
> >>
> >>
> >>
> >> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
> >>
> >>> You are right, this was only a failure. Hastily, I missed also 3
> errors, same reason I guess
> >>>
> >>> serviceteststestSOAPSimpleServiceErrorService did not return expected
> result
> >>>
> >>> org.ofbiz.service.GenericServiceException: Service did not return
> expected result
> >>> at
> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
> >>> at
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
> >>> at
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
> >>> at
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
> >>> at
> org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
> >>> at
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> >>> at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> >>> at org.ofbiz.base.start.Start.start(Start.java:289)
> >>> at org.ofbiz.base.start.Start.main(Start.java:119)
> >>> 19.563 serviceteststestSOAPServiceErrorService did not return expected
> result
> >>>
> >>> org.ofbiz.service.GenericServiceException: Service did not return
> expected result
> >>> at
> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
> >>> at
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
> >>> at
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
> >>> at
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
> >>> at
> org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
> >>> at
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> >>> at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> >>> at org.ofbiz.base.start.Start.start(Start.java:289)
> >>> at org.ofbiz.base.start.Start.main(Start.java:119)
> >>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's
> response: Connection refused: connect
> >>>
> >>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
> Connection refused: connect
> >>> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
> >>> at
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
> >>> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
> >>> at
> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
> >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> >>> at
> org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
> >>> at
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> >>> at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> >>> at org.ofbiz.base.start.Start.start(Start.java:289)
> >>> at org.ofbiz.base.start.Start.main(Start.java:119)
> >>> Caused by: java.net.ConnectException: Connection refused: connect
> >>> at java.net.PlainSocketImpl.socketConnect(Native Method)
> >>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >>> at java.net.Socket.connect(Socket.java:529)
> >>> at java.net.Socket.connect(Socket.java:478)
> >>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> >>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> >>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> >>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
> >>> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
> >>> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
> >>> Caused by:
> >>> java.net.ConnectException: Connection refused: connect
> >>> at java.net.PlainSocketImpl.socketConnect(Native Method)
> >>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> >>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> >>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> >>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> >>> at java.net.Socket.connect(Socket.java:529)
> >>> at java.net.Socket.connect(Socket.java:478)
> >>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> >>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> >>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
> >>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> >>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
> >>> at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
> >>> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
> >>> at
> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
> >>> at
> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
> >>> at
> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
> >>> at
> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
> >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
> >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
> >>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
> >>> at
> org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
> >>> at
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> >>> at
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> >>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> >>> at org.ofbiz.base.start.Start.start(Start.java:289)
> >>> at org.ofbiz.base.start.Start.main(Start.java:119)
> >>>
> >>> Jacques
> >>>
> >>>
> >>> From: "Jacopo Cappellato" <[hidden email]>
> >>>> ah I see... it is strange that you get just one test that is failing
> >>>> Jacopo
> >>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
> >>>>> I did not commit anything, as I said in a previous email (and you
> pointed out also) I forgot to an clean-all load-demo
> >>>>> Jacques
> >>>>> From: "Jacopo Cappellato" <[hidden email]>
> >>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
> >>>>>>> Only this one remains
> >>>>>> Jacques, I didn't see any commit yet
> >>>>>> Jacopo
> >>>>
> >>
> >
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
In reply to this post by Jacopo Cappellato-4
With >ant run load-demo run-tests

I have now only those failed on XP

facilitytestsinventory-tests.testGetInventoryAvailableByFacilityFailureAssertion failed: [quantityOnHandTotal=507] equals 509 as
BigDecimal

junit.framework.AssertionFailedError: Assertion failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal

junit.framework.AssertionFailedError: Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)
0.078 luceneteststestCreateIndexFailureexpected:<7> but was:<16>

junit.framework.AssertionFailedError: expected:<7> but was:<16>
at org.ofbiz.content.test.LuceneTests.testCreateIndex(LuceneTests.java:69)
at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
at org.ofbiz.base.start.Start.start(Start.java:289)
at org.ofbiz.base.start.Start.main(Start.java:119)

For what it's worth...

Jacques
PS: maybe I should have cleaned-all before, I will retry

From: "Jacopo Cappellato" <[hidden email]>

>I have committed my changes in rev. 1324614.
> Now the tests should all pass.
>
> Jacopo
>
> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>
>> Actually, I am reviewing the changes I did and I may be able to commit them and fix the tests.
>>
>> Jacopo
>>
>> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>>
>>> Jacques,
>>>
>>> what a mess... I think we need to be more accurate here.
>>>
>>> The tests are failing since your commit 1311214 with the new test port numbers; I didn't follow the details and so I don't know
>>> exactly your reasoning behind this change and most of all why it was urgent.
>>> However, the changes below fixes the tests (but of course they cannot be committed in this form):
>>>
>>> Index: framework/common/servicedef/services_test.xml
>>> ===================================================================
>>> --- framework/common/servicedef/services_test.xml (revision 1311693)
>>> +++ framework/common/servicedef/services_test.xml (working copy)
>>> @@ -83,20 +83,20 @@
>>>    <service name="groupTest" engine="group" location="testGroup" invoke=""/>
>>>
>>>    <service name="testHttp" engine="http"
>>> -            location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
>>> +            location="http://localhost:8081/webtools/control/httpService" invoke="testScv">
>>>        <description>HTTP service wrapper around the test service</description>
>>>        <attribute name="message" type="String" mode="IN" optional="true"/>
>>>        <attribute name="resp" type="String" mode="OUT"/>
>>>    </service>
>>>
>>>    <service name="testSoap" engine="soap" export="true"
>>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
>>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>>>        <description>SOAP service; calls the OFBiz test SOAP service</description>
>>>        <implements service="testSOAPScv"/>
>>>    </service>
>>>
>>>    <service name="testSoapSimple" engine="soap" export="true"
>>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
>>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>>>        <description>simple SOAP service; calls the OFBiz test service</description>
>>>        <implements service="testScv"/>
>>>    </service>
>>> Index: framework/service/config/serviceengine.xml
>>> ===================================================================
>>> --- framework/service/config/serviceengine.xml (revision 1311693)
>>> +++ framework/service/config/serviceengine.xml (working copy)
>>> @@ -63,7 +63,7 @@
>>>        <engine name="ofbiz-workflow" class="org.ofbiz.workflow.WorkflowEngine"/>
>>>        <engine name="workflow" class="org.ofbiz.shark.service.SharkServiceEngine"/>
>>>        <engine name="xml-rpc-local" class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>> -            <parameter name="url" value="http://localhost:8080/webtools/control/xmlrpc"/>
>>> +            <parameter name="url" value="http://localhost:8081/webtools/control/xmlrpc"/>
>>>            <parameter name="login" value="admin"/>
>>>            <parameter name="password" value="ofbiz"/>
>>>        </engine>
>>> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>> ===================================================================
>>> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (revision 1311693)
>>> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (working copy)
>>> @@ -37,7 +37,7 @@
>>>
>>>    public static final String module = XmlRpcTests.class.getName();
>>>    public static final String resource = "ServiceErrorUiLabels";
>>> -    public static final String url = "http://localhost:8080/webtools/control/xmlrpc";
>>> +    public static final String url = "http://localhost:8081/webtools/control/xmlrpc";
>>>
>>>    public XmlRpcTests(String name) {
>>>        super(name);
>>>
>>>
>>> I am not sure how to implement properly the above changes... What if we revert your commit in the meantime?
>>>
>>> Jacopo
>>>
>>>
>>>
>>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>>
>>>> You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess
>>>>
>>>> serviceteststestSOAPSimpleServiceErrorService did not return expected result
>>>>
>>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>> 19.563 serviceteststestSOAPServiceErrorService did not return expected result
>>>>
>>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect
>>>>
>>>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>> at java.net.Socket.connect(Socket.java:529)
>>>> at java.net.Socket.connect(Socket.java:478)
>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>> Caused by:
>>>> java.net.ConnectException: Connection refused: connect
>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>> at java.net.Socket.connect(Socket.java:529)
>>>> at java.net.Socket.connect(Socket.java:478)
>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>
>>>> Jacques
>>>>
>>>>
>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>> ah I see... it is strange that you get just one test that is failing
>>>>> Jacopo
>>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>>>>> Jacques
>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>>> Only this one remains
>>>>>>> Jacques, I didn't see any commit yet
>>>>>>> Jacopo
>>>>>
>>>
>>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
In reply to this post by Pierre Smits
ooops... let me check quickly and I will let you know

Jacopo

On Apr 11, 2012, at 11:48 AM, Pierre Smits wrote:

> Hi Jacopo,
>
> When running following:
> sudo ./ant run-test-suite -Dtest.component=service
> -Dtest.suiteName=servicetests
>
> I get:
> /Users/s0001/Documents/workspace/ofbiz-trunk/build.xml:954: test.suiteName
> is a required parameter: -Dtest.suiteName=testsuitename
>
> and it fails
>
> Test ran fine yesterday (exept for the port issue)
>
> Regards,
>
> Pierre
>
>
> Op 11 april 2012 09:58 schreef Jacopo Cappellato <
> [hidden email]> het volgende:
>
>> I have committed my changes in rev. 1324614.
>> Now the tests should all pass.
>>
>> Jacopo
>>
>> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>>
>>> Actually, I am reviewing the changes I did and I may be able to commit
>> them and fix the tests.
>>>
>>> Jacopo
>>>
>>> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>>>
>>>> Jacques,
>>>>
>>>> what a mess... I think we need to be more accurate here.
>>>>
>>>> The tests are failing since your commit 1311214 with the new test port
>> numbers; I didn't follow the details and so I don't know exactly your
>> reasoning behind this change and most of all why it was urgent.
>>>> However, the changes below fixes the tests (but of course they cannot
>> be committed in this form):
>>>>
>>>> Index: framework/common/servicedef/services_test.xml
>>>> ===================================================================
>>>> --- framework/common/servicedef/services_test.xml    (revision 1311693)
>>>> +++ framework/common/servicedef/services_test.xml    (working copy)
>>>> @@ -83,20 +83,20 @@
>>>>   <service name="groupTest" engine="group" location="testGroup"
>> invoke=""/>
>>>>
>>>>   <service name="testHttp" engine="http"
>>>> -            location="
>> http://localhost:8080/webtools/control/httpService" invoke="testScv">
>>>> +            location="
>> http://localhost:8081/webtools/control/httpService" invoke="testScv">
>>>>       <description>HTTP service wrapper around the test
>> service</description>
>>>>       <attribute name="message" type="String" mode="IN"
>> optional="true"/>
>>>>       <attribute name="resp" type="String" mode="OUT"/>
>>>>   </service>
>>>>
>>>>   <service name="testSoap" engine="soap" export="true"
>>>> -            location="
>> http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
>>>> +            location="
>> http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>>>>       <description>SOAP service; calls the OFBiz test SOAP
>> service</description>
>>>>       <implements service="testSOAPScv"/>
>>>>   </service>
>>>>
>>>>   <service name="testSoapSimple" engine="soap" export="true"
>>>> -            location="
>> http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
>>>> +            location="
>> http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>>>>       <description>simple SOAP service; calls the OFBiz test
>> service</description>
>>>>       <implements service="testScv"/>
>>>>   </service>
>>>> Index: framework/service/config/serviceengine.xml
>>>> ===================================================================
>>>> --- framework/service/config/serviceengine.xml       (revision 1311693)
>>>> +++ framework/service/config/serviceengine.xml       (working copy)
>>>> @@ -63,7 +63,7 @@
>>>>       <engine name="ofbiz-workflow"
>> class="org.ofbiz.workflow.WorkflowEngine"/>
>>>>       <engine name="workflow"
>> class="org.ofbiz.shark.service.SharkServiceEngine"/>
>>>>       <engine name="xml-rpc-local"
>> class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>>> -            <parameter name="url" value="
>> http://localhost:8080/webtools/control/xmlrpc"/>
>>>> +            <parameter name="url" value="
>> http://localhost:8081/webtools/control/xmlrpc"/>
>>>>           <parameter name="login" value="admin"/>
>>>>           <parameter name="password" value="ofbiz"/>
>>>>       </engine>
>>>> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>>> ===================================================================
>>>> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>> (revision 1311693)
>>>> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>> (working copy)
>>>> @@ -37,7 +37,7 @@
>>>>
>>>>   public static final String module = XmlRpcTests.class.getName();
>>>>   public static final String resource = "ServiceErrorUiLabels";
>>>> -    public static final String url = "
>> http://localhost:8080/webtools/control/xmlrpc";
>>>> +    public static final String url = "
>> http://localhost:8081/webtools/control/xmlrpc";
>>>>
>>>>   public XmlRpcTests(String name) {
>>>>       super(name);
>>>>
>>>>
>>>> I am not sure how to implement properly the above changes... What if we
>> revert your commit in the meantime?
>>>>
>>>> Jacopo
>>>>
>>>>
>>>>
>>>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>>>
>>>>> You are right, this was only a failure. Hastily, I missed also 3
>> errors, same reason I guess
>>>>>
>>>>> serviceteststestSOAPSimpleServiceErrorService did not return expected
>> result
>>>>>
>>>>> org.ofbiz.service.GenericServiceException: Service did not return
>> expected result
>>>>> at
>> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>>> at
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>>> at
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>>> at
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>>> at
>> org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>>>>> at
>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>> 19.563 serviceteststestSOAPServiceErrorService did not return expected
>> result
>>>>>
>>>>> org.ofbiz.service.GenericServiceException: Service did not return
>> expected result
>>>>> at
>> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>>> at
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>>> at
>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>>> at
>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>>> at
>> org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>>>>> at
>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's
>> response: Connection refused: connect
>>>>>
>>>>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
>> Connection refused: connect
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>>> at
>> org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>>> at
>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>>> at java.net.Socket.connect(Socket.java:529)
>>>>> at java.net.Socket.connect(Socket.java:478)
>>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>> Caused by:
>>>>> java.net.ConnectException: Connection refused: connect
>>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>>> at java.net.Socket.connect(Socket.java:529)
>>>>> at java.net.Socket.connect(Socket.java:478)
>>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>>> at
>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>> at
>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>>> at
>> org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>>> at
>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at
>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>> ah I see... it is strange that you get just one test that is failing
>>>>>> Jacopo
>>>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>>>> I did not commit anything, as I said in a previous email (and you
>> pointed out also) I forgot to an clean-all load-demo
>>>>>>> Jacques
>>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>>>> Only this one remains
>>>>>>>> Jacques, I didn't see any commit yet
>>>>>>>> Jacopo
>>>>>>
>>>>
>>>
>>
>>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
Pierre, my fault, I have now fixed it.

Thanks,

Jacopo

On Apr 11, 2012, at 12:29 PM, Jacopo Cappellato wrote:

> ooops... let me check quickly and I will let you know
>
> Jacopo
>
> On Apr 11, 2012, at 11:48 AM, Pierre Smits wrote:
>
>> Hi Jacopo,
>>
>> When running following:
>> sudo ./ant run-test-suite -Dtest.component=service
>> -Dtest.suiteName=servicetests
>>
>> I get:
>> /Users/s0001/Documents/workspace/ofbiz-trunk/build.xml:954: test.suiteName
>> is a required parameter: -Dtest.suiteName=testsuitename
>>
>> and it fails
>>
>> Test ran fine yesterday (exept for the port issue)
>>
>> Regards,
>>
>> Pierre
>>
>>
>> Op 11 april 2012 09:58 schreef Jacopo Cappellato <
>> [hidden email]> het volgende:
>>
>>> I have committed my changes in rev. 1324614.
>>> Now the tests should all pass.
>>>
>>> Jacopo
>>>
>>> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>>>
>>>> Actually, I am reviewing the changes I did and I may be able to commit
>>> them and fix the tests.
>>>>
>>>> Jacopo
>>>>
>>>> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>>>>
>>>>> Jacques,
>>>>>
>>>>> what a mess... I think we need to be more accurate here.
>>>>>
>>>>> The tests are failing since your commit 1311214 with the new test port
>>> numbers; I didn't follow the details and so I don't know exactly your
>>> reasoning behind this change and most of all why it was urgent.
>>>>> However, the changes below fixes the tests (but of course they cannot
>>> be committed in this form):
>>>>>
>>>>> Index: framework/common/servicedef/services_test.xml
>>>>> ===================================================================
>>>>> --- framework/common/servicedef/services_test.xml    (revision 1311693)
>>>>> +++ framework/common/servicedef/services_test.xml    (working copy)
>>>>> @@ -83,20 +83,20 @@
>>>>>  <service name="groupTest" engine="group" location="testGroup"
>>> invoke=""/>
>>>>>
>>>>>  <service name="testHttp" engine="http"
>>>>> -            location="
>>> http://localhost:8080/webtools/control/httpService" invoke="testScv">
>>>>> +            location="
>>> http://localhost:8081/webtools/control/httpService" invoke="testScv">
>>>>>      <description>HTTP service wrapper around the test
>>> service</description>
>>>>>      <attribute name="message" type="String" mode="IN"
>>> optional="true"/>
>>>>>      <attribute name="resp" type="String" mode="OUT"/>
>>>>>  </service>
>>>>>
>>>>>  <service name="testSoap" engine="soap" export="true"
>>>>> -            location="
>>> http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
>>>>> +            location="
>>> http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>>>>>      <description>SOAP service; calls the OFBiz test SOAP
>>> service</description>
>>>>>      <implements service="testSOAPScv"/>
>>>>>  </service>
>>>>>
>>>>>  <service name="testSoapSimple" engine="soap" export="true"
>>>>> -            location="
>>> http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
>>>>> +            location="
>>> http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>>>>>      <description>simple SOAP service; calls the OFBiz test
>>> service</description>
>>>>>      <implements service="testScv"/>
>>>>>  </service>
>>>>> Index: framework/service/config/serviceengine.xml
>>>>> ===================================================================
>>>>> --- framework/service/config/serviceengine.xml       (revision 1311693)
>>>>> +++ framework/service/config/serviceengine.xml       (working copy)
>>>>> @@ -63,7 +63,7 @@
>>>>>      <engine name="ofbiz-workflow"
>>> class="org.ofbiz.workflow.WorkflowEngine"/>
>>>>>      <engine name="workflow"
>>> class="org.ofbiz.shark.service.SharkServiceEngine"/>
>>>>>      <engine name="xml-rpc-local"
>>> class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>>>> -            <parameter name="url" value="
>>> http://localhost:8080/webtools/control/xmlrpc"/>
>>>>> +            <parameter name="url" value="
>>> http://localhost:8081/webtools/control/xmlrpc"/>
>>>>>          <parameter name="login" value="admin"/>
>>>>>          <parameter name="password" value="ofbiz"/>
>>>>>      </engine>
>>>>> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>>>> ===================================================================
>>>>> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>> (revision 1311693)
>>>>> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>> (working copy)
>>>>> @@ -37,7 +37,7 @@
>>>>>
>>>>>  public static final String module = XmlRpcTests.class.getName();
>>>>>  public static final String resource = "ServiceErrorUiLabels";
>>>>> -    public static final String url = "
>>> http://localhost:8080/webtools/control/xmlrpc";
>>>>> +    public static final String url = "
>>> http://localhost:8081/webtools/control/xmlrpc";
>>>>>
>>>>>  public XmlRpcTests(String name) {
>>>>>      super(name);
>>>>>
>>>>>
>>>>> I am not sure how to implement properly the above changes... What if we
>>> revert your commit in the meantime?
>>>>>
>>>>> Jacopo
>>>>>
>>>>>
>>>>>
>>>>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>>>>
>>>>>> You are right, this was only a failure. Hastily, I missed also 3
>>> errors, same reason I guess
>>>>>>
>>>>>> serviceteststestSOAPSimpleServiceErrorService did not return expected
>>> result
>>>>>>
>>>>>> org.ofbiz.service.GenericServiceException: Service did not return
>>> expected result
>>>>>> at
>>> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>>>> at
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>>>> at
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>>>> at
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>>>> at
>>> org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>>>>>> at
>>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>>> at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>>> 19.563 serviceteststestSOAPServiceErrorService did not return expected
>>> result
>>>>>>
>>>>>> org.ofbiz.service.GenericServiceException: Service did not return
>>> expected result
>>>>>> at
>>> org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>>>> at
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>>>> at
>>> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>>>> at
>>> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>>>> at
>>> org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>>>>>> at
>>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>>> at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's
>>> response: Connection refused: connect
>>>>>>
>>>>>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response:
>>> Connection refused: connect
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>>>> at
>>> org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>>>> at
>>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>>> at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>>>> at java.net.Socket.connect(Socket.java:529)
>>>>>> at java.net.Socket.connect(Socket.java:478)
>>>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>>> Caused by:
>>>>>> java.net.ConnectException: Connection refused: connect
>>>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>>>> at java.net.Socket.connect(Socket.java:529)
>>>>>> at java.net.Socket.connect(Socket.java:478)
>>>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>>>> at
>>> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>>> at
>>> org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>>>> at
>>> org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>>>> at
>>> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>>> at
>>> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>
>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>> ah I see... it is strange that you get just one test that is failing
>>>>>>> Jacopo
>>>>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>>>>> I did not commit anything, as I said in a previous email (and you
>>> pointed out also) I forgot to an clean-all load-demo
>>>>>>>> Jacques
>>>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>>>>> Only this one remains
>>>>>>>>> Jacques, I didn't see any commit yet
>>>>>>>>> Jacopo
>>>>>>>
>>>>>
>>>>
>>>
>>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacques Le Roux
Administrator
In reply to this post by Jacques Le Roux
Success here now

Jacques

From: "Jacques Le Roux" <[hidden email]>

> With >ant run load-demo run-tests
>
> I have now only those failed on XP
>
> facilitytestsinventory-tests.testGetInventoryAvailableByFacilityFailureAssertion failed: [quantityOnHandTotal=507] equals 509 as
> BigDecimal
>
> junit.framework.AssertionFailedError: Assertion failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
>
> junit.framework.AssertionFailedError: Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
> at org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:100)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
> 0.078 luceneteststestCreateIndexFailureexpected:<7> but was:<16>
>
> junit.framework.AssertionFailedError: expected:<7> but was:<16>
> at org.ofbiz.content.test.LuceneTests.testCreateIndex(LuceneTests.java:69)
> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
> at org.ofbiz.base.start.Start.start(Start.java:289)
> at org.ofbiz.base.start.Start.main(Start.java:119)
>
> For what it's worth...
>
> Jacques
> PS: maybe I should have cleaned-all before, I will retry
>
> From: "Jacopo Cappellato" <[hidden email]>
>>I have committed my changes in rev. 1324614.
>> Now the tests should all pass.
>>
>> Jacopo
>>
>> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>>
>>> Actually, I am reviewing the changes I did and I may be able to commit them and fix the tests.
>>>
>>> Jacopo
>>>
>>> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>>>
>>>> Jacques,
>>>>
>>>> what a mess... I think we need to be more accurate here.
>>>>
>>>> The tests are failing since your commit 1311214 with the new test port numbers; I didn't follow the details and so I don't know
>>>> exactly your reasoning behind this change and most of all why it was urgent.
>>>> However, the changes below fixes the tests (but of course they cannot be committed in this form):
>>>>
>>>> Index: framework/common/servicedef/services_test.xml
>>>> ===================================================================
>>>> --- framework/common/servicedef/services_test.xml (revision 1311693)
>>>> +++ framework/common/servicedef/services_test.xml (working copy)
>>>> @@ -83,20 +83,20 @@
>>>>    <service name="groupTest" engine="group" location="testGroup" invoke=""/>
>>>>
>>>>    <service name="testHttp" engine="http"
>>>> -            location="http://localhost:8080/webtools/control/httpService" invoke="testScv">
>>>> +            location="http://localhost:8081/webtools/control/httpService" invoke="testScv">
>>>>        <description>HTTP service wrapper around the test service</description>
>>>>        <attribute name="message" type="String" mode="IN" optional="true"/>
>>>>        <attribute name="resp" type="String" mode="OUT"/>
>>>>    </service>
>>>>
>>>>    <service name="testSoap" engine="soap" export="true"
>>>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testSOAPScv">
>>>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testSOAPScv">
>>>>        <description>SOAP service; calls the OFBiz test SOAP service</description>
>>>>        <implements service="testSOAPScv"/>
>>>>    </service>
>>>>
>>>>    <service name="testSoapSimple" engine="soap" export="true"
>>>> -            location="http://localhost:8080/webtools/control/SOAPService" invoke="testScv">
>>>> +            location="http://localhost:8081/webtools/control/SOAPService" invoke="testScv">
>>>>        <description>simple SOAP service; calls the OFBiz test service</description>
>>>>        <implements service="testScv"/>
>>>>    </service>
>>>> Index: framework/service/config/serviceengine.xml
>>>> ===================================================================
>>>> --- framework/service/config/serviceengine.xml (revision 1311693)
>>>> +++ framework/service/config/serviceengine.xml (working copy)
>>>> @@ -63,7 +63,7 @@
>>>>        <engine name="ofbiz-workflow" class="org.ofbiz.workflow.WorkflowEngine"/>
>>>>        <engine name="workflow" class="org.ofbiz.shark.service.SharkServiceEngine"/>
>>>>        <engine name="xml-rpc-local" class="org.ofbiz.service.engine.XMLRPCClientEngine">
>>>> -            <parameter name="url" value="http://localhost:8080/webtools/control/xmlrpc"/>
>>>> +            <parameter name="url" value="http://localhost:8081/webtools/control/xmlrpc"/>
>>>>            <parameter name="login" value="admin"/>
>>>>            <parameter name="password" value="ofbiz"/>
>>>>        </engine>
>>>> Index: framework/service/src/org/ofbiz/service/test/XmlRpcTests.java
>>>> ===================================================================
>>>> --- framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (revision 1311693)
>>>> +++ framework/service/src/org/ofbiz/service/test/XmlRpcTests.java (working copy)
>>>> @@ -37,7 +37,7 @@
>>>>
>>>>    public static final String module = XmlRpcTests.class.getName();
>>>>    public static final String resource = "ServiceErrorUiLabels";
>>>> -    public static final String url = "http://localhost:8080/webtools/control/xmlrpc";
>>>> +    public static final String url = "http://localhost:8081/webtools/control/xmlrpc";
>>>>
>>>>    public XmlRpcTests(String name) {
>>>>        super(name);
>>>>
>>>>
>>>> I am not sure how to implement properly the above changes... What if we revert your commit in the meantime?
>>>>
>>>> Jacopo
>>>>
>>>>
>>>>
>>>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>>>
>>>>> You are right, this was only a failure. Hastily, I missed also 3 errors, same reason I guess
>>>>>
>>>>> serviceteststestSOAPSimpleServiceErrorService did not return expected result
>>>>>
>>>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPSimpleService(ServiceSOAPTests.java:44)
>>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>> 19.563 serviceteststestSOAPServiceErrorService did not return expected result
>>>>>
>>>>> org.ofbiz.service.GenericServiceException: Service did not return expected result
>>>>> at org.ofbiz.service.engine.SOAPClientEngine.runSync(SOAPClientEngine.java:75)
>>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:396)
>>>>> at org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:224)
>>>>> at org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:163)
>>>>> at org.ofbiz.service.test.ServiceSOAPTests.testSOAPService(ServiceSOAPTests.java:55)
>>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>> 4.531 serviceteststestXmlRpcRequestErrorFailed to read server's response: Connection refused: connect
>>>>>
>>>>> org.apache.xmlrpc.XmlRpcException: Failed to read server's response: Connection refused: connect
>>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:161)
>>>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>>> at java.net.Socket.connect(Socket.java:529)
>>>>> at java.net.Socket.connect(Socket.java:478)
>>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>> Caused by:
>>>>> java.net.ConnectException: Connection refused: connect
>>>>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>>>>> at java.net.Socket.connect(Socket.java:529)
>>>>> at java.net.Socket.connect(Socket.java:478)
>>>>> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
>>>>> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
>>>>> at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
>>>>> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:975)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:916)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:841)
>>>>> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1019)
>>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.writeRequest(XmlRpcSunHttpTransport.java:104)
>>>>> at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:151)
>>>>> at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:115)
>>>>> at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
>>>>> at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:137)
>>>>> at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:126)
>>>>> at org.ofbiz.service.test.XmlRpcTests.testXmlRpcRequest(XmlRpcTests.java:53)
>>>>> at org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:146)
>>>>> at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:230)
>>>>> at org.ofbiz.base.start.Start.startStartLoaders(Start.java:310)
>>>>> at org.ofbiz.base.start.Start.start(Start.java:289)
>>>>> at org.ofbiz.base.start.Start.main(Start.java:119)
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>> ah I see... it is strange that you get just one test that is failing
>>>>>> Jacopo
>>>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>>>> I did not commit anything, as I said in a previous email (and you pointed out also) I forgot to an clean-all load-demo
>>>>>>> Jacques
>>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>>>> Only this one remains
>>>>>>>> Jacques, I didn't see any commit yet
>>>>>>>> Jacopo
>>>>>>
>>>>
>>>
>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Hi all,

On my Mac every individual test suite executes fine. This is also true for
my CI. But in my CI environment the testsuites for service and webapp
continue to fail due to defined ports already being used by other
production systems.

Aslo, running ant run-tests on my Mac fails.

Regards,

Pierre

Op 11 april 2012 13:04 schreef Jacques Le Roux <[hidden email]
> het volgende:

> Success here now
>
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>
>> With >ant run load-demo run-tests
>>
>>
>> I have now only those failed on XP
>>
>> facilitytestsinventory-tests.**testGetInventoryAvailableByFac**ilityFailureAssertion
>> failed: [quantityOnHandTotal=507] equals 509 as BigDecimal
>>
>> junit.framework.**AssertionFailedError: Assertion failed:
>> [quantityOnHandTotal=507] equals 509 as BigDecimal
>> at org.ofbiz.testtools.**SimpleMethodTest.run(**
>> SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.**TestRunContainer.start(**
>> TestRunContainer.java:146)
>> at org.ofbiz.base.container.**ContainerLoader.start(**
>> ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>> Assertion failed: [availableToPromiseTotal=507] equals 509 as BigDecimal
>>
>> junit.framework.**AssertionFailedError: Assertion failed:
>> [availableToPromiseTotal=507] equals 509 as BigDecimal
>> at org.ofbiz.testtools.**SimpleMethodTest.run(**
>> SimpleMethodTest.java:100)
>> at org.ofbiz.testtools.**TestRunContainer.start(**
>> TestRunContainer.java:146)
>> at org.ofbiz.base.container.**ContainerLoader.start(**
>> ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>> 0.078 luceneteststestCreateIndexFail**ureexpected:<7> but was:<16>
>>
>> junit.framework.**AssertionFailedError: expected:<7> but was:<16>
>> at org.ofbiz.content.test.**LuceneTests.testCreateIndex(**
>> LuceneTests.java:69)
>> at org.ofbiz.testtools.**TestRunContainer.start(**
>> TestRunContainer.java:146)
>> at org.ofbiz.base.container.**ContainerLoader.start(**
>> ContainerLoader.java:230)
>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>>
>> For what it's worth...
>>
>> Jacques
>> PS: maybe I should have cleaned-all before, I will retry
>>
>> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
>> >
>>
>>> I have committed my changes in rev. 1324614.
>>> Now the tests should all pass.
>>>
>>> Jacopo
>>>
>>> On Apr 11, 2012, at 9:48 AM, Jacopo Cappellato wrote:
>>>
>>>  Actually, I am reviewing the changes I did and I may be able to commit
>>>> them and fix the tests.
>>>>
>>>> Jacopo
>>>>
>>>> On Apr 11, 2012, at 9:24 AM, Jacopo Cappellato wrote:
>>>>
>>>>  Jacques,
>>>>>
>>>>> what a mess... I think we need to be more accurate here.
>>>>>
>>>>> The tests are failing since your commit 1311214 with the new test port
>>>>> numbers; I didn't follow the details and so I don't know exactly your
>>>>> reasoning behind this change and most of all why it was urgent.
>>>>> However, the changes below fixes the tests (but of course they cannot
>>>>> be committed in this form):
>>>>>
>>>>> Index: framework/common/servicedef/**services_test.xml
>>>>> ==============================**==============================**
>>>>> =======
>>>>> --- framework/common/servicedef/**services_test.xml (revision 1311693)
>>>>> +++ framework/common/servicedef/**services_test.xml (working copy)
>>>>> @@ -83,20 +83,20 @@
>>>>>   <service name="groupTest" engine="group" location="testGroup"
>>>>> invoke=""/>
>>>>>
>>>>>   <service name="testHttp" engine="http"
>>>>> -            location="<a href="http://localhost:**8080/webtools/control/**">http://localhost:**8080/webtools/control/**
>>>>> httpService <http://localhost:8080/webtools/control/httpService>"
>>>>> invoke="testScv">
>>>>> +            location="<a href="http://localhost:**8081/webtools/control/**">http://localhost:**8081/webtools/control/**
>>>>> httpService <http://localhost:8081/webtools/control/httpService>"
>>>>> invoke="testScv">
>>>>>       <description>HTTP service wrapper around the test
>>>>> service</description>
>>>>>       <attribute name="message" type="String" mode="IN"
>>>>> optional="true"/>
>>>>>       <attribute name="resp" type="String" mode="OUT"/>
>>>>>   </service>
>>>>>
>>>>>   <service name="testSoap" engine="soap" export="true"
>>>>> -            location="<a href="http://localhost:**8080/webtools/control/**">http://localhost:**8080/webtools/control/**
>>>>> SOAPService <http://localhost:8080/webtools/control/SOAPService>"
>>>>> invoke="testSOAPScv">
>>>>> +            location="<a href="http://localhost:**8081/webtools/control/**">http://localhost:**8081/webtools/control/**
>>>>> SOAPService <http://localhost:8081/webtools/control/SOAPService>"
>>>>> invoke="testSOAPScv">
>>>>>       <description>SOAP service; calls the OFBiz test SOAP
>>>>> service</description>
>>>>>       <implements service="testSOAPScv"/>
>>>>>   </service>
>>>>>
>>>>>   <service name="testSoapSimple" engine="soap" export="true"
>>>>> -            location="<a href="http://localhost:**8080/webtools/control/**">http://localhost:**8080/webtools/control/**
>>>>> SOAPService <http://localhost:8080/webtools/control/SOAPService>"
>>>>> invoke="testScv">
>>>>> +            location="<a href="http://localhost:**8081/webtools/control/**">http://localhost:**8081/webtools/control/**
>>>>> SOAPService <http://localhost:8081/webtools/control/SOAPService>"
>>>>> invoke="testScv">
>>>>>       <description>simple SOAP service; calls the OFBiz test
>>>>> service</description>
>>>>>       <implements service="testScv"/>
>>>>>   </service>
>>>>> Index: framework/service/config/**serviceengine.xml
>>>>> ==============================**==============================**
>>>>> =======
>>>>> --- framework/service/config/**serviceengine.xml (revision 1311693)
>>>>> +++ framework/service/config/**serviceengine.xml (working copy)
>>>>> @@ -63,7 +63,7 @@
>>>>>       <engine name="ofbiz-workflow" class="org.ofbiz.workflow.**
>>>>> WorkflowEngine"/>
>>>>>       <engine name="workflow" class="org.ofbiz.shark.**
>>>>> service.SharkServiceEngine"/>
>>>>>       <engine name="xml-rpc-local" class="org.ofbiz.service.**
>>>>> engine.XMLRPCClientEngine">
>>>>> -            <parameter name="url" value="http://localhost:8080/**
>>>>> webtools/control/xmlrpc<http://localhost:8080/webtools/control/xmlrpc>
>>>>> "/>
>>>>> +            <parameter name="url" value="http://localhost:8081/**
>>>>> webtools/control/xmlrpc<http://localhost:8081/webtools/control/xmlrpc>
>>>>> "/>
>>>>>           <parameter name="login" value="admin"/>
>>>>>           <parameter name="password" value="ofbiz"/>
>>>>>       </engine>
>>>>> Index: framework/service/src/org/**ofbiz/service/test/**
>>>>> XmlRpcTests.java
>>>>> ==============================**==============================**
>>>>> =======
>>>>> --- framework/service/src/org/**ofbiz/service/test/**XmlRpcTests.java
>>>>> (revision 1311693)
>>>>> +++ framework/service/src/org/**ofbiz/service/test/**XmlRpcTests.java
>>>>> (working copy)
>>>>> @@ -37,7 +37,7 @@
>>>>>
>>>>>   public static final String module = XmlRpcTests.class.getName();
>>>>>   public static final String resource = "ServiceErrorUiLabels";
>>>>> -    public static final String url = "http://localhost:8080/**
>>>>> webtools/control/xmlrpc<http://localhost:8080/webtools/control/xmlrpc>
>>>>> ";
>>>>> +    public static final String url = "http://localhost:8081/**
>>>>> webtools/control/xmlrpc<http://localhost:8081/webtools/control/xmlrpc>
>>>>> ";
>>>>>
>>>>>   public XmlRpcTests(String name) {
>>>>>       super(name);
>>>>>
>>>>>
>>>>> I am not sure how to implement properly the above changes... What if
>>>>> we revert your commit in the meantime?
>>>>>
>>>>> Jacopo
>>>>>
>>>>>
>>>>>
>>>>> On Apr 10, 2012, at 7:12 PM, Jacques Le Roux wrote:
>>>>>
>>>>>  You are right, this was only a failure. Hastily, I missed also 3
>>>>>> errors, same reason I guess
>>>>>>
>>>>>> serviceteststestSOAPSimpleServ**iceErrorService did not return
>>>>>> expected result
>>>>>>
>>>>>> org.ofbiz.service.**GenericServiceException: Service did not return
>>>>>> expected result
>>>>>> at org.ofbiz.service.engine.**SOAPClientEngine.runSync(**
>>>>>> SOAPClientEngine.java:75)
>>>>>> at org.ofbiz.service.**ServiceDispatcher.runSync(**
>>>>>> ServiceDispatcher.java:396)
>>>>>> at org.ofbiz.service.**ServiceDispatcher.runSync(**
>>>>>> ServiceDispatcher.java:224)
>>>>>> at org.ofbiz.service.**GenericDispatcher.runSync(**
>>>>>> GenericDispatcher.java:163)
>>>>>> at org.ofbiz.service.test.**ServiceSOAPTests.**testSOAPSimpleService(
>>>>>> **ServiceSOAPTests.java:44)
>>>>>> at org.ofbiz.testtools.**TestRunContainer.start(**
>>>>>> TestRunContainer.java:146)
>>>>>> at org.ofbiz.base.container.**ContainerLoader.start(**
>>>>>> ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>>>>>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>>>>>> 19.563 serviceteststestSOAPServiceErr**orService did not return
>>>>>> expected result
>>>>>>
>>>>>> org.ofbiz.service.**GenericServiceException: Service did not return
>>>>>> expected result
>>>>>> at org.ofbiz.service.engine.**SOAPClientEngine.runSync(**
>>>>>> SOAPClientEngine.java:75)
>>>>>> at org.ofbiz.service.**ServiceDispatcher.runSync(**
>>>>>> ServiceDispatcher.java:396)
>>>>>> at org.ofbiz.service.**ServiceDispatcher.runSync(**
>>>>>> ServiceDispatcher.java:224)
>>>>>> at org.ofbiz.service.**GenericDispatcher.runSync(**
>>>>>> GenericDispatcher.java:163)
>>>>>> at org.ofbiz.service.test.**ServiceSOAPTests.**testSOAPService(**
>>>>>> ServiceSOAPTests.java:55)
>>>>>> at org.ofbiz.testtools.**TestRunContainer.start(**
>>>>>> TestRunContainer.java:146)
>>>>>> at org.ofbiz.base.container.**ContainerLoader.start(**
>>>>>> ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>>>>>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>>>>>> 4.531 serviceteststestXmlRpcRequestE**rrorFailed to read server's
>>>>>> response: Connection refused: connect
>>>>>>
>>>>>> org.apache.xmlrpc.**XmlRpcException: Failed to read server's
>>>>>> response: Connection refused: connect
>>>>>> at org.apache.xmlrpc.client.**XmlRpcStreamTransport.**sendRequest(**
>>>>>> XmlRpcStreamTransport.java:**161)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcHttpTransport.**sendRequest(**
>>>>>> XmlRpcHttpTransport.java:115)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcSunHttpTransport.**sendRequest(**
>>>>>> XmlRpcSunHttpTransport.java:**69)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClientWorker.execute(**
>>>>>> XmlRpcClientWorker.java:56)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClient.execute(**
>>>>>> XmlRpcClient.java:167)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClient.execute(**
>>>>>> XmlRpcClient.java:137)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClient.execute(**
>>>>>> XmlRpcClient.java:126)
>>>>>> at org.ofbiz.service.test.**XmlRpcTests.testXmlRpcRequest(**
>>>>>> XmlRpcTests.java:53)
>>>>>> at org.ofbiz.testtools.**TestRunContainer.start(**
>>>>>> TestRunContainer.java:146)
>>>>>> at org.ofbiz.base.container.**ContainerLoader.start(**
>>>>>> ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>>>>>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>>>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>>>> at java.net.PlainSocketImpl.**socketConnect(Native Method)
>>>>>> at java.net.PlainSocketImpl.**doConnect(PlainSocketImpl.**java:333)
>>>>>> at java.net.PlainSocketImpl.**connectToAddress(**
>>>>>> PlainSocketImpl.java:195)
>>>>>> at java.net.PlainSocketImpl.**connect(PlainSocketImpl.java:**182)
>>>>>> at java.net.SocksSocketImpl.**connect(SocksSocketImpl.java:**366)
>>>>>> at java.net.Socket.connect(**Socket.java:529)
>>>>>> at java.net.Socket.connect(**Socket.java:478)
>>>>>> at sun.net.NetworkClient.**doConnect(NetworkClient.java:**163)
>>>>>> at sun.net.www.http.HttpClient.**openServer(HttpClient.java:**394)
>>>>>> at sun.net.www.http.HttpClient.**openServer(HttpClient.java:**529)
>>>>>> at sun.net.www.http.HttpClient.<**init>(HttpClient.java:233)
>>>>>> at sun.net.www.http.HttpClient.**New(HttpClient.java:306)
>>>>>> at sun.net.www.http.HttpClient.**New(HttpClient.java:323)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.**getNewHttpClient(*
>>>>>> *HttpURLConnection.java:975)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.**plainConnect(**
>>>>>> HttpURLConnection.java:916)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.connect(**
>>>>>> HttpURLConnection.java:841)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.**getOutputStream(**
>>>>>> HttpURLConnection.java:1019)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcSunHttpTransport.**writeRequest(*
>>>>>> *XmlRpcSunHttpTransport.java:**104)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcStreamTransport.**sendRequest(**
>>>>>> XmlRpcStreamTransport.java:**151)
>>>>>> Caused by:
>>>>>> java.net.ConnectException: Connection refused: connect
>>>>>> at java.net.PlainSocketImpl.**socketConnect(Native Method)
>>>>>> at java.net.PlainSocketImpl.**doConnect(PlainSocketImpl.**java:333)
>>>>>> at java.net.PlainSocketImpl.**connectToAddress(**
>>>>>> PlainSocketImpl.java:195)
>>>>>> at java.net.PlainSocketImpl.**connect(PlainSocketImpl.java:**182)
>>>>>> at java.net.SocksSocketImpl.**connect(SocksSocketImpl.java:**366)
>>>>>> at java.net.Socket.connect(**Socket.java:529)
>>>>>> at java.net.Socket.connect(**Socket.java:478)
>>>>>> at sun.net.NetworkClient.**doConnect(NetworkClient.java:**163)
>>>>>> at sun.net.www.http.HttpClient.**openServer(HttpClient.java:**394)
>>>>>> at sun.net.www.http.HttpClient.**openServer(HttpClient.java:**529)
>>>>>> at sun.net.www.http.HttpClient.<**init>(HttpClient.java:233)
>>>>>> at sun.net.www.http.HttpClient.**New(HttpClient.java:306)
>>>>>> at sun.net.www.http.HttpClient.**New(HttpClient.java:323)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.**getNewHttpClient(*
>>>>>> *HttpURLConnection.java:975)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.**plainConnect(**
>>>>>> HttpURLConnection.java:916)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.connect(**
>>>>>> HttpURLConnection.java:841)
>>>>>> at sun.net.www.protocol.http.**HttpURLConnection.**getOutputStream(**
>>>>>> HttpURLConnection.java:1019)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcSunHttpTransport.**writeRequest(*
>>>>>> *XmlRpcSunHttpTransport.java:**104)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcStreamTransport.**sendRequest(**
>>>>>> XmlRpcStreamTransport.java:**151)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcHttpTransport.**sendRequest(**
>>>>>> XmlRpcHttpTransport.java:115)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcSunHttpTransport.**sendRequest(**
>>>>>> XmlRpcSunHttpTransport.java:**69)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClientWorker.execute(**
>>>>>> XmlRpcClientWorker.java:56)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClient.execute(**
>>>>>> XmlRpcClient.java:167)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClient.execute(**
>>>>>> XmlRpcClient.java:137)
>>>>>> at org.apache.xmlrpc.client.**XmlRpcClient.execute(**
>>>>>> XmlRpcClient.java:126)
>>>>>> at org.ofbiz.service.test.**XmlRpcTests.testXmlRpcRequest(**
>>>>>> XmlRpcTests.java:53)
>>>>>> at org.ofbiz.testtools.**TestRunContainer.start(**
>>>>>> TestRunContainer.java:146)
>>>>>> at org.ofbiz.base.container.**ContainerLoader.start(**
>>>>>> ContainerLoader.java:230)
>>>>>> at org.ofbiz.base.start.Start.**startStartLoaders(Start.java:**310)
>>>>>> at org.ofbiz.base.start.Start.**start(Start.java:289)
>>>>>> at org.ofbiz.base.start.Start.**main(Start.java:119)
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>>
>>>>>> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
>>>>>> >
>>>>>>
>>>>>>> ah I see... it is strange that you get just one test that is failing
>>>>>>> Jacopo
>>>>>>> On Apr 10, 2012, at 6:37 PM, Jacques Le Roux wrote:
>>>>>>>
>>>>>>>> I did not commit anything, as I said in a previous email (and you
>>>>>>>> pointed out also) I forgot to an clean-all load-demo
>>>>>>>> Jacques
>>>>>>>> From: "Jacopo Cappellato" <jacopo.cappellato@**hotwaxmedia.com<[hidden email]>
>>>>>>>> >
>>>>>>>>
>>>>>>>>> On Apr 10, 2012, at 5:32 PM, Jacques Le Roux wrote:
>>>>>>>>>
>>>>>>>>>> Only this one remains
>>>>>>>>>>
>>>>>>>>> Jacques, I didn't see any commit yet
>>>>>>>>> Jacopo
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>
>>>
Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Jacopo Cappellato-4
On Apr 11, 2012, at 2:15 PM, Pierre Smits wrote:

> Aslo, running ant run-tests on my Mac fails.

Pierre,

could you please confirm that you are running the tests on a clean system:

./ant clean-all load-data run-tests

?

I tested in my Mac a few minutes ago and it was successful.

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: Building OFBiz with Jenkins

Pierre Smits
Jacopo,

I made the same mistake as Jacques did, namely not doing the full cycle.

After I did that it sailed perfectly.

Regards,

Pierre

Op 11 april 2012 14:35 schreef Jacopo Cappellato <
[hidden email]> het volgende:

> On Apr 11, 2012, at 2:15 PM, Pierre Smits wrote:
>
> > Aslo, running ant run-tests on my Mac fails.
>
> Pierre,
>
> could you please confirm that you are running the tests on a clean system:
>
> ./ant clean-all load-data run-tests
>
> ?
>
> I tested in my Mac a few minutes ago and it was successful.
>
> Jacopo
>
>
123