[OFBiz] Users - Ecommerce Currency Comma Problems
Uli Suppa
USuppa at yahoo.de
Fri Sep 24 17:11:40 EDT 2004
Hi all,
i just found the cause for the error. its because i am using a german
windows 2000, the language preferences are of cause set to german, and
the german decimal for numbers or currency is "," .
so ofbiz tries to use the "," for calculations and produces the error.
setting my windows language preferences to en_US solved the problem,
everything goes right now.
regards uli.
Uli Suppa schrieb:
> Hello everyone,
>
> my system ist latest OfBiz from svn, Win2k, MySQL-4.0.18 with
> mysql-connector-java-3.0.11 as jdbc driver.
>
> i try to setup a german onlineshop so i changed the currency in my
> created store to EUR. edited
> /ofbiz/commponents/common/config/general.properties and changed:
>
> currency.uom.id.default=EUR
> currency.decimal.format=##0,00
> country.uom.id.default=DE
>
> now i can order products as long as the default and list price are
> integers, if i change a price to 12,50 the order fails:
>
> [java] ---- runtime exception report
> --------------------------------------------------
> [java] Async-Service failed.
> [java] Exception: java.lang.NumberFormatException
> [java] Message: For input string: "12,5"
> [java] ---- stack trace
> ---------------------------------------------------------------
> [java] java.lang.NumberFormatException: For input string: "12,5"
> [java] java.lang.NumberFormatException.forInputString(Unknown source)
> [java] java.lang.FloatingDecimal.readJavaFormatString(Unknown Source)
> [java] java.lang.Double.valueOf(Unknown Source)
> [java] org.ofbiz.entity.GenericEntity.setString(GenericEntity.java:398)
> [java]
> org.ofbiz.entity.GenericDelegator.makeValue(GenericDelegator.java:2033)
>
> any ideas ? did I miss any config switch ?
>
> sincerely uli.
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
More information about the Users
mailing list