axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: Issue in Axiom SAAJ Implementation -
Date Fri, 02 Mar 2007 12:36:27 GMT
Palanikumar,

Please log a bug in JIRA and upload your sample code for us to
trcreate the problem.

thanks,
dims

On 3/2/07, SMT Palanikumar <palanikumart@gmail.com> wrote:
> Hi,
>
>  I am using axis2-1.1.1 binary for creating and deploying my
> webservice with the databinding tool as xmlbeans. while invoking a
> webservice using saaj library ( axis-saaj-1.1.1.jar) , a exception is
> thrown with Illegal character error. this stems from the
> org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(String prefix,
> String local) implementation. the NCName of the element is being
> checked. the way of checking results in the above mentioned error. The
> method throws error if there it is a zero length prefix as in case of
> empty prefix. When there isnt any namespace prefix as in the case of
> the snippet below, it throws the exception.
>
> the code snippet
>
>        boolean validNCName = (prefix == null || XMLChar.isValidNCName(prefix))
>                && XMLChar.isValidNCName(local);
>
>        if (!validNCName) {
>            // REVISIT: add qname parameter to the message
>            String msg = DOMMessageFormatter.formatMessage(
>                    DOMMessageFormatter.DOM_DOMAIN, "INVALID_CHARACTER_ERR",
>                    null);
>            throw new DOMException(DOMException.INVALID_CHARACTER_ERR, msg);
>
> stack trace ..
>
> org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal
> XML character is specified.
>        at org.apache.axiom.om.impl.dom.DocumentImpl.checkQName(DocumentImpl.java:464)
>        at org.apache.axiom.om.impl.dom.DocumentImpl.createElementNS(DocumentImpl.java:201)
>        at org.apache.axis2.saaj.SOAPBodyImpl.addChildElement(SOAPBodyImpl.java:133)
>        at org.apache.axis2.saaj.SOAPConnectionImpl.toSAAJElement(SOAPConnectionImpl.java:257)
>        at org.apache.axis2.saaj.SOAPConnectionImpl.getSOAPMessage(SOAPConnectionImpl.java:210)
>        at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:154)
>        at org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:118)
>        at com.hp.dmp.loadtest.test.ClientInterfaceWSTest.main(ClientInterfaceWSTest.java:69)
>
>
> Is there any workarounds for this . Please , let me know.
>
> Thanks,
> Palanikumar
>
> --
> You are the creator of your own destiny
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message