Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory

I’ve started getting this error on any cfhttp call from Lucee: “Could not
initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory”

Oddly, I am getting this error for CFHTTP calls that are not SSL based. For
example, this code will throw that error.

I replaced the JARs mentioned in the “Optional Step” here and restarted
Lucee:
http://lucee.org/blog/lucee-4-5-2-stable-release.html

I’m not sure when exactly the problem started so it’s hard to determine
what change may have happened around that time.

Any ideas?

Lucee 4.5.2.018 (express)
MacOS

-Cameron–
Cameron Childress

p: 678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf | twitter
http://twitter.com/cameronc | google+
https://profiles.google.com/u/0/117829379451708140985

Lucee 4.5.2.018 (express)
MacOS

Also, Java: 1.7.0_25

-CameronOn Fri, May 20, 2016 at 10:54 AM, Cameron Childress wrote:


Cameron Childress

p: 678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf | twitter
http://twitter.com/cameronc | google+
https://profiles.google.com/u/0/117829379451708140985

Java may be the issue as I’m on Java 8 and that call is working fine
with same version of Lucee.On 20 May 2016 at 15:57, Cameron Childress <@Cameron_Childress> wrote:

Also, Java: 1.7.0_25

Understood.

Seems unlikely, but could it be OS specific given you’re both on Mac?
I’m on Windows.On 20 May 2016 at 16:10, Cameron Childress <@Cameron_Childress> wrote:

He’s in another country on another network. So no.

Okay - though much trial and error I have found a potential solution to
this problem. I don’t know if it’s just going to swap one problem for
another or if this represents a bug in Lucee 4.x or what.

In all of the Lucee 4.x downloads that I can find (and on my machine) both
of these files exist:

/express/lib/ext/apache-commons-httpclient.jar
/express/lib/ext/apache-jakarta-commons-httpclient.jar

On a hunch that they were in conflict, I removed
“apache-commons-httpclient.jar” from the folder and my problem vanished.
Suddenly my CFHTTP calls started working again.

Perhaps these have always been present in the directory but something
recently changed on MacOS to trigger the condition?

Is anyone else running 4.x who can confirm this or maybe someone with more
knowledge about what these libraries do can help fill in the blanks with
more information?

Removing that file definitely makes my test case work. I haven’t spend a
lot of time to look for other side effects yet.

-CameronOn Fri, May 20, 2016 at 11:14 AM, Julian Halliwell < @Julian_Halliwell> wrote:

Understood.

Seems unlikely, but could it be OS specific given you’re both on Mac?
I’m on Windows.

On 20 May 2016 at 16:10, Cameron Childress <@Cameron_Childress> wrote:

He’s in another country on another network. So no.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAC_5Vop7s9w6GN0fd5x0%2BdDwHCUjpSxxrM%3DFwVG3uga80ydpxw%40mail.gmail.com
.
For more options, visit https://groups.google.com/d/optout.


Cameron Childress

p: 678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf | twitter
http://twitter.com/cameronc | google+
https://profiles.google.com/u/0/117829379451708140985

Thanks Cameron! Ran into the same issue and this resolved it.