[ https://issues.apache.org/jira/browse/CXF-6750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15108483#comment-15108483 ]
Akitoshi Yoshida commented on CXF-6750: --------------------------------------- this is my guess, but could it be that you are setting a null interceptor to the outbound interceptor chain? > HTTPS javax.xml.ws.soap.SOAPFaultException: Fault string, and possibly fault > code, not set > ------------------------------------------------------------------------------------------ > > Key: CXF-6750 > URL: https://issues.apache.org/jira/browse/CXF-6750 > Project: CXF > Issue Type: Bug > Components: WS-* Components > Affects Versions: 2.7.11 > Reporter: Matko Ć uflaj > > 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. > -- This message was sent by Atlassian JIRA (v6.3.4#6332)