Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2
-
None
Description
I've a web service provider returning a custom fault as follows (the fault is correctly declared in the wsdl deployed along with the endpoint):
@Local
@Stateless
@WebServiceProvider(serviceName = "MyTestService",
portName = "MyTestPort",
targetNamespace = "http://www.my-company.it/ws/my-test",
wsdlLocation = "META-INF/wsdl/my-service.wsdl")
@WebContext(contextRoot = "/jaxws-jbws1815")
@ServiceMode(value = Service.Mode.MESSAGE)
public class ProviderImpl implements Provider<SOAPMessage>
{
public SOAPMessage invoke(SOAPMessage requestSoapMessage)
{
SOAPFault theSOAPFault;
try
catch (SOAPException se)
{ se.printStackTrace(); throw new RuntimeException("Something unexpected happened!"); } throw new SOAPFaultException(theSOAPFault);
}
}
This causes the AbstractPolicyInterceptor to throw a NPE during the BindingFaultInfo retrieval as no class can found that maps the fault.
Further information about the testcase are available here https://jira.jboss.org/jira/browse/JBWS-1815 (scm links there point to the testcase sources).