It's exactly the same issue as the one reported at https://issues.apache.org/jira/browse/CXF-3064
which happens when non-standard HTTP connections are used, Gary Rudolph suggests "I noticed that TLSClientParameters now contains a setSSLSocketFactory, but it's not exposed through the spring xsd. Can we please change the <http:tlsClientParameters> xsd to support injecting the sslSocketFactory? Then I could get it from GAE and do it myself. The other option is to have HttpsURLConnectionFactory.decorateWithTLS attempt to get the SSLSocketFactory using SSLSocketFactory.getSSLSocketFactory." I'm wondering if the 2nd option can be tried in case of such exceptions ? Thoughts ? Cheers, Sergey On Tue, Jun 14, 2011 at 6:31 PM, fachhoch <[email protected]> wrote: > Our partners built webservice using oagis http://www.oagi.org/dnn2/ > > I wrote a webservice client using JaxWsProxyFactoryBean, I am > getting this exception > > > INFO: Interceptor has thrown exception, unwinding now > > org.apache.cxf.interceptor.Fault: Could not send Message. > > at > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:48) > > at > org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) > > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:471) > > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:301) > > at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253) > > at > org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) > > at > org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:121) > > at $Proxy133.getPersonnel(Unknown Source) > > at > acf.oldc.sso.webservices.client.PersonClient.getClient(PersonClient.java:122) > > at > acf.oldc.sso.controller.ClientHandler.execute(ClientHandler.java:67) > > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:413) > > at > org.apache.struts.faces.application.FacesTilesRequestProcessor.processActionPerform(FacesTilesRequestProcessor.java:246) > > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:225) > > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858) > > at > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446) > > at > acf.oldc.common.controller.BaseActionServlet.doGet(BaseActionServlet.java:73) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > at > weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) > > at > weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) > > at > weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) > > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) > > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) > > at > weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) > > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) > > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) > > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) > > at weblogic.security.service.SecurityManager.runAs(Unknown Source) > > at > weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) > > at > weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) > > at > weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) > > at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) > > at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) > > Caused by: javax.imageio.IIOException: Error while initializing secure > socket > > at > org.apache.cxf.transport.https.HttpsURLConnectionFactory.createConnection(HttpsURLConnectionFactory.java:148) > > at > org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:496) > > at > org.apache.cxf.interceptor.MessageSenderInterceptor.handleMessage(MessageSenderInterceptor.java:46) > > ... 32 more > > Caused by: java.lang.IllegalArgumentException: Error decorating connection > class weblogic.net.http.SOAPHttpsURLConnection > > at > org.apache.cxf.transport.https.HttpsURLConnectionFactory.decorateWithTLS(HttpsURLConnectionFactory.java:255) > > at > org.apache.cxf.transport.https.HttpsURLConnectionFactory.createConnection(HttpsURLConnectionFactory.java:140) > > ... 34 more > > Caused by: java.lang.ClassCastException > > at java.lang.Class.cast(Class.java:2990) > > at > org.apache.cxf.transport.https.HttpsURLConnectionFactory.decorateWithTLS(HttpsURLConnectionFactory.java:250) > > ... 35 more > > > > does oagis makes any difference? are there any examples for writing client > when web service is built using oagis ? > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/writing-client-for-oagis-service-tp4488648p4488648.html > Sent from the cxf-user mailing list archive at Nabble.com. >
