You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2013/08/08 20:23:48 UTC
[jira] [Created] (CXF-5191) StaxUtils readQName does not accept
leading and trailing whitespaces
Aki Yoshida created CXF-5191:
--------------------------------
Summary: StaxUtils readQName does not accept leading and trailing whitespaces
Key: CXF-5191
URL: https://issues.apache.org/jira/browse/CXF-5191
Project: CXF
Issue Type: Bug
Components: Core
Affects Versions: 2.7.6, 2.6.9
Reporter: Aki Yoshida
Assignee: Aki Yoshida
According to XML Schema Datatype spec, QName allows leading and trailing whitespaces (as it has the whitespace facet with fixed value "collapse" that means the leading and trailing whitespaces are removed).
As StaxUtils.readQName(XMLStream reader) is not following this rule, you may get the exception such as:
java.lang.RuntimeException: Invalid QName in mapping: soap:Server
at org.apache.cxf.staxutils.StaxUtils.readQName(StaxUtils.java:1533)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:64)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:51)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:40)
...
--
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