-
Bug
-
Resolution: Done
-
Major
-
3.0.4.Final
-
None
-
None
After making a small fix to address RESTEASY-963, the test program associated with that JIRA issue exposed a new issue:
java.lang.RuntimeException: java.lang.IllegalStateException: SSLContextImpl is not initialized at org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.initDefaultEngine(ResteasyClientBuilder.java:347) at org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.build(ResteasyClientBuilder.java:228) at ClientTester.main(ClientTester.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:695) Caused by: java.lang.IllegalStateException: SSLContextImpl is not initialized at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145) at javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260) at org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:487) at org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder.initDefaultEngine(ResteasyClientBuilder.java:316) ... 8 more
A Google search pointed out issue HTTPCLIENT-1211, which suggests that the SSLContext needs to be initialized.