Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-973

SSLContext needs to be initialized

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.5.Final
    • 3.0.4.Final
    • None
    • None
    • Hide

      Use the RESTEASY-963 test program, and make the prescribed fix for that issue. Then you should run into this issue.

      Show
      Use the RESTEASY-963 test program, and make the prescribed fix for that issue. Then you should run into this issue.

    Description

      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.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            awhitford Anthony Whitford (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: