[
https://issues.apache.org/jira/browse/CXF-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp reassigned CXF-3342:
--------------------------------
Assignee: Daniel Kulp
> NullPointerException in Soap12FaultOutInterceptor when an exception is thrown
> from a SOAP 1.2 endpoint
> ------------------------------------------------------------------------------------------------------
>
> Key: CXF-3342
> URL: https://issues.apache.org/jira/browse/CXF-3342
> Project: CXF
> Issue Type: Bug
> Components: Soap Binding
> Affects Versions: 2.2.11, 2.3.2
> Reporter: aaron pieper
> Assignee: Daniel Kulp
> Attachments: exception.txt, patch.txt
>
>
> I'm implementing a web service using CXF. After upgrading the CXF endpoint
> from SOAP 1.1 to SOAP 1.2, error handling no longer works properly. Instead
> of receiving SOAP faults from the web service, I receive an empty document,
> which breaks my client software. A stack trace is logged on the web server.
> The stack trace includes the following:
> java.lang.NullPointerException
> at
> org.apache.cxf.staxutils.W3CDOMStreamWriter.writeNamespace(W3CDOMStreamWriter.java:209)
> at org.apache.cxf.staxutils.StaxUtils.getUniquePrefix(StaxUtils.java:1287)
> at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal.handleMessage(Soap12FaultOutInterceptor.java:77)
> at
> org.apache.cxf.binding.soap.interceptor.Soap12FaultOutInterceptor$Soap12FaultOutInterceptorInternal.handleMessage(Soap12FaultOutInterceptor.java:55)
>
> It looks like Soap11FaultOutInterceptor has some code to handle a special
> case where writer.getPrefix() returns null, and that this code wasn't copied
> over to Soap12FaultOutInterceptor.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira