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" <[email protected]> To: <[email protected]>; "Jacques Le Roux" <[email protected]>
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" <[email protected]>
To: <[email protected]>
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" <[email protected]>
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 via email to