Re: svn commit: r667667 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml

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

Re: svn commit: r667667 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml

Vikas Mayur-2
Thanks Scott - Interesting change.

BTW, I wasn't getting this error while running test case on Derby - and so
did this commit.

Vikas


On Sat, Jun 14, 2008 at 3:35 AM, <[hidden email]> wrote:

> Author: lektran
> Date: Fri Jun 13 15:05:56 2008
> New Revision: 667667
>
> URL: http://svn.apache.org/viewvc?rev=667667&view=rev
> Log:
> Fix a problem that was causing the one of the party tests to fail.  The
> call-service operation adds the fields locale and userLogin to the in-map
> which was causing the find-by-primary-key operation to throw an error.
>
> Modified:
>
>  ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
>
> Modified:
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> URL:
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml?rev=667667&r1=667666&r2=667667&view=diff
>
> ==============================================================================
> ---
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> (original)
> +++
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> Fri Jun 13 15:05:56 2008
> @@ -33,14 +33,14 @@
>         <!-- Post condition:
>              1. Selected party and information should be displayed in
> search result
>         -->
> -        <set field="serviceCtx.partyId" value="DemoCustomer"/>
> -        <set field="serviceCtx.roleTypeId" value="CUSTOMER"/>
> -
> +        <set field="searchParams.partyId" value="DemoCustomer"/>
> +        <set field="searchParams.roleTypeId" value="CUSTOMER"/>
> +        <map-to-map map-name="searchParams" to-map-name="serviceCtx"/>
>         <call-service service-name="findParty" in-map-name="serviceCtx">
>             <results-to-map map-name="partyList"/>
>         </call-service>
>
> -        <find-by-primary-key entity-name="PartyRoleDetailAndPartyDetail"
> map-name="serviceCtx" value-name="partyRoleDetailAndPartyDetail"/>
> +        <find-by-primary-key entity-name="PartyRoleDetailAndPartyDetail"
> map-name="searchParams" value-name="partyRoleDetailAndPartyDetail"/>
>         <if-not-empty field-name="partyRoleDetailAndPartyDetail">
>             <assert><not><if-empty field-name="partyList"/></not></assert>
>         <else>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r667667 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml

Scott Gray
Hi Vikas

I just double checked by reverting my change and running the test again and
the problem is definitely there (I'm using derby as well):
2008-06-14 19:56:32,183 (main) [       SimpleMethod.java:1109:ERROR]
---- runtime exception report
--------------------------------------------------
Error in simple-method operation [<find-by-primary-key/>]:
java.lang.IllegalArgumentException: [GenericEntity.set] "locale" is not a
field of PartyRoleDetailAndPartyDetail, must be one of: personComments,
partyGroupComments, partyId, partyTypeId, externalId,
preferredCurrencyUomId, statusId, createdDate, createdByUserLogin,
lastModifiedDate, lastModifiedByUserLogin, dataSourceId, isUnread,
roleTypeId, parentTypeId, hasTable, description, salutation, firstName,
middleName, lastName, personalTitle, suffix, nickname, firstNameLocal,
middleNameLocal, lastNameLocal, otherLocal, memberId, gender, birthDate,
height, weight, mothersMaidenName, maritalStatus, socialSecurityNumber,
passportNumber, passportExpireDate, totalYearsWorkExperience,
employmentStatusEnumId, residenceStatusEnumId, occupation,
yearsWithEmployer, monthsWithEmployer, existingCustomer, groupName,
groupNameLocal, officeSiteName, annualRevenue, numEmployees, tickerSymbol,
logoImageUrl
Exception: java.lang.IllegalArgumentException
Message: [GenericEntity.set] "locale" is not a field of
PartyRoleDetailAndPartyDetail, must be one of: personComments,
partyGroupComments, partyId, partyTypeId, externalId,
preferredCurrencyUomId, statusId, createdDate, createdByUserLogin,
lastModifiedDate, lastModifiedByUserLogin, dataSourceId, isUnread,
roleTypeId, parentTypeId, hasTable, description, salutation, firstName,
middleName, lastName, personalTitle, suffix, nickname, firstNameLocal,
middleNameLocal, lastNameLocal, otherLocal, memberId, gender, birthDate,
height, weight, mothersMaidenName, maritalStatus, socialSecurityNumber,
passportNumber, passportExpireDate, totalYearsWorkExperience,
employmentStatusEnumId, residenceStatusEnumId, occupation,
yearsWithEmployer, monthsWithEmployer, existingCustomer, groupName,
groupNameLocal, officeSiteName, annualRevenue, numEmployees, tickerSymbol,
logoImageUrl
---- stack trace
---------------------------------------------------------------
java.lang.IllegalArgumentException: [GenericEntity.set] "locale" is not a
field of PartyRoleDetailAndPartyDetail, must be one of: personComments,
partyGroupComments, partyId, partyTypeId, externalId,
preferredCurrencyUomId, statusId, createdDate, createdByUserLogin,
lastModifiedDate, lastModifiedByUserLogin, dataSourceId, isUnread,
roleTypeId, parentTypeId, hasTable, description, salutation, firstName,
middleName, lastName, personalTitle, suffix, nickname, firstNameLocal,
middleNameLocal, lastNameLocal, otherLocal, memberId, gender, birthDate,
height, weight, mothersMaidenName, maritalStatus, socialSecurityNumber,
passportNumber, passportExpireDate, totalYearsWorkExperience,
employmentStatusEnumId, residenceStatusEnumId, occupation,
yearsWithEmployer, monthsWithEmployer, existingCustomer, groupName,
groupNameLocal, officeSiteName, annualRevenue, numEmployees, tickerSymbol,
logoImageUrl
org.ofbiz.entity.GenericEntity.set(GenericEntity.java:385)
org.ofbiz.entity.GenericEntity.setFields(GenericEntity.java:908)
org.ofbiz.entity.GenericEntity.init(GenericEntity.java:163)
org.ofbiz.entity.GenericPK.create(GenericPK.java:51)
org.ofbiz.entity.GenericDelegator.makePK(GenericDelegator.java:562)
org.ofbiz.entity.GenericDelegator.findOne(GenericDelegator.java:1473)
org.ofbiz.minilang.method.entityops.FindByPrimaryKey.exec(FindByPrimaryKey.java:88)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:110)
org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:64)
junit.framework.TestSuite.runTest(TestSuite.java:208)
junit.framework.TestSuite.run(TestSuite.java:203)
org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:134)
org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
org.ofbiz.base.start.Start.startServer(Start.java:312)
org.ofbiz.base.start.Start.start(Start.java:316)
org.ofbiz.base.start.Start.main(Start.java:399)
--------------------------------------------------------------------------------
Regards
Scott

2008/6/14 Vikas Mayur <[hidden email]>:

> Thanks Scott - Interesting change.
>
> BTW, I wasn't getting this error while running test case on Derby - and so
> did this commit.
>
> Vikas
>
>
> On Sat, Jun 14, 2008 at 3:35 AM, <[hidden email]> wrote:
>
> > Author: lektran
> > Date: Fri Jun 13 15:05:56 2008
> > New Revision: 667667
> >
> > URL: http://svn.apache.org/viewvc?rev=667667&view=rev
> > Log:
> > Fix a problem that was causing the one of the party tests to fail.  The
> > call-service operation adds the fields locale and userLogin to the in-map
> > which was causing the find-by-primary-key operation to throw an error.
> >
> > Modified:
> >
> >
>  ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> >
> > Modified:
> >
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > URL:
> >
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml?rev=667667&r1=667666&r2=667667&view=diff
> >
> >
> ==============================================================================
> > ---
> >
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > (original)
> > +++
> >
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > Fri Jun 13 15:05:56 2008
> > @@ -33,14 +33,14 @@
> >         <!-- Post condition:
> >              1. Selected party and information should be displayed in
> > search result
> >         -->
> > -        <set field="serviceCtx.partyId" value="DemoCustomer"/>
> > -        <set field="serviceCtx.roleTypeId" value="CUSTOMER"/>
> > -
> > +        <set field="searchParams.partyId" value="DemoCustomer"/>
> > +        <set field="searchParams.roleTypeId" value="CUSTOMER"/>
> > +        <map-to-map map-name="searchParams" to-map-name="serviceCtx"/>
> >         <call-service service-name="findParty" in-map-name="serviceCtx">
> >             <results-to-map map-name="partyList"/>
> >         </call-service>
> >
> > -        <find-by-primary-key entity-name="PartyRoleDetailAndPartyDetail"
> > map-name="serviceCtx" value-name="partyRoleDetailAndPartyDetail"/>
> > +        <find-by-primary-key entity-name="PartyRoleDetailAndPartyDetail"
> > map-name="searchParams" value-name="partyRoleDetailAndPartyDetail"/>
> >         <if-not-empty field-name="partyRoleDetailAndPartyDetail">
> >             <assert><not><if-empty
> field-name="partyList"/></not></assert>
> >         <else>
> >
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r667667 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml

Vikas Mayur-2
Sorry Scott - for my wrong call.
I too check it again, the problem is there.

Thanks for the fix.

Vikas

On Sat, Jun 14, 2008 at 1:35 PM, Scott Gray <[hidden email]> wrote:

> Hi Vikas
>
> I just double checked by reverting my change and running the test again and
> the problem is definitely there (I'm using derby as well):
> 2008-06-14 19:56:32,183 (main) [       SimpleMethod.java:1109:ERROR]
> ---- runtime exception report
> --------------------------------------------------
> Error in simple-method operation [<find-by-primary-key/>]:
> java.lang.IllegalArgumentException: [GenericEntity.set] "locale" is not a
> field of PartyRoleDetailAndPartyDetail, must be one of: personComments,
> partyGroupComments, partyId, partyTypeId, externalId,
> preferredCurrencyUomId, statusId, createdDate, createdByUserLogin,
> lastModifiedDate, lastModifiedByUserLogin, dataSourceId, isUnread,
> roleTypeId, parentTypeId, hasTable, description, salutation, firstName,
> middleName, lastName, personalTitle, suffix, nickname, firstNameLocal,
> middleNameLocal, lastNameLocal, otherLocal, memberId, gender, birthDate,
> height, weight, mothersMaidenName, maritalStatus, socialSecurityNumber,
> passportNumber, passportExpireDate, totalYearsWorkExperience,
> employmentStatusEnumId, residenceStatusEnumId, occupation,
> yearsWithEmployer, monthsWithEmployer, existingCustomer, groupName,
> groupNameLocal, officeSiteName, annualRevenue, numEmployees, tickerSymbol,
> logoImageUrl
> Exception: java.lang.IllegalArgumentException
> Message: [GenericEntity.set] "locale" is not a field of
> PartyRoleDetailAndPartyDetail, must be one of: personComments,
> partyGroupComments, partyId, partyTypeId, externalId,
> preferredCurrencyUomId, statusId, createdDate, createdByUserLogin,
> lastModifiedDate, lastModifiedByUserLogin, dataSourceId, isUnread,
> roleTypeId, parentTypeId, hasTable, description, salutation, firstName,
> middleName, lastName, personalTitle, suffix, nickname, firstNameLocal,
> middleNameLocal, lastNameLocal, otherLocal, memberId, gender, birthDate,
> height, weight, mothersMaidenName, maritalStatus, socialSecurityNumber,
> passportNumber, passportExpireDate, totalYearsWorkExperience,
> employmentStatusEnumId, residenceStatusEnumId, occupation,
> yearsWithEmployer, monthsWithEmployer, existingCustomer, groupName,
> groupNameLocal, officeSiteName, annualRevenue, numEmployees, tickerSymbol,
> logoImageUrl
> ---- stack trace
> ---------------------------------------------------------------
> java.lang.IllegalArgumentException: [GenericEntity.set] "locale" is not a
> field of PartyRoleDetailAndPartyDetail, must be one of: personComments,
> partyGroupComments, partyId, partyTypeId, externalId,
> preferredCurrencyUomId, statusId, createdDate, createdByUserLogin,
> lastModifiedDate, lastModifiedByUserLogin, dataSourceId, isUnread,
> roleTypeId, parentTypeId, hasTable, description, salutation, firstName,
> middleName, lastName, personalTitle, suffix, nickname, firstNameLocal,
> middleNameLocal, lastNameLocal, otherLocal, memberId, gender, birthDate,
> height, weight, mothersMaidenName, maritalStatus, socialSecurityNumber,
> passportNumber, passportExpireDate, totalYearsWorkExperience,
> employmentStatusEnumId, residenceStatusEnumId, occupation,
> yearsWithEmployer, monthsWithEmployer, existingCustomer, groupName,
> groupNameLocal, officeSiteName, annualRevenue, numEmployees, tickerSymbol,
> logoImageUrl
> org.ofbiz.entity.GenericEntity.set(GenericEntity.java:385)
> org.ofbiz.entity.GenericEntity.setFields(GenericEntity.java:908)
> org.ofbiz.entity.GenericEntity.init(GenericEntity.java:163)
> org.ofbiz.entity.GenericPK.create(GenericPK.java:51)
> org.ofbiz.entity.GenericDelegator.makePK(GenericDelegator.java:562)
> org.ofbiz.entity.GenericDelegator.findOne(GenericDelegator.java:1473)
>
> org.ofbiz.minilang.method.entityops.FindByPrimaryKey.exec(FindByPrimaryKey.java:88)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:1104)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:744)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:134)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:110)
> org.ofbiz.testtools.SimpleMethodTest.run(SimpleMethodTest.java:64)
> junit.framework.TestSuite.runTest(TestSuite.java:208)
> junit.framework.TestSuite.run(TestSuite.java:203)
> org.ofbiz.testtools.TestRunContainer.start(TestRunContainer.java:134)
> org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:101)
> org.ofbiz.base.start.Start.startStartLoaders(Start.java:263)
> org.ofbiz.base.start.Start.startServer(Start.java:312)
> org.ofbiz.base.start.Start.start(Start.java:316)
> org.ofbiz.base.start.Start.main(Start.java:399)
>
> --------------------------------------------------------------------------------
> Regards
> Scott
>
> 2008/6/14 Vikas Mayur <[hidden email]>:
>
> > Thanks Scott - Interesting change.
> >
> > BTW, I wasn't getting this error while running test case on Derby - and
> so
> > did this commit.
> >
> > Vikas
> >
> >
> > On Sat, Jun 14, 2008 at 3:35 AM, <[hidden email]> wrote:
> >
> > > Author: lektran
> > > Date: Fri Jun 13 15:05:56 2008
> > > New Revision: 667667
> > >
> > > URL: http://svn.apache.org/viewvc?rev=667667&view=rev
> > > Log:
> > > Fix a problem that was causing the one of the party tests to fail.  The
> > > call-service operation adds the fields locale and userLogin to the
> in-map
> > > which was causing the find-by-primary-key operation to throw an error.
> > >
> > > Modified:
> > >
> > >
> >
>  ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > >
> > > Modified:
> > >
> >
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > > URL:
> > >
> >
> http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml?rev=667667&r1=667666&r2=667667&view=diff
> > >
> > >
> >
> ==============================================================================
> > > ---
> > >
> >
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > > (original)
> > > +++
> > >
> >
> ofbiz/trunk/applications/party/script/org/ofbiz/party/test/PartyTestServices.xml
> > > Fri Jun 13 15:05:56 2008
> > > @@ -33,14 +33,14 @@
> > >         <!-- Post condition:
> > >              1. Selected party and information should be displayed in
> > > search result
> > >         -->
> > > -        <set field="serviceCtx.partyId" value="DemoCustomer"/>
> > > -        <set field="serviceCtx.roleTypeId" value="CUSTOMER"/>
> > > -
> > > +        <set field="searchParams.partyId" value="DemoCustomer"/>
> > > +        <set field="searchParams.roleTypeId" value="CUSTOMER"/>
> > > +        <map-to-map map-name="searchParams" to-map-name="serviceCtx"/>
> > >         <call-service service-name="findParty"
> in-map-name="serviceCtx">
> > >             <results-to-map map-name="partyList"/>
> > >         </call-service>
> > >
> > > -        <find-by-primary-key
> entity-name="PartyRoleDetailAndPartyDetail"
> > > map-name="serviceCtx" value-name="partyRoleDetailAndPartyDetail"/>
> > > +        <find-by-primary-key
> entity-name="PartyRoleDetailAndPartyDetail"
> > > map-name="searchParams" value-name="partyRoleDetailAndPartyDetail"/>
> > >         <if-not-empty field-name="partyRoleDetailAndPartyDetail">
> > >             <assert><not><if-empty
> > field-name="partyList"/></not></assert>
> > >         <else>
> > >
> > >
> > >
> >
>