You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2014/10/28 19:29:34 UTC

[jira] [Resolved] (CXF-6030) javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set for cxf.

     [ https://issues.apache.org/jira/browse/CXF-6030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-6030.
------------------------------
       Resolution: Fixed
    Fix Version/s: 2.7.14
                   3.0.3
         Assignee: Daniel Kulp

> javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set for cxf.
> ---------------------------------------------------------------------------------------------
>
>                 Key: CXF-6030
>                 URL: https://issues.apache.org/jira/browse/CXF-6030
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>            Reporter: Jagat
>            Assignee: Daniel Kulp
>             Fix For: 3.0.3, 2.7.14
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)