[switchyard-issues] [JBoss JIRA] Created: (SWITCHYARD-295) NPE during exception processing with SOAP gateway
Jiri Pechanec (JIRA)
jira-events at lists.jboss.org
Thu Jun 16 06:40:23 EDT 2011
NPE during exception processing with SOAP gateway
-------------------------------------------------
Key: SWITCHYARD-295
URL: https://issues.jboss.org/browse/SWITCHYARD-295
Project: SwitchYard
Issue Type: Bug
Components: component-soap
Affects Versions: 0.1
Reporter: Jiri Pechanec
If either checked or unchecked exception is thrown in the service then it is converted into fault to be served back by SOAP Gateway.
If there is no message inside the exception like throw new IllegalArgumentException() then there is a NPE thrown during the exception processing
12:34:29,612 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (Thread-25) Application {http://swi.org/}ErrorServiceService#{http://swi.org/}echoTwoWay has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Unable to recover from fault on
at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:155) [cxf-rt-core-2.3.3-patch-01.jar:2.3.3-patch-01]
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.createFault(AbstractJAXWSMethodInvoker.java:86) [cxf-rt-frontend-jaxws-2.3.3-patch-01.jar:2.3.3-patch-01]
.
.
.
Caused by: java.lang.NullPointerException
at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.addTextNode(ElementImpl.java:474) [saaj-impl-1.3.2.jar:1.3.2]
at com.sun.xml.messaging.saaj.soap.ver1_1.Fault1_1Impl.setFaultString(Fault1_1Impl.java:189) [saaj-impl-1.3.2.jar:1.3.2]
at com.sun.xml.messaging.saaj.soap.impl.BodyImpl.addFault(BodyImpl.java:152) [saaj-impl-1.3.2.jar:1.3.2]
at org.switchyard.component.soap.util.SOAPUtil.generateFault(SOAPUtil.java:117) [switchyard-component-soap-0.1.0.jar:0.1.0]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the switchyard-issues
mailing list