java.lang.IllegalStateException: SSLContextImpl is not initialized

htmlunit | *anonymous | 6 years ago
  1. 0

    InsecureSSLProtocolSocketFactory broken in 2.8

    htmlunit | 6 years ago | *anonymous
    java.lang.IllegalStateException: SSLContextImpl is not initialized
  2. 0

    After making a small fix to address RESTEASY-963, the test program associated with that JIRA issue exposed a new issue: {noformat} 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 {noformat} A Google search pointed out issue [HTTPCLIENT-1211|https://issues.apache.org/jira/browse/HTTPCLIENT-1211], which suggests that the {{SSLContext}} needs to be initialized.

    JBoss Issue Tracker | 3 years ago | Anthony Whitford
    java.lang.RuntimeException: java.lang.IllegalStateException: SSLContextImpl is not initialized
  3. 0

    Error creating web service from WSDL in 11.1.2.0.0 | Oracle Community

    oracle.com | 11 months ago
    java.lang.IllegalStateException: SSLContextImpl is not initialized
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error creating web service from WSDL in 11.1.2.0.0 - JDeveloper and ADF

    developer-works.com | 11 months ago
    java.lang.IllegalStateException: SSLContextImpl is not initialized

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      SSLContextImpl is not initialized

      at com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory()
    2. Java JSSE
      SSLContextImpl.engineGetSocketFactory
      1. com.sun.net.ssl.internal.ssl.SSLContextImpl.engineGetSocketFactory(SSLContextImpl.java:145)
      1 frame
    3. Java RT
      SSLContext.getSocketFactory
      1. javax.net.ssl.SSLContext.getSocketFactory(SSLContext.java:260)
      1 frame
    4. Apache HttpClient
      SSLSocketFactory.<init>
      1. org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:238)
      2. org.apache.http.conn.ssl.SSLSocketFactory.<init>(SSLSocketFactory.java:244)
      2 frames
    5. HtmlUnit
      InsecureSSLProtocolSocketFactory.<init>
      1. com.gargoylesoftware.htmlunit.ssl.InsecureSSLProtocolSocketFactory.<init>(InsecureSSLProtocolSocketFactory.java:54)
      1 frame