javax.xml.ws.soap.SOAPFaultException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • cxf
    via by Unknown author,
  • Hi, I am getting following error for my application on PROD: [Tue, 30-Sep-2014 @ 12:22:14.469] [catalina-exec-86] ERROR com.dish.dishapi.service.Service - InvocationTargetException occured while calling operation: getOAuthAuthentication with error message: java.lang.reflect.InvocationTargetException at com.dish.dishapi.service.Service.invokeOperation(Service.java:37) at com.dish.dishapi.service.ResourceEntitlementService.execute(ResourceEntitlementService.java:16) at com.dish.api.service.ResourceEntitlementServiceEntry.execute(ResourceEntitlementServiceEntry.groovy:11) at com.dish.api.AuthController.oAuth(AuthController.groovy:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157) at com.dish.dishapi.service.resourceentitlement.ResourceEntitlementV5.getOAuthAuthentication(ResourceEntitlementV5.java:109) ... 7 more Caused by: java.lang.NullPointerException at org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:43) at org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:29) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135) ... 8 more Its not happening on my Local. Also its not happening on PROD all time.. But when it started it is happening all the time on that specific cluster. Codebase: Service Client Class public class ResourceEntitlementV5 { private static ResourceEntitlementV50PortType resourceEntitlementPortV5 = (ResourceEntitlementV50PortType) DishApiPortFactory.RESOURCE_ENTITLEMENT_MGMT .create(); public ProcessAuthenticationResponse processAuthentication( ResourceEntitlementTransferRequest request) { return resourceEntitlementPortV5.processAuthentication(request); } Configuration of port calls: public class DishApiPortFactory<T> { public static final DishApiPortFactory<ResourceEntitlementV50PortType> RESOURCE_ENTITLEMENT_MGMT = newPortFactory( new ResourceEntitlementV50().getResourceEntitlementV50Port(), UriMapper.RESOURCE_ENTITLEMENT_MGMT_ENDPOINT); private static <T> DishApiPortFactory<T> newPortFactory(T port, String endpointPropName) { log.info(" Starting STUB and ENDPOINT binding for end point key :{} ", endpointPropName); String uri = null; try { uri = DishApiKeyValueUtility.getValueFromKey(endpointPropName); log.info(" FOUND URI for {} = {} ", endpointPropName, uri); Map<String, Object> requestContext = ((BindingProvider) port).getRequestContext(); log.info("URI: " + uri); requestContext.put("thread.local.request.context", "true"); requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, uri); } catch (Exception e) { log.error("Exception thrown while doing STUB and ENDPOINT binding", e); } return new DishApiPortFactory<T>(port); } cxf version: cxf-codegen-plugin-2.7.11
    via by Jagat,
  • Hi, I am getting following error for my application on PROD: [Tue, 30-Sep-2014 @ 12:22:14.469] [catalina-exec-86] ERROR com.dish.dishapi.service.Service - InvocationTargetException occured while calling operation: getOAuthAuthentication with error message: java.lang.reflect.InvocationTargetException at com.dish.dishapi.service.Service.invokeOperation(Service.java:37) at com.dish.dishapi.service.ResourceEntitlementService.execute(ResourceEntitlementService.java:16) at com.dish.api.service.ResourceEntitlementServiceEntry.execute(ResourceEntitlementServiceEntry.groovy:11) at com.dish.api.AuthController.oAuth(AuthController.groovy:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157) at com.dish.dishapi.service.resourceentitlement.ResourceEntitlementV5.getOAuthAuthentication(ResourceEntitlementV5.java:109) ... 7 more Caused by: java.lang.NullPointerException at org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:43) at org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:29) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135) ... 8 more Its not happening on my Local. Also its not happening on PROD all time.. But when it started it is happening all the time on that specific cluster. Codebase: Service Client Class public class ResourceEntitlementV5 { private static ResourceEntitlementV50PortType resourceEntitlementPortV5 = (ResourceEntitlementV50PortType) DishApiPortFactory.RESOURCE_ENTITLEMENT_MGMT .create(); public ProcessAuthenticationResponse processAuthentication( ResourceEntitlementTransferRequest request) { return resourceEntitlementPortV5.processAuthentication(request); } Configuration of port calls: public class DishApiPortFactory<T> { public static final DishApiPortFactory<ResourceEntitlementV50PortType> RESOURCE_ENTITLEMENT_MGMT = newPortFactory( new ResourceEntitlementV50().getResourceEntitlementV50Port(), UriMapper.RESOURCE_ENTITLEMENT_MGMT_ENDPOINT); private static <T> DishApiPortFactory<T> newPortFactory(T port, String endpointPropName) { log.info(" Starting STUB and ENDPOINT binding for end point key :{} ", endpointPropName); String uri = null; try { uri = DishApiKeyValueUtility.getValueFromKey(endpointPropName); log.info(" FOUND URI for {} = {} ", endpointPropName, uri); Map<String, Object> requestContext = ((BindingProvider) port).getRequestContext(); log.info("URI: " + uri); requestContext.put("thread.local.request.context", "true"); requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, uri); } catch (Exception e) { log.error("Exception thrown while doing STUB and ENDPOINT binding", e); } return new DishApiPortFactory<T>(port); } cxf version: cxf-codegen-plugin-2.7.11
    via by Jagat,
  • cxf issue with soapheaderoutfilter
    via by Redmond, Lisa,
  • cxf null pointer exception without stack trace
    via Stack Overflow by rishi
    ,
    • javax.xml.ws.soap.SOAPFaultException at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157) at com.sun.proxy.$Proxy161.isAuthorized(Unknown Source) at com.novainfo.framework.services.handlers.service.HimmsSoapHeaderInInterceptor.processSecurityHeader(HimmsSoapHeaderInInterceptor.java:174) at com.novainfo.framework.services.handlers.service.HimmsSoapHeaderInInterceptor.handleMessage(HimmsSoapHeaderInInterceptor.java:99) at com.novainfo.framework.services.handlers.service.HimmsSoapHeaderInInterceptor.handleMessage(HimmsSoapHeaderInInterceptor.java:52) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:241) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153) at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1635) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:149) at com.novainfo.framework.services.filters.WebserviceFilter.doFilter(WebserviceFilter.java:102) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:125) at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:80) at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:965) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181) at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:878) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:516) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:307) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:278) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:558) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:608) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:985) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1074) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662) Caused by: java.lang.NullPointerException at org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:43) at org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:29) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272) at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:570) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)
    No Bugmate found.