You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "aaron pieper (JIRA)" <ji...@apache.org> on 2011/02/16 23:36:24 UTC
[jira] Created: (CXF-3342) NullPointerException in
Soap12FaultOutInterceptor when an exception is thrown from a SOAP 1.2
endpoint
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.3.2, 2.2.11
Reporter: aaron pieper
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
[jira] Commented: (CXF-3342) NullPointerException in
Soap12FaultOutInterceptor when an exception is thrown from a SOAP 1.2
endpoint
Posted by "aaron pieper (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995611#comment-12995611 ]
aaron pieper commented on CXF-3342:
-----------------------------------
Yes, oops, I just caught this bug myself! Sorry, I'm still kind of testing the patch myself; I may have posted it prematurely.
> 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
> 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
[jira] Assigned: (CXF-3342) NullPointerException in
Soap12FaultOutInterceptor when an exception is thrown from a SOAP 1.2
endpoint
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (CXF-3342) NullPointerException in
Soap12FaultOutInterceptor when an exception is thrown from a SOAP 1.2
endpoint
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (CXF-3342) NullPointerException in
Soap12FaultOutInterceptor when an exception is thrown from a SOAP 1.2
endpoint
Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12995577#comment-12995577 ]
Glen Mazza commented on CXF-3342:
---------------------------------
Hi Aaron, there seems something wrong with your patch, the very last "writer.writeStartElement(defaultPrefix, "Fault", ns);" at the bottom (carried over from the original code) would need to be nuked, correct?
> 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
> 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