3 Replies Latest reply: Mar 24, 2012 6:01 AM by Aquitaine RSS

    HTTPS failure on CF 10: com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl

    Aquitaine Community Member

      Upgraded from CF8 to CF10 beta (Windows 64-bit). Everything is peachy except for some code we have that makes CFHTTP (HTTPS) calls with XML. We get:

       

      com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl cannot be cast to org.apache.http.conn.scheme.SchemeSocketFactory null <br>The error occurred on line 726.

       

      We have other code making CFHTTP calls without XML (still HTTPS) and that works fine. It's pretty simple stuff, too:

       

      <cfhttp timeout="120" charset="utf-8" url="#bankURL#" method="POST" username="#authUsername#" password="#authPassword#" clientcert="#certFile#" clientcertpassword="#authCertPassword#">

          <cfhttpparam type="xml" value="#soapRequest#" />

      </cfhttp>

       

      Where soapRequest is a credit card transaction for Firstdata's global web service.

       

      Stack trace:

       

      java.lang.ClassCastException: com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl cannot be cast to org.apache.http.conn.scheme.SchemeSocketFactory at coldfusion.tagext.net.HttpTag.createConnection(HttpTag.java:1789) at coldfusion.tagext.net.HttpTag.connHelper(HttpTag.java:907) at coldfusion.tagext.net.HttpTag.doEndTag(HttpTag.java:1198) at cfecommerce2ecfc273021829$funcPROCESSCARD.runFunction(C:\inetpub\wwwroot\inleague-dev\inl eague-sms\inleague-cfc\ecommerce.cfc:726)  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368)  at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55)  at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:518) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:659) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:468) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2372) at cfpayment2dreceipt2ecfm1767154172.runPage(C:\inetpub\wwwroot\inleague-dev\inleague\regist ration\payment-receipt.cfm:88)  at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:235) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:429) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.IpFilter.invoke(IpFilter.java:62) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:410) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)  at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:75) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)  at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)  at coldfusion.CfmServlet.service(CfmServlet.java:204) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:305)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)   at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 )  at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:243)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.jav a:539)  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298)  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  at java.lang.Thread.run(Thread.java:662)