Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SWITCHYARD-2053]NPE when SoapV12 fault has no faultactor #670

Open
luozengbin opened this issue Apr 24, 2014 · 0 comments
Open

[SWITCHYARD-2053]NPE when SoapV12 fault has no faultactor #670

luozengbin opened this issue Apr 24, 2014 · 0 comments

Comments

@luozengbin
Copy link

In SoapV1.2 when service provider return a soap fault without faultactor element SOAPUtil will NPE when converting that to a SOAPFault. There was a similar bug in Apache CXF before. Apache CXF issue link

Caused by: java.lang.NullPointerException
    at com.sun.xml.messaging.saaj.soap.impl.ElementImpl.addTextNode(ElementImpl.java:455)
    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.switchyard.component.soap.util.SOAPUtil.generateFault(SOAPUtil.java:470) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
    at org.switchyard.component.soap.util.SOAPUtil.generateSOAP12Fault(SOAPUtil.java:453) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
    at org.switchyard.component.soap.util.SOAPUtil.generateFault(SOAPUtil.java:426) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
    at org.switchyard.component.soap.OutboundHandler.invokeService(OutboundHandler.java:332) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
    at org.switchyard.component.soap.OutboundHandler.handleMessage(OutboundHandler.java:273) [switchyard-component-soap-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
    at org.switchyard.bus.camel.processors.ProviderProcessor.process(ProviderProcessor.java:29) [switchyard-bus-camel-1.1.1-p5-redhat-1.jar:1.1.1-p5-redhat-1]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61) [camel-core-2.10.0.redhat-60024.jar:2.10.0.redhat-60024]
@luozengbin luozengbin changed the title NPE when SoapV12 fault has no faultactor [SWITCHYARD-2053]NPE when SoapV12 fault has no faultactor Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant