You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2011/03/11 05:46:59 UTC
[jira] Resolved: (CXF-3342) NullPointerException in
Soap12FaultOutInterceptor when an exception is thrown from a SOAP 1.2
endpoint
[ https://issues.apache.org/jira/browse/CXF-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3342.
------------------------------
Resolution: Fixed
Fix Version/s: 2.3.4
2.4
> 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
> Fix For: 2.4, 2.3.4
>
> 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