François de Parscau created CXF-8966:
----------------------------------------

             Summary: 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.5.5, 3.4.10
            Reporter: François de Parscau


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)

Reply via email to