Daniel Kulp created CXF-4265:
--------------------------------
Summary: Potential NPE when Soap fault has no role
Key: CXF-4265
URL: https://issues.apache.org/jira/browse/CXF-4265
Project: CXF
Issue Type: Bug
Components: JAX-WS Runtime
Affects Versions: 2.6, 2.5.3, 2.4.7, 2.3.10
Reporter: Daniel Kulp
Assignee: Daniel Kulp
Fix For: 2.6.1, 2.5.4, 2.4.8, 2.3.11
If a SoapFault does not have a "role" or "actor" defined, the JAX-WS frontend
will NPE when converting that to a SOAPFault.
{code}
Exception in thread "main" java.lang.NullPointerException
at
com.sun.xml.messaging.saaj.soap.impl.ElementImpl.addTextNode(ElementImpl.java:454)
at
com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl.setFaultRole(Fault1_2Impl.java:338)
at
com.sun.xml.messaging.saaj.soap.ver1_2.Fault1_2Impl.setFaultActor(Fault1_2Impl.java:574)
at
org.apache.cxf.jaxws.JaxWsClientProxy.createSoapFault(JaxWsClientProxy.java:219)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira