Skip to content
Advertisement

Unable to add boolean value to contextProperties map of JAXBDataBinding in cxf beans xml

I am trying to set com.sun.xml.bind.treatEverythingNillable property to true as mentioned in document. But is throwing error.

How can I set the com.sun.xml.bind.treatEverythingNillable to Boolean TRUE Object?

https://cxf.apache.org/docs/jaxb.html

JavaScript

Error

JavaScript

Windows 10 + JDK8 + Tomcat 8.75 + JAXB 3.3.10

Advertisement

Answer

Copy / pasting the answer from the ticket (https://issues.apache.org/jira/browse/CXF-8656). The problem is that you initialize this property with string value “true”, not boolean value true as property expects:

JavaScript

Please use:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement