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

2018-03-07 Thread harsh shah (JIRA)

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

harsh shah commented on CXF-6030:
-

[~dkulp] can you please help me with how to get rid of this error ? Just by 
upgrading jar or something else? I can not find information from comments.

 

Please help.

> 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
>Priority: Major
> 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 {
> public static final DishApiPortFactory 
> RESOURCE_ENTITLEMENT_MGMT = newPortFactory(
> new ResourceEntitlementV50().getResourceEntitlementV50Port(),
> UriMapper.RESOURCE_ENTITLEMENT_MGMT_ENDPOINT);
>  private static  DishApiPortFactory 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 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(port);
> }
> cxf version: cxf-codegen-plugin-2.7.11



--
This message was sent by Atlassian JIRA

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

2014-12-04 Thread Rishikanta Pukhrambam (JIRA)

[ 
https://issues.apache.org/jira/browse/CXF-6030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14234360#comment-14234360
 ] 

Rishikanta Pukhrambam commented on CXF-6030:


Hi

I'm also getting a similar stack trace on one of my web service calls. I'm 
using cxf-bundle 2.6.2 and I'm getting this message:

09:51:45.980 [tomcat-http--49] WARN o.a.cxf.phase.PhaseInterceptorChain - 
e2b62aba0a168d7d1eef83f92b31397d - Interceptor for 
{http://service.web.enroll.cambia.com/}EventLogService#{http://service.web.enroll.cambia.com/}writeEventRecord
 has thrown exception, unwinding now
java.lang.NullPointerException: null
at 
org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:43)
 ~[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor.handleMessage(SoapHeaderOutFilterInterceptor.java:29)
 ~[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:262)
 [cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:531) 
[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:464) 
[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:367) 
[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:320) 
[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:89) 
[cxf-bundle-2.6.2.jar:2.6.2]
at 
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:134) 
[cxf-bundle-2.6.2.jar:2.6.2]
at com.sun.proxy.$Proxy100.writeEventRecord(Unknown Source) 
[na:na]

Is there any reason why this is happening randomly? It happens only in specific 
environments and once it fails, it keeps failing until we restart our 
containers. Also it happens to only few web service clients, even though we are 
all using the same version of cxf.

 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