You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Peter Palaga (Jira)" <ji...@apache.org> on 2026/05/22 19:45:00 UTC

[jira] [Commented] (CXF-8966) Failure to validate null xsd:int

    [ https://issues.apache.org/jira/browse/CXF-8966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18082963#comment-18082963 ] 

Peter Palaga commented on CXF-8966:
-----------------------------------

This issue was fixed in Woodstox via https://github.com/FasterXML/woodstox/pull/245#event-25455969220
The fix is available in Woodstox 7.2.0

> Failure to validate null xsd:int
> --------------------------------
>
>                 Key: CXF-8966
>                 URL: https://issues.apache.org/jira/browse/CXF-8966
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.4.10, 3.5.5
>            Reporter: François de Parscau
>            Priority: Minor
>
> when  a wsdl defines an element like this
> {code}
>  <xsd:element nillable="true" name="inInt" type="xsd:int" maxOccurs="1" minOccurs="0" ></xsd:element>
> {code}
> and the resquest sent  this element with a nil=true 
> {code}
>  <inInt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
> {code}
> an exception is raised :
> {code}
> org.apache.cxf.interceptor.Fault: Unmarshalling Error: Not a number: ? 
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:931) ~[bundleFile:3.4.4]
> 	at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:737) ~[bundleFile:3.4.4]
> 	at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:170) ~[bundleFile:3.4.4]
> 	at org.apache.cxf.wsdl.interceptors.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:109) ~[bundleFile:3.4.4]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)