cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5595) Getting UNMARSHAL_ERROR for CXF XML Beans databinding for '&' in SOAP request
Date Tue, 18 Mar 2014 18:07:42 GMT

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

Daniel Kulp commented on CXF-5595:
----------------------------------

Can you provide the full SOAP message?  Maybe a full test case?

& is not a valid character in XML except when used as an entity or within a CDATA.   If
you need to transport an & across the wire, it needs to be fully expanded to an entity
(&amp;) or placed within a CDATA section.

> Getting UNMARSHAL_ERROR for CXF XML Beans databinding for '&' in SOAP request
> -----------------------------------------------------------------------------
>
>                 Key: CXF-5595
>                 URL: https://issues.apache.org/jira/browse/CXF-5595
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.6.1
>         Environment: JBoss 7.1, CXF 2.6.1
>            Reporter: Narayan
>             Fix For: NeedMoreInfo
>
>   Original Estimate: 120h
>  Remaining Estimate: 120h
>
> I am using Apache CXF 2.6.1 to define jaxws:endpoint and using org.apache.cxf.xmlbeans.XmlBeansDataBinding
databinding. The application is deployed on JBoss 7.1. When the incoming SOAP request contains
'&' character in the data node, it throws following exception. If '&' character is
not present, everything works fine. 
> thrown exception, unwinding now | org.apache.cxf.interceptor.Fault: UNMARSHAL_ERROR
> 	at org.apache.cxf.xmlbeans.DataReaderImpl.doRead(DataReaderImpl.java:113)
> 	at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:63)
> 	at org.apache.cxf.xmlbeans.DataReaderImpl.read(DataReaderImpl.java:45)
> 	at org.apache.cxf.interceptor.DocLiteralInInterceptor.handleMessage(DocLiteralInInterceptor.java:200)
> 	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
> 	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:122)
> 	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:211)
> 	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:213)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message