Skip navigation
Currently Being Moderated

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

Mar 4, 2012 6:29 AM

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\wwwr oot\inleague-dev\inleague-sms\inleague-cfc\ecommerce.cfc:726)  at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:4 05) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMetho d.java:368)  at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.ja va: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\registration\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.ja va: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(ClientScopePers istenceFilter.java:28)  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:8 9) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:305)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210)  at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringS ervletFilter.java:42)  at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46 ) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:243)  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:210)  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:224)  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:169)  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica torBase.java:472)  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:168)  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:98)  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 928)  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:118)  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:414)  at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:203) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( AbstractProtocol.java:539)  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin t.java:298)  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec utor.java:886)  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:908)  at java.lang.Thread.run(Thread.java:662)

 
Replies
  • Currently Being Moderated
    Mar 4, 2012 5:21 PM   in reply to Aquitaine

    Thanks for reporting this. We will look into this.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points