javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set

cxf-issues | Matko Šuflaj (JIRA) | 11 months ago
  1. 0

    Hi, I am having an issue when trying to create a client that communicates with the service over https, following is the exception: javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:157) ~[cxf-rt-frontend-jaxws-2.7.11.jar:2.7.11] at com.sun.proxy.$Proxy232.invoke(Unknown Source) ~[na:na] at hr.pbz.core.dao.impl.RtdDaoImpl.invokeService(RtdDaoImpl.java:227) [pbz-retail-dao-9.50.72-SNAPSHOT.jar:na] at hr.pbz.core.dao.impl.RtdDaoImpl.callNavigationService(RtdDaoImpl.java:378) [pbz-retail-dao-9.50.72-SNAPSHOT.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_45] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_45] at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:318) [spring-aop-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) [spring-aop-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) [spring-aop-3.1.0.RELEASE.jar:3.1.0.RELEASE] at hr.pbz.core.logging.interceptor.PerformanceLoggingInterceptor.invoke(PerformanceLoggingInterceptor.java:87) [pbz-common-utils-9.50.72-SNAPSHOT.jar:na] at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) [spring-aop-3.1.0.RELEASE.jar:3.1.0.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) [spring-aop-3.1.0.RELEASE.jar:3.1.0.RELEASE] at com.sun.proxy.$Proxy233.callNavigationService(Unknown Source) [na:na] Caused by: java.lang.NullPointerException: null at org.apache.cxf.phase.PhaseInterceptorChain.add(PhaseInterceptorChain.java:197) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.phase.PhaseInterceptorChain.add(PhaseInterceptorChain.java:186) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.phase.PhaseInterceptorChain.add(PhaseInterceptorChain.java:177) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.phase.PhaseChainCache.getChain(PhaseChainCache.java:93) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.phase.PhaseChainCache.get(PhaseChainCache.java:77) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.endpoint.ClientImpl.setupInterceptorChain(ClientImpl.java:1007) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:538) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335) ~[cxf-api-2.7.11.jar:2.7.11] at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96) ~[cxf-rt-frontend-simple-2.7.11.jar:2.7.11] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135) ~[cxf-rt-frontend-jaxws-2.7.11.jar:2.7.11] Codebase for client: private SDClientPortType getWebServiceClient() { final JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setServiceClass(SDClientPortType.class); factory.setAddress(getRtdWebServiceUrl()); factory.getInInterceptors().add(new LoggingInInterceptor()); factory.getOutInterceptors().add(new LoggingOutInterceptor()); factory.getOutInterceptors().add(m_sslOutInterceptor); final SDClientPortType webServiceClient = (SDClientPortType) factory.create(); final HTTPConduit http = (HTTPConduit) ClientProxy.getClient(webServiceClient).getConduit(); final TLSClientParameters tlsParameters = new TLSClientParameters(); tlsParameters.setDisableCNCheck(true); http.setTlsClientParameters(tlsParameters); final HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); httpClientPolicy.setConnectionTimeout(new Integer(getRtdWebServiceTimeout())); httpClientPolicy.setAllowChunking(false); httpClientPolicy.setReceiveTimeout(new Integer(getRtdWebServiceTimeout())); http.setClient(httpClientPolicy); return webServiceClient; } I have tried switching version to newer one, since the same issue exception is described here: https://issues.apache.org/jira/browse/CXF-6030 But it didn't help... When i remove the sslOutInterceptor from the configuration and go over http, i go through ok.

    Apache's JIRA Issue Tracker | 11 months ago | Matko Šuflaj
    javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set
  2. 0

    [jira] [Created] (CXF-6750) HTTPS javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set

    cxf-issues | 11 months ago | Matko Šuflaj (JIRA)
    javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault code, not set
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Issue with CXF endpoint ( Developing DSUB profile )

    Google Groups | 6 years ago | Chakradhar
    java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at org.apache.cxf.phase.PhaseInterceptorChain.add()
    2. Apache CXF Core
      ClientImpl.invoke
      1. org.apache.cxf.phase.PhaseInterceptorChain.add(PhaseInterceptorChain.java:197)[cxf-api-2.7.11.jar:2.7.11]
      2. org.apache.cxf.phase.PhaseInterceptorChain.add(PhaseInterceptorChain.java:186)[cxf-api-2.7.11.jar:2.7.11]
      3. org.apache.cxf.phase.PhaseInterceptorChain.add(PhaseInterceptorChain.java:177)[cxf-api-2.7.11.jar:2.7.11]
      4. org.apache.cxf.phase.PhaseChainCache.getChain(PhaseChainCache.java:93)[cxf-api-2.7.11.jar:2.7.11]
      5. org.apache.cxf.phase.PhaseChainCache.get(PhaseChainCache.java:77)[cxf-api-2.7.11.jar:2.7.11]
      6. org.apache.cxf.endpoint.ClientImpl.setupInterceptorChain(ClientImpl.java:1007)[cxf-api-2.7.11.jar:2.7.11]
      7. org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:538)[cxf-api-2.7.11.jar:2.7.11]
      8. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:479)[cxf-api-2.7.11.jar:2.7.11]
      9. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:382)[cxf-api-2.7.11.jar:2.7.11]
      10. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:335)[cxf-api-2.7.11.jar:2.7.11]
      10 frames
    3. Apache CXF Runtime Simple Frontend
      ClientProxy.invokeSync
      1. org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)[cxf-rt-frontend-simple-2.7.11.jar:2.7.11]
      1 frame
    4. Apache CXF Runtime JAX-WS Frontend
      JaxWsClientProxy.invoke
      1. org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:135)[cxf-rt-frontend-jaxws-2.7.11.jar:2.7.11]
      1 frame