You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacek Wagner <ja...@berkeley.edu> on 2008/12/02 02:24:20 UTC

Possible error in ofbiz?

All,

Below are two almost identical simple methods. When tested thru 
WebToolsService/Service Reference the first getBirthdayParty works the 
second
getProductPrice produces exception 2008-12-01 17:13:17,641 
(http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ] 
Field value not found with name productPrice in Map with name

    <simple-method method-name="getBirthdayParty" 
short-description="Retrieve birthday party information">
        <!-- find the birthday party record -->
        <make-value value-name="lookupPKMap" 
entity-name="RegistrationBirthdayParty"/>
        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
        <find-by-primary-key entity-name="RegistrationBirthdayParty" 
map-name="lookupPKMap" value-name="bpiValue"/>
        <field-to-result field-name="bpiValue" result-name="bpinformation"/>
    </simple-method>
   
    <simple-method method-name="getProductPrice" 
short-description="Retrieve product price information">
        <!-- find product price record -->
        <make-value value-name="lookupPKMap" 
entity-name="ProductPrice"/>       
        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
        <find-by-primary-key entity-name="ProductPrice" 
map-name="lookupPKMap" value-name="productPrice"/>
        <field-to-result field-name="productPrice" result-name="pprice"/>
    </simple-method>

Jacek


Re: Possible error in ofbiz?

Posted by David E Jones <da...@hotwaxmedia.com>.
Actually no, it is just a simple-method warning to let you know there  
is no value when an operation implied there would be.

-David


On Dec 2, 2008, at 1:57 PM, BJ Freeman wrote:

> could also mean that there is no field by that name.
>
> Jacek Wagner sent the following on 12/2/2008 8:38 AM:
>> It was one of the most confusing messages in the log.
>> .... Field value not found with name productPrice in Map with  
>> name ....
>>
>> really meant that  query did not  return  any  value; data not syntax
>> problem
>>
>> BJ Freeman wrote:
>>> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
>>>
>>> no producPrice in the Entity.
>>> try price.
>>> also
>>> https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
>>>
>>> to find the FK names which are not fields.
>>>
>>> Jacek Wagner sent the following on 12/1/2008 5:24 PM:
>>>
>>>> All,
>>>>
>>>> Below are two almost identical simple methods. When tested thru
>>>> WebToolsService/Service Reference the first getBirthdayParty  
>>>> works the
>>>> second
>>>> getProductPrice produces exception 2008-12-01 17:13:17,641
>>>> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
>>>> Field value not found with name productPrice in Map with name
>>>>
>>>>   <simple-method method-name="getBirthdayParty"
>>>> short-description="Retrieve birthday party information">
>>>>       <!-- find the birthday party record -->
>>>>       <make-value value-name="lookupPKMap"
>>>> entity-name="RegistrationBirthdayParty"/>
>>>>       <set-pk-fields map-name="parameters" value- 
>>>> name="lookupPKMap"/>
>>>>       <find-by-primary-key entity-name="RegistrationBirthdayParty"
>>>> map-name="lookupPKMap" value-name="bpiValue"/>
>>>>       <field-to-result field-name="bpiValue"
>>>> result-name="bpinformation"/>
>>>>   </simple-method>
>>>>     <simple-method method-name="getProductPrice"
>>>> short-description="Retrieve product price information">
>>>>       <!-- find product price record -->
>>>>       <make-value value-name="lookupPKMap"
>>>> entity-name="ProductPrice"/>              <set-pk-fields
>>>> map-name="parameters" value-name="lookupPKMap"/>
>>>>       <find-by-primary-key entity-name="ProductPrice"
>>>> map-name="lookupPKMap" value-name="productPrice"/>
>>>>       <field-to-result field-name="productPrice" result- 
>>>> name="pprice"/>
>>>>   </simple-method>
>>>>
>>>> Jacek
>>>>
>>>>
>>>>
>>>>
>>
>>
>>


Re: Possible error in ofbiz?

Posted by BJ Freeman <bj...@free-man.net>.
could also mean that there is no field by that name.

Jacek Wagner sent the following on 12/2/2008 8:38 AM:
> It was one of the most confusing messages in the log.
> .... Field value not found with name productPrice in Map with name ....
> 
> really meant that  query did not  return  any  value; data not syntax
> problem
> 
> BJ Freeman wrote:
>> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
>>
>> no producPrice in the Entity.
>> try price.
>> also
>> https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
>>
>> to find the FK names which are not fields.
>>
>> Jacek Wagner sent the following on 12/1/2008 5:24 PM:
>>  
>>> All,
>>>
>>> Below are two almost identical simple methods. When tested thru
>>> WebToolsService/Service Reference the first getBirthdayParty works the
>>> second
>>> getProductPrice produces exception 2008-12-01 17:13:17,641
>>> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
>>> Field value not found with name productPrice in Map with name
>>>
>>>    <simple-method method-name="getBirthdayParty"
>>> short-description="Retrieve birthday party information">
>>>        <!-- find the birthday party record -->
>>>        <make-value value-name="lookupPKMap"
>>> entity-name="RegistrationBirthdayParty"/>
>>>        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>>>        <find-by-primary-key entity-name="RegistrationBirthdayParty"
>>> map-name="lookupPKMap" value-name="bpiValue"/>
>>>        <field-to-result field-name="bpiValue"
>>> result-name="bpinformation"/>
>>>    </simple-method>
>>>      <simple-method method-name="getProductPrice"
>>> short-description="Retrieve product price information">
>>>        <!-- find product price record -->
>>>        <make-value value-name="lookupPKMap"
>>> entity-name="ProductPrice"/>              <set-pk-fields
>>> map-name="parameters" value-name="lookupPKMap"/>
>>>        <find-by-primary-key entity-name="ProductPrice"
>>> map-name="lookupPKMap" value-name="productPrice"/>
>>>        <field-to-result field-name="productPrice" result-name="pprice"/>
>>>    </simple-method>
>>>
>>> Jacek
>>>
>>>
>>>
>>>     
> 
> 
> 

Re: Possible error in ofbiz?

Posted by Jacek Wagner <ja...@berkeley.edu>.
It was one of the most confusing messages in the log. 

.... Field value not found with name productPrice in Map with name ....

really meant that  query did not  return  any  value; data not syntax 
problem

BJ Freeman wrote:
> https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
> no producPrice in the Entity.
> try price.
> also
> https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
> to find the FK names which are not fields.
>
> Jacek Wagner sent the following on 12/1/2008 5:24 PM:
>   
>> All,
>>
>> Below are two almost identical simple methods. When tested thru
>> WebToolsService/Service Reference the first getBirthdayParty works the
>> second
>> getProductPrice produces exception 2008-12-01 17:13:17,641
>> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
>> Field value not found with name productPrice in Map with name
>>
>>    <simple-method method-name="getBirthdayParty"
>> short-description="Retrieve birthday party information">
>>        <!-- find the birthday party record -->
>>        <make-value value-name="lookupPKMap"
>> entity-name="RegistrationBirthdayParty"/>
>>        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>>        <find-by-primary-key entity-name="RegistrationBirthdayParty"
>> map-name="lookupPKMap" value-name="bpiValue"/>
>>        <field-to-result field-name="bpiValue" result-name="bpinformation"/>
>>    </simple-method>
>>      <simple-method method-name="getProductPrice"
>> short-description="Retrieve product price information">
>>        <!-- find product price record -->
>>        <make-value value-name="lookupPKMap"
>> entity-name="ProductPrice"/>              <set-pk-fields
>> map-name="parameters" value-name="lookupPKMap"/>
>>        <find-by-primary-key entity-name="ProductPrice"
>> map-name="lookupPKMap" value-name="productPrice"/>
>>        <field-to-result field-name="productPrice" result-name="pprice"/>
>>    </simple-method>
>>
>> Jacek
>>
>>
>>
>>     


Re: Possible error in ofbiz?

Posted by BJ Freeman <bj...@free-man.net>.
https://demo.hotwaxmedia.com/webtools/control/FindGeneric?entityName=ProductPrice&find=true&VIEW_SIZE=50&VIEW_INDEX=0
no producPrice in the Entity.
try price.
also
https://demo.hotwaxmedia.com/webtools/control/ViewRelations?entityName=ProductPrice
to find the FK names which are not fields.

Jacek Wagner sent the following on 12/1/2008 5:24 PM:
> All,
> 
> Below are two almost identical simple methods. When tested thru
> WebToolsService/Service Reference the first getBirthdayParty works the
> second
> getProductPrice produces exception 2008-12-01 17:13:17,641
> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ]
> Field value not found with name productPrice in Map with name
> 
>    <simple-method method-name="getBirthdayParty"
> short-description="Retrieve birthday party information">
>        <!-- find the birthday party record -->
>        <make-value value-name="lookupPKMap"
> entity-name="RegistrationBirthdayParty"/>
>        <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>        <find-by-primary-key entity-name="RegistrationBirthdayParty"
> map-name="lookupPKMap" value-name="bpiValue"/>
>        <field-to-result field-name="bpiValue" result-name="bpinformation"/>
>    </simple-method>
>      <simple-method method-name="getProductPrice"
> short-description="Retrieve product price information">
>        <!-- find product price record -->
>        <make-value value-name="lookupPKMap"
> entity-name="ProductPrice"/>              <set-pk-fields
> map-name="parameters" value-name="lookupPKMap"/>
>        <find-by-primary-key entity-name="ProductPrice"
> map-name="lookupPKMap" value-name="productPrice"/>
>        <field-to-result field-name="productPrice" result-name="pprice"/>
>    </simple-method>
> 
> Jacek
> 
> 
> 

Re: Possible error in ofbiz?

Posted by guo weizhan <gu...@gmail.com>.
It seems you didn't get the entity correctly. Check the parameters to see is
there the right parameters you passed.

2008/12/2 Jacek Wagner <ja...@berkeley.edu>

> All,
>
> Below are two almost identical simple methods. When tested thru
> WebToolsService/Service Reference the first getBirthdayParty works the
> second
> getProductPrice produces exception 2008-12-01 17:13:17,641
> (http-0.0.0.0-8443-Processor4) [      FieldToResult.java:66 :WARN ] Field
> value not found with name productPrice in Map with name
>
>   <simple-method method-name="getBirthdayParty" short-description="Retrieve
> birthday party information">
>       <!-- find the birthday party record -->
>       <make-value value-name="lookupPKMap"
> entity-name="RegistrationBirthdayParty"/>
>       <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>       <find-by-primary-key entity-name="RegistrationBirthdayParty"
> map-name="lookupPKMap" value-name="bpiValue"/>
>       <field-to-result field-name="bpiValue" result-name="bpinformation"/>
>   </simple-method>
>     <simple-method method-name="getProductPrice"
> short-description="Retrieve product price information">
>       <!-- find product price record -->
>       <make-value value-name="lookupPKMap" entity-name="ProductPrice"/>
>         <set-pk-fields map-name="parameters" value-name="lookupPKMap"/>
>       <find-by-primary-key entity-name="ProductPrice"
> map-name="lookupPKMap" value-name="productPrice"/>
>       <field-to-result field-name="productPrice" result-name="pprice"/>
>   </simple-method>
>
> Jacek
>
>