createPaymentFromPreference : Error modelservice validate convertuom

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

createPaymentFromPreference : Error modelservice validate convertuom

Eric DE MAULDE
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
Reply | Threaded
Open this post in threaded view
|

Re: createPaymentFromPreference : Error modelservice validate convertuom

Jacques Le Roux
Administrator
Hi Eric,

Are you able to reproduce this error on demo server ?

Jacques

From: "Eric DE MAULDE" <[hidden email]>
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

Reply | Threaded
Open this post in threaded view
|

Re: createPaymentFromPreference : Error modelservice validate convertuom

Eric DE MAULDE
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" <[hidden email]>
To: <[hidden email]>
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" <[hidden email]>
> 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
>

Reply | Threaded
Open this post in threaded view
|

Re: createPaymentFromPreference : Error modelservice validate convertuom

Eric DE MAULDE
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" <[hidden email]>
To: <[hidden email]>; "Jacques Le Roux"
<[hidden email]>
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" <[hidden email]>
> To: <[hidden email]>
> 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" <[hidden email]>
>> 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
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: createPaymentFromPreference : Error modelservice validate convertuom

Jacques Le Roux
Administrator
From: "Eric DE MAULDE" <[hidden email]>
> 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" <[hidden email]>
> To: <[hidden email]>; "Jacques Le Roux"
> <[hidden email]>
> 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" <[hidden email]>
>> To: <[hidden email]>
>> 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" <[hidden email]>
>>> 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
>>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: createPaymentFromPreference : Error modelservice validate convertuom

Jacques Le Roux
Administrator
Hi Eric,

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

Jacques

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

> From: "Eric DE MAULDE" <[hidden email]>
>> 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" <[hidden email]>
>> To: <[hidden email]>; "Jacques Le Roux"
>> <[hidden email]>
>> 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" <[hidden email]>
>>> To: <[hidden email]>
>>> 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" <[hidden email]>
>>>> 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
>>>>
>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Resolved : createPaymentFromPreference : Error modelservice validate convertuom

Eric DE MAULDE
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" <[hidden email]>
To: <[hidden email]>; "Jacques Le Roux"
<[hidden email]>
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" <[hidden email]>
>> From: "Eric DE MAULDE" <[hidden email]>
>>> 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" <[hidden email]>
>>> To: <[hidden email]>; "Jacques Le Roux"
>>> <[hidden email]>
>>> 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" <[hidden email]>
>>>> To: <[hidden email]>
>>>> 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" <[hidden email]>
>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>
>
>