Using CXF 2.1.10, If the response XML contains empty tag for a Date Type e.g.
<EndDate/> or Decimal Type <Amount/>
JAXB throws a Unmarshalling Error
java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:457)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at
com.sun.xml.bind.DatatypeConverterImpl._parseDecimal(DatatypeConverterImpl.java:169)
at
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$23.parse(RuntimeBuiltinLeafInfoImpl.java:749)
at
com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$23.parse(RuntimeBuiltinLeafInfoImpl.java:747)
after debugging CXF, i think the code that's causing this problem is
um.setEventHandler(null); in DataReaderImpl.
Is there a workaround for this?
--
View this message in context:
http://cxf.547215.n5.nabble.com/Unmarshalling-Error-tp1044775p1044775.html
Sent from the cxf-user mailing list archive at Nabble.com.