You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jeff Genender (JIRA)" <ji...@apache.org> on 2007/05/11 00:19:15 UTC

[jira] Updated: (CXF-643) Soap11FaultOutInterceptor creates NPE due to call on writer w/o starting element

     [ https://issues.apache.org/jira/browse/CXF-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeff Genender updated CXF-643:
------------------------------

    Attachment: CXF-643.jgenender.patch

Whoops...needed to give the license.

> Soap11FaultOutInterceptor creates NPE due to call on writer w/o starting element
> --------------------------------------------------------------------------------
>
>                 Key: CXF-643
>                 URL: https://issues.apache.org/jira/browse/CXF-643
>             Project: CXF
>          Issue Type: Bug
>          Components: Soap Binding
>    Affects Versions: 2.0
>            Reporter: Jeff Genender
>         Attachments: CXF-643.jgenender.patch, CXF-643.jgenender.patch
>
>
> Soap11FaultOutInterceptor creates NPE due to call on writer w/o starting element.  It creates a writer, but then proceeds to call:
> StaxUtils.getUniquePrefix(writer, ns, true);
> This attempts to write a namespace but fails since there is no currentelement (i.e. the writeStartElement has not been called).  This causes a NPE exception to occur in the W3CDOMStreamWriter.
> Patch attached to make the calls in the appropriate order.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.