You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Zack (JIRA)" <ji...@apache.org> on 2009/07/21 23:11:14 UTC
[jira] Updated: (CXF-2349) Space in namespace localName causes
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR
[ https://issues.apache.org/jira/browse/CXF-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zack updated CXF-2349:
----------------------
Description:
On line 97 of the Soap12FaultOutInterceptor, an attempt is made to write an attribute using the following code:
writer.writeAttribute("xml", "http://www.w3.org/XML/1998/namespace", "lang ", getLangCode());
The 3rd parameter has a trailing space and fails with the following exception:
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
I was able to copy this class into my source code and remove the space, which solved the issue
was:
On line 97 of the Soap12FaultOutInterceptor, an attempt is made to write an attribute using the following code:
writer.writeAttribute("xml", "http://www.w3.org/XML/1998/namespace", "lang ", getLangCode());
The 3rd parameter has a trailing space and fails with the following exception:
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
> Space in namespace localName causes org.w3c.dom.DOMException: INVALID_CHARACTER_ERR
> -----------------------------------------------------------------------------------
>
> Key: CXF-2349
> URL: https://issues.apache.org/jira/browse/CXF-2349
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.2.2
> Reporter: Zack
>
> On line 97 of the Soap12FaultOutInterceptor, an attempt is made to write an attribute using the following code:
> writer.writeAttribute("xml", "http://www.w3.org/XML/1998/namespace", "lang ", getLangCode());
> The 3rd parameter has a trailing space and fails with the following exception:
> org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
> I was able to copy this class into my source code and remove the space, which solved the issue
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.