Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2777

org.apache.cxf.interceptor.Fault: Unmarshalling Error:

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.2.7
    • 2.2.7
    • JAXB Databinding
    • cxf 2.2.7

    • Unknown

    Description

      Dear:
      when I use cxf2.2.7 to develop the webservice, but when test , I meet the following problem, and don't know the reason. when this field <ns2:SUBMITDATE></ns2:SUBMITDATE> is null , the server throw the "Unmarshalling Error". but if it is not null , the server is normal.
      help me, thanks.

      Payload: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body xmlns:ns1="http://mss.cmcc.com/SB_FI_EAS_PageInquiryClaimDocInfoSrv">
      <ns1:SB_FI_EAS_PageInquiryClaimDocInfoSrvRequest>
      <ns1:MsgHeader xmlns:ns2="http://mss.cmcc.com/MsgHeader">
      <ns2:SOURCESYSTEMID></ns2:SOURCESYSTEMID>
      <ns2:SOURCESYSTEMNAME></ns2:SOURCESYSTEMNAME>
      <ns2:USERID></ns2:USERID>
      <ns2:USERNAME></ns2:USERNAME>
      <ns2:SUBMITDATE></ns2:SUBMITDATE>
      <ns2:PAGE_SIZE></ns2:PAGE_SIZE>
      <ns2:CURRENT_PAGE></ns2:CURRENT_PAGE>
      <ns2:TOTAL_RECORD></ns2:TOTAL_RECORD>
      <ns2:PROVINCE_CODE></ns2:PROVINCE_CODE>
      <ns2:ENVIRONMENT_NAME></ns2:ENVIRONMENT_NAME>
      </ns1:MsgHeader>
      <ns1:DOC_TYPE></ns1:DOC_TYPE>
      <ns1:VENDOR_NUMBER></ns1:VENDOR_NUMBER>
      <ns1:VENDOR_NAME></ns1:VENDOR_NAME>
      <ns1:INVOICE_NUM></ns1:INVOICE_NUM>
      <ns1:INVOICE_AMOUNT></ns1:INVOICE_AMOUNT>
      <ns1:DOCUMENT_NUM></ns1:DOCUMENT_NUM>
      <ns1:CONTRACT_NUM></ns1:CONTRACT_NUM>
      <ns1:PROJECT_NUM></ns1:PROJECT_NUM>
      <ns1:LAST_UPDATE_DATE_FROM>2008-11-19T17:01:32+08:00</ns1:LAST_UPDATE_DATE_FROM>
      <ns1:LAST_UPDATE_DATE_TO>2008-11-19T17:01:32+08:00</ns1:LAST_UPDATE_DATE_TO>
      </ns1:SB_FI_EAS_PageInquiryClaimDocInfoSrvRequest>
      </soap:Body>
      </soap:Envelope>

      org.apache.cxf.interceptor.Fault: Unmarshalling Error:
      at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:773)
      at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:624)
      at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:128)
      at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:195)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:110)
      at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:98)
      at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:423)
      at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:178)
      at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:142)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
      at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: javax.xml.bind.UnmarshalException

      • with linked exception:
        [javax.xml.bind.UnmarshalException:
      • with linked exception:
        [java.lang.IllegalArgumentException: ]]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:425)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:362)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:339)
        at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:755)
        ... 33 more
        Caused by: javax.xml.bind.UnmarshalException:
      • with linked exception:
        [java.lang.IllegalArgumentException: ]
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:642)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:671)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleError(UnmarshallingContext.java:667)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:548)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:625)
        at com.sun.xml.bind.v2.runtime.FilterTransducer.parse(FilterTransducer.java:80)
        at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:241)
        at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:61)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:494)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:334)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(StAXStreamConnector.java:212)
        at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:181)
        at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:360)
        ... 35 more
        Caused by: javax.xml.bind.UnmarshalException:
      • with linked exception:
        [java.lang.IllegalArgumentException: ]
        ... 48 more
        Caused by: java.lang.IllegalArgumentException:
        at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl$Parser.parseYear(Unknown Source)
        at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl$Parser.parse(Unknown Source)
        at org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl.<init>(Unknown Source)
        at org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(Unknown Source)
        at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$13.parse(RuntimeBuiltinLeafInfoImpl.java:546)
        ... 44 more

      The xsd file:
      <schema xmlns:po="http://mss.cmcc.com/SB_FI_EAS_PageInquiryClaimDocInfoSrv" xmlns:msg="http://mss.cmcc.com/MsgHeader" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://mss.cmcc.com/SB_FI_EAS_PageInquiryClaimDocInfoSrv" elementFormDefault="qualified" attributeFormDefault="unqualified">
      <import namespace="http://mss.cmcc.com/MsgHeader" schemaLocation="MsgHeader.xsd"/>
      <element name="SB_FI_EAS_PageInquiryClaimDocInfoSrvRequest" type="po:SB_FI_EAS_PageInquiryClaimDocInfoSrvRequest"/>
      <element name="SB_FI_EAS_PageInquiryClaimDocInfoSrvResponse" type="po:SB_FI_EAS_PageInquiryClaimDocInfoSrvResponse"/>
      <complexType name="SB_FI_EAS_PageInquiryClaimDocInfoSrvRequest">
      <sequence>
      <element name="MsgHeader" type="msg:MsgHeader"/>
      <element name="DOC_TYPE" type="string" nillable="true"/>
      <element name="VENDOR_NUMBER" type="string" nillable="true"/>
      <element name="VENDOR_NAME" type="string" nillable="true"/>
      <element name="INVOICE_NUM" type="string" nillable="true"/>
      <element name="INVOICE_AMOUNT" type="decimal" nillable="true"/>
      <element name="DOCUMENT_NUM" type="string" nillable="true"/>
      <element name="CONTRACT_NUM" type="string" nillable="true"/>
      <element name="PROJECT_NUM" type="string" nillable="true"/>
      <element name="LAST_UPDATE_DATE_FROM" type="dateTime" nillable="true"/>
      <element name="LAST_UPDATE_DATE_TO" type="dateTime" nillable="true"/>
      </sequence>
      </complexType>
      <complexType name="SB_FI_EAS_PageInquiryClaimDocInfoSrvResponse">
      <sequence>
      <element name="ErrorFlag" type="string" nillable="true"/>
      <element name="ErrorMessage" type="string" nillable="true"/>
      <element name="TOTAL_RECORD" type="decimal" nillable="true"/>
      <element name="TOTAL_PAGE" type="decimal" nillable="true"/>
      <element name="PAGE_SIZE" type="decimal" nillable="true"/>
      <element name="CURRENT_PAGE" type="decimal" nillable="true"/>
      <element name="SB_FI_EAS_PageInquiryClaimDocInfoSrvOutputCollection" type="po:SB_FI_EAS_PageInquiryClaimDocInfoSrvOutputCollection"/>
      </sequence>
      </complexType>
      <complexType name="SB_FI_EAS_PageInquiryClaimDocInfoSrvOutputCollection">
      <sequence>
      <element name="SB_FI_EAS_PageInquiryClaimDocInfoSrvOutputItem" type="po:SB_FI_EAS_PageInquiryClaimDocInfoSrvOutputItem" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
      </complexType>
      <complexType name="SB_FI_EAS_PageInquiryClaimDocInfoSrvOutputItem">
      <sequence>
      <element name="DOCUMENT_NUM" type="string" nillable="true"/>
      <element name="DOCUMENT_NAME" type="string" nillable="true"/>
      <element name="DOCUMENT_DESC" type="string" nillable="true"/>
      <element name="DOC_TYPE" type="string" nillable="true"/>
      <element name="INVOICE_NUM" type="string" nillable="true"/>
      <element name="INVOICE_AMOUNT" type="decimal" nillable="true"/>
      <element name="VENDOR_NUMBER" type="string" nillable="true"/>
      <element name="VENDOR_NAME" type="string" nillable="true"/>
      <element name="TOTAL_AMOUNT" type="decimal" nillable="true"/>
      <element name="PAYMENT_AMOUNT" type="decimal" nillable="true"/>
      <element name="ORGNIZATION_CODE" type="string" nillable="true"/>
      <element name="ORGNIZATION_NAME" type="string" nillable="true"/>
      <element name="DEPARTMENT_CODE" type="string" nillable="true"/>
      <element name="DEPARTMENT_NAME" type="string" nillable="true"/>
      <element name="CREATE_BY" type="string" nillable="true"/>
      <element name="SUBMIT_DATE" type="dateTime" nillable="true"/>
      <element name="DOC_STATUS" type="string" nillable="true"/>
      <element name="CURRENT_PROCESSOR" type="string" nillable="true"/>
      <element name="LAST_UPDATE_DATE" type="dateTime" nillable="true"/>
      <element name="CLAIM_LINES" type="po:CLAIM_LINESCollection"/>
      </sequence>
      </complexType>
      <complexType name="CLAIM_LINESCollection">
      <sequence>
      <element name="CLAIM_LINESItem" type="po:CLAIM_LINESItem" minOccurs="0" maxOccurs="unbounded"/>
      </sequence>
      </complexType>
      <complexType name="CLAIM_LINESItem">
      <sequence>
      <element name="DOCUMENT_LINE_NUM" type="string" nillable="true"/>
      <element name="DOCUMENT_ITEM_NUM" type="string" nillable="true"/>
      <element name="DOCUMENT_ITEM_DESC" type="string" nillable="true"/>
      <element name="CONTRACT_NUM" type="string" nillable="true"/>
      <element name="CONTRACT_DESC" type="string" nillable="true"/>
      <element name="CONTRACT_LINE_NUM" type="string" nillable="true"/>
      <element name="PROJECT_NUM" type="string" nillable="true"/>
      <element name="PROJECT_NAME" type="string" nillable="true"/>
      <element name="BUDGET_PROJECT_NUM" type="string" nillable="true"/>
      <element name="BUDGET_PROJECT_NAME" type="string" nillable="true"/>
      <element name="BUDGET_DEPT_CODE" type="string" nillable="true"/>
      <element name="BUDGET_DEPT_NAME" type="string" nillable="true"/>
      <element name="ACTIVITY_CODE" type="string" nillable="true"/>
      <element name="ACTIVITY_NAME" type="string" nillable="true"/>
      <element name="AMOUNT" type="decimal" nillable="true"/>
      <element name="LAST_UPDATE_DATE" type="dateTime" nillable="true"/>
      </sequence>
      </complexType>
      </schema>

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lixikun Li Xikun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: