You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "zhangsanhua (JIRA)" <ji...@apache.org> on 2013/07/02 13:39:20 UTC
[jira] [Created] (CXF-5103)
org.apache.cxf.interceptor.Fault:javax.xml.bind.UnmarshalException
zhangsanhua created CXF-5103:
--------------------------------
Summary: org.apache.cxf.interceptor.Fault:javax.xml.bind.UnmarshalException
Key: CXF-5103
URL: https://issues.apache.org/jira/browse/CXF-5103
Project: CXF
Issue Type: Bug
Components: JAXB Databinding
Affects Versions: 2.6.7
Reporter: zhangsanhua
Priority: Minor
Dear:
when I use cxf2.6.7 to develop the webservice, but when test , I meet the following problem:
org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1", local:"transmissionParametersList"). Expected elements are <{http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1}egressTmdRef>,<{http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1}ipAddressList>,<{http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1}tpRef>,<{http://www.tmforum.org/mtop/nrb/xsd/lp/v1}transmissionParametersList>,<{http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1}tpMappingMode>,<{http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1}ingressTmdRef>
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:808)
at org.apache.cxf.jaxb.JAXBEncoderDecoder.unmarshall(JAXBEncoderDecoder.java:629)
at org.apache.cxf.jaxb.io.DataReaderImpl.read(DataReaderImpl.java:157)
at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:194)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceRequest(JettyHTTPDestination.java:348)
at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:312)
at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:72)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:943)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:879)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:936)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.bind.UnmarshalException
i checked the wsdl from http://****/TerminationPointControl?wsdl, it shows as below, element "transmissionParametersList" belongs to namespace "http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1" only:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1" xmlns:ns2="http://www.tmforum.org/mtop/nrb/xsd/lp/v1" xmlns:ns1="http://www.tmforum.org/mtop/fmw/xsd/nam/v1" elementFormDefault="qualified" targetNamespace="http://www.tmforum.org/mtop/nrf/xsd/tpdata/v1" version="1.0">
<xs:import namespace="http://www.tmforum.org/mtop/fmw/xsd/nam/v1" />
<xs:import namespace="http://www.tmforum.org/mtop/nrb/xsd/lp/v1" />
<xs:element name="IPAddressList" type="tns:IPAddressListType" />
- <xs:complexType name="TerminationPointDataListType">
- <xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="tpData" nillable="true" type="tns:TerminationPointDataType" />
</xs:sequence>
</xs:complexType>
- <xs:complexType name="TerminationPointDataType">
- <xs:sequence>
<xs:element name="tpRef" type="ns1:NamingAttributeType" />
<xs:element xmlns:ns3="http://www.tmforum.org/mtop/nrf/xsd/com/v1" name="tpMappingMode" type="ns3:TerminationModeType" />
<xs:element minOccurs="0" name="transmissionParametersList" nillable="true" type="ns2:LayeredParametersListType" />
<xs:element name="ingressTmdRef" type="ns1:NamingAttributeType" />
<xs:element name="egressTmdRef" type="ns1:NamingAttributeType" />
<xs:element name="ipAddressList" type="tns:IPAddressListType" />
</xs:sequence>
</xs:complexType>
this problem came after upgraded cxf from 2.5.5 to 2.6.7. when i tested with 2.5.5, wsdl shows as below, element "transmissionParametersList" is ref which is name in wsdl used cxf 2.6.7
<xs:element minOccurs="0" nillable="true" ref="ns2:transmissionParametersList" />
i do not know the reason. please help.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira