Hello,

I currently have a problem concerning Camel Bindy. I have a csv file that
should be parsed with Camel Bindy using a given model class. This csv file
contains a number that should be parsed as a BigDecimal. The problem is that
this number contains a comma as a grouping separator and a point as the
decimal separator.
If I start the camel route the unmarshal process will throw a
NumberFormatException mentioning the invalid format of that number. So I
tried to add a pattern to the DataField annotation, but the error stays.

After digging throw the documentation (http://camel.apache.org/bindy.html)
and the source code of FormatFactory
(http://grepcode.com/file_/repo1.maven.org/maven2/org.apache.camel/camel-bindy/2.13.1/org/apache/camel/dataformat/bindy/FormatFactory.java/?v=source)
I'm a little bit confused, because the documentation mentions the ability to
specify a grouping separator, but the source code shows that the pattern is
ignored for BigDecimal data types.

Does anyone know how to specify that grouping separator? Or is this not
implemented yet?

Many thanks in advance.

Best regards.
Tom

P.S. I also posted that question on stackoverflow
(http://stackoverflow.com/questions/25381052/camel-bindy-add-pattern-for-bigdecimal-type),
but with no luck yet.

P.P.S. I posted that question using nabble.com 
(http://camel.465427.n5.nabble.com/Camel-Users-f465428.html) some moments ago, 
but it seems that there is a problem with my mail provider that doesn't allow 
services like this. So I'm sending this question directly now. Sorry for any 
inconveniences.

Reply via email to