You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Eric DE MAULDE <er...@free.fr> on 2009/02/01 13:02:58 UTC

createPaymentFromPreference : Error modelservice validate convertuom

Hi,

When I call the service : createPaymentFromPreference

*** Error is :
[ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} : (IN) Required test error: org.ofbiz.service.ServiceValidationException: Type check failed for field [convertUom.originalValue]; expected type is [Double]; actual type is [java.math.BigDecimal]

The entity "OrderPaymentPreference" contains a field "maxAmount" with type BigDecimal
I put a BigDecimal in : paymentPreference.set("maxAmount", new BigDecimal(string));

I don't know where does error come from !!  


Eric 

Resolved : createPaymentFromPreference : Error modelservice validate convertuom

Posted by Eric DE MAULDE <er...@free.fr>.
Resolved

In Accounting / General Ledger
Demo Company Accounting Preferences is USD for base currency
So ModelService wants to convert  EURO payments into USD currency.

I have changed this value, my external payments are OK now !!!!

Eric

----- Original Message ----- 
From: "Jacques Le Roux" <ja...@les7arts.com>
To: <us...@ofbiz.apache.org>; "Jacques Le Roux" 
<ja...@les7arts.com>
Sent: Wednesday, February 04, 2009 11:06 PM
Subject: Re: createPaymentFromPreference : Error modelservice validate 
convertuom


> Hi Eric,
>
> Mmm, I guess EUT was typed in manually, forget my question... :/
>
> Jacques
>
> From: "Jacques Le Roux" <ja...@les7arts.com>
>> From: "Eric DE MAULDE" <er...@free.fr>
>>> Hello,
>>>
>>> When I call the service : createPaymentFromPreference
>>>
>>> ModelService is called from ???
>>> ModelService.validate wants to convert payment amount from EUT to USD
>>
>> EUT <> EUR ?
>>
>> Jacques
>>
>>
>>> requiredInfo =[uomId=String, uomIdTo=String, originalValue=Double]
>>> requiredTest =[originalValue=928.00, uomId=EUR, uomIdTo=USD]
>>>
>>> *** My configuration :
>>> general.properties contains "currency.uom.id.default=EUR"
>>> UI : Store - Default Currenry Uom Id = EUR - Euro
>>>
>>> Do you know why an OFBiz service want to convert payment amounts from my 
>>> response servlet ?
>>>
>>> Thanks
>>>
>>> Eric
>>> ----- Original Message ----- 
>>> From: "Eric DE MAULDE" <er...@free.fr>
>>> To: <us...@ofbiz.apache.org>; "Jacques Le Roux" 
>>> <ja...@les7arts.com>
>>> Sent: Tuesday, February 03, 2009 12:02 AM
>>> Subject: Re: createPaymentFromPreference : Error modelservice validate 
>>> convertuom
>>>
>>>
>>>> Hello Jacques,
>>>>
>>>> I can't reproduce this error.
>>>> Because I implemented the SIPS payment from Atos Origin (remember you)
>>>> This error comes from SIPS response servlet.
>>>> I'm just cheking with log everywhere, where is the wrong entity type !
>>>>
>>>> I'm going to send you a screenshot
>>>>
>>>> Thanks
>>>>
>>>> Eric
>>>> ----- Original Message ----- 
>>>> From: "Jacques Le Roux" <ja...@les7arts.com>
>>>> To: <us...@ofbiz.apache.org>
>>>> Sent: Monday, February 02, 2009 10:54 PM
>>>> Subject: Re: createPaymentFromPreference : Error modelservice validate 
>>>> convertuom
>>>>
>>>>
>>>>> Hi Eric,
>>>>>
>>>>> Are you able to reproduce this error on demo server ?
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "Eric DE MAULDE" <er...@free.fr>
>>>>> Hi,
>>>>>
>>>>> When I call the service : createPaymentFromPreference
>>>>>
>>>>> *** Error is :
>>>>> [ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} 
>>>>> : (IN) Required test error: 
>>>>> org.ofbiz.service.ServiceValidationException: Type check failed for 
>>>>> field [convertUom.originalValue]; expected type is [Double]; actual 
>>>>> type is [java.math.BigDecimal]
>>>>>
>>>>> The entity "OrderPaymentPreference" contains a field "maxAmount" with 
>>>>> type BigDecimal
>>>>> I put a BigDecimal in : paymentPreference.set("maxAmount", new 
>>>>> BigDecimal(string));
>>>>>
>>>>> I don't know where does error come from !!
>>>>>
>>>>>
>>>>> Eric
>>>>>
>>>>
>>>>
>>>
>>
>
> 


Re: createPaymentFromPreference : Error modelservice validate convertuom

Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Eric,

Mmm, I guess EUT was typed in manually, forget my question... :/

Jacques

From: "Jacques Le Roux" <ja...@les7arts.com>
> From: "Eric DE MAULDE" <er...@free.fr>
>> Hello,
>> 
>> When I call the service : createPaymentFromPreference
>> 
>> ModelService is called from ???
>> ModelService.validate wants to convert payment amount from EUT to USD
> 
> EUT <> EUR ?
> 
> Jacques
> 
> 
>> requiredInfo =[uomId=String, uomIdTo=String, originalValue=Double]
>> requiredTest =[originalValue=928.00, uomId=EUR, uomIdTo=USD]
>> 
>> *** My configuration :
>> general.properties contains "currency.uom.id.default=EUR"
>> UI : Store - Default Currenry Uom Id = EUR - Euro
>> 
>> Do you know why an OFBiz service want to convert payment amounts from my 
>> response servlet ?
>> 
>> Thanks
>> 
>> Eric
>> ----- Original Message ----- 
>> From: "Eric DE MAULDE" <er...@free.fr>
>> To: <us...@ofbiz.apache.org>; "Jacques Le Roux" 
>> <ja...@les7arts.com>
>> Sent: Tuesday, February 03, 2009 12:02 AM
>> Subject: Re: createPaymentFromPreference : Error modelservice validate 
>> convertuom
>> 
>> 
>>> Hello Jacques,
>>>
>>> I can't reproduce this error.
>>> Because I implemented the SIPS payment from Atos Origin (remember you)
>>> This error comes from SIPS response servlet.
>>> I'm just cheking with log everywhere, where is the wrong entity type !
>>>
>>> I'm going to send you a screenshot
>>>
>>> Thanks
>>>
>>> Eric
>>> ----- Original Message ----- 
>>> From: "Jacques Le Roux" <ja...@les7arts.com>
>>> To: <us...@ofbiz.apache.org>
>>> Sent: Monday, February 02, 2009 10:54 PM
>>> Subject: Re: createPaymentFromPreference : Error modelservice validate 
>>> convertuom
>>>
>>>
>>>> Hi Eric,
>>>>
>>>> Are you able to reproduce this error on demo server ?
>>>>
>>>> Jacques
>>>>
>>>> From: "Eric DE MAULDE" <er...@free.fr>
>>>> Hi,
>>>>
>>>> When I call the service : createPaymentFromPreference
>>>>
>>>> *** Error is :
>>>> [ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} : 
>>>> (IN) Required test error: org.ofbiz.service.ServiceValidationException: 
>>>> Type check failed for field [convertUom.originalValue]; expected type is 
>>>> [Double]; actual type is [java.math.BigDecimal]
>>>>
>>>> The entity "OrderPaymentPreference" contains a field "maxAmount" with 
>>>> type BigDecimal
>>>> I put a BigDecimal in : paymentPreference.set("maxAmount", new 
>>>> BigDecimal(string));
>>>>
>>>> I don't know where does error come from !!
>>>>
>>>>
>>>> Eric
>>>>
>>>
>>> 
>>
>


Re: createPaymentFromPreference : Error modelservice validate convertuom

Posted by Jacques Le Roux <ja...@les7arts.com>.
From: "Eric DE MAULDE" <er...@free.fr>
> Hello,
> 
> When I call the service : createPaymentFromPreference
> 
> ModelService is called from ???
> ModelService.validate wants to convert payment amount from EUT to USD

EUT <> EUR ?

Jacques

 
> requiredInfo =[uomId=String, uomIdTo=String, originalValue=Double]
> requiredTest =[originalValue=928.00, uomId=EUR, uomIdTo=USD]
> 
> *** My configuration :
> general.properties contains "currency.uom.id.default=EUR"
> UI : Store - Default Currenry Uom Id = EUR - Euro
> 
> Do you know why an OFBiz service want to convert payment amounts from my 
> response servlet ?
> 
> Thanks
> 
> Eric
> ----- Original Message ----- 
> From: "Eric DE MAULDE" <er...@free.fr>
> To: <us...@ofbiz.apache.org>; "Jacques Le Roux" 
> <ja...@les7arts.com>
> Sent: Tuesday, February 03, 2009 12:02 AM
> Subject: Re: createPaymentFromPreference : Error modelservice validate 
> convertuom
> 
> 
>> Hello Jacques,
>>
>> I can't reproduce this error.
>> Because I implemented the SIPS payment from Atos Origin (remember you)
>> This error comes from SIPS response servlet.
>> I'm just cheking with log everywhere, where is the wrong entity type !
>>
>> I'm going to send you a screenshot
>>
>> Thanks
>>
>> Eric
>> ----- Original Message ----- 
>> From: "Jacques Le Roux" <ja...@les7arts.com>
>> To: <us...@ofbiz.apache.org>
>> Sent: Monday, February 02, 2009 10:54 PM
>> Subject: Re: createPaymentFromPreference : Error modelservice validate 
>> convertuom
>>
>>
>>> Hi Eric,
>>>
>>> Are you able to reproduce this error on demo server ?
>>>
>>> Jacques
>>>
>>> From: "Eric DE MAULDE" <er...@free.fr>
>>> Hi,
>>>
>>> When I call the service : createPaymentFromPreference
>>>
>>> *** Error is :
>>> [ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} : 
>>> (IN) Required test error: org.ofbiz.service.ServiceValidationException: 
>>> Type check failed for field [convertUom.originalValue]; expected type is 
>>> [Double]; actual type is [java.math.BigDecimal]
>>>
>>> The entity "OrderPaymentPreference" contains a field "maxAmount" with 
>>> type BigDecimal
>>> I put a BigDecimal in : paymentPreference.set("maxAmount", new 
>>> BigDecimal(string));
>>>
>>> I don't know where does error come from !!
>>>
>>>
>>> Eric
>>>
>>
>> 
>


Re: createPaymentFromPreference : Error modelservice validate convertuom

Posted by Eric DE MAULDE <er...@free.fr>.
Hello,

When I call the service : createPaymentFromPreference

ModelService is called from ???
ModelService.validate wants to convert payment amount from EUT to USD

requiredInfo =[uomId=String, uomIdTo=String, originalValue=Double]
requiredTest =[originalValue=928.00, uomId=EUR, uomIdTo=USD]

*** My configuration :
general.properties contains "currency.uom.id.default=EUR"
UI : Store - Default Currenry Uom Id = EUR - Euro

Do you know why an OFBiz service want to convert payment amounts from my 
response servlet ?

Thanks

Eric
----- Original Message ----- 
From: "Eric DE MAULDE" <er...@free.fr>
To: <us...@ofbiz.apache.org>; "Jacques Le Roux" 
<ja...@les7arts.com>
Sent: Tuesday, February 03, 2009 12:02 AM
Subject: Re: createPaymentFromPreference : Error modelservice validate 
convertuom


> Hello Jacques,
>
> I can't reproduce this error.
> Because I implemented the SIPS payment from Atos Origin (remember you)
> This error comes from SIPS response servlet.
> I'm just cheking with log everywhere, where is the wrong entity type !
>
> I'm going to send you a screenshot
>
> Thanks
>
> Eric
> ----- Original Message ----- 
> From: "Jacques Le Roux" <ja...@les7arts.com>
> To: <us...@ofbiz.apache.org>
> Sent: Monday, February 02, 2009 10:54 PM
> Subject: Re: createPaymentFromPreference : Error modelservice validate 
> convertuom
>
>
>> Hi Eric,
>>
>> Are you able to reproduce this error on demo server ?
>>
>> Jacques
>>
>> From: "Eric DE MAULDE" <er...@free.fr>
>> Hi,
>>
>> When I call the service : createPaymentFromPreference
>>
>> *** Error is :
>> [ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} : 
>> (IN) Required test error: org.ofbiz.service.ServiceValidationException: 
>> Type check failed for field [convertUom.originalValue]; expected type is 
>> [Double]; actual type is [java.math.BigDecimal]
>>
>> The entity "OrderPaymentPreference" contains a field "maxAmount" with 
>> type BigDecimal
>> I put a BigDecimal in : paymentPreference.set("maxAmount", new 
>> BigDecimal(string));
>>
>> I don't know where does error come from !!
>>
>>
>> Eric
>>
>
> 


Re: createPaymentFromPreference : Error modelservice validate convertuom

Posted by Eric DE MAULDE <er...@free.fr>.
Hello Jacques,

I can't reproduce this error.
Because I implemented the SIPS payment from Atos Origin (remember you)
This error comes from SIPS response servlet.
I'm just cheking with log everywhere, where is the wrong entity type !

I'm going to send you a screenshot

Thanks

Eric
----- Original Message ----- 
From: "Jacques Le Roux" <ja...@les7arts.com>
To: <us...@ofbiz.apache.org>
Sent: Monday, February 02, 2009 10:54 PM
Subject: Re: createPaymentFromPreference : Error modelservice validate 
convertuom


> Hi Eric,
>
> Are you able to reproduce this error on demo server ?
>
> Jacques
>
> From: "Eric DE MAULDE" <er...@free.fr>
> Hi,
>
> When I call the service : createPaymentFromPreference
>
> *** Error is :
> [ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} : 
> (IN) Required test error: org.ofbiz.service.ServiceValidationException: 
> Type check failed for field [convertUom.originalValue]; expected type is 
> [Double]; actual type is [java.math.BigDecimal]
>
> The entity "OrderPaymentPreference" contains a field "maxAmount" with type 
> BigDecimal
> I put a BigDecimal in : paymentPreference.set("maxAmount", new 
> BigDecimal(string));
>
> I don't know where does error come from !!
>
>
> Eric
> 


Re: createPaymentFromPreference : Error modelservice validate convertuom

Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Eric,

Are you able to reproduce this error on demo server ?

Jacques

From: "Eric DE MAULDE" <er...@free.fr>
Hi,

When I call the service : createPaymentFromPreference

*** Error is :
[ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom} : (IN) Required test error: 
org.ofbiz.service.ServiceValidationException: Type check failed for field [convertUom.originalValue]; expected type is [Double]; 
actual type is [java.math.BigDecimal]

The entity "OrderPaymentPreference" contains a field "maxAmount" with type BigDecimal
I put a BigDecimal in : paymentPreference.set("maxAmount", new BigDecimal(string));

I don't know where does error come from !!


Eric