0 Replies Latest reply: Dec 4, 2012 2:10 PM by 977970 RSS

    Getting error java.lang.UnsatisfiedLinkError: initSSLContextNative

    977970
      We are getting the below error when calling a webservice from EBusiness Suit and the response we get a random key

      java.lang.UnsatisfiedLinkError: initSSLContextNative
           at oracle.security.ssl.OracleSSLSocketImpl.initSSLContextNative(Native Method)
           at oracle.security.ssl.OracleSSLSocketImpl.initSSLContext(OracleSSLSocketImpl.java)
           at oracle.security.ssl.OracleSSLSocketImpl.(OracleSSLSocketImpl.java)
           at oracle.security.ssl.OracleSSLSocketFactoryImpl.createSocket(OracleSSLSocketFactoryImpl.java)
           at HTTPClient.HTTPConnection.getSSLSocket(HTTPConnection.java:1968)
           at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2938)
           at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2150)
           at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:3561)
           at HTTPClient.HTTPConnection.ExtensionMethod(HTTPConnection.java:1570)
           at HTTPClient.HttpURLConnection.connect(HttpURLConnection.java:252)
           at HTTPClient.HttpURLConnection.getInputStream(HttpURLConnection.java:481)
           at oa_html._RequesterValidatePG._jspService(_RequesterValidatePG.java:621)
           at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java)
           at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
           at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
           at oracle.jsp.JspServlet.internalService(JspServlet.java)
           at oracle.jsp.JspServlet.service(JspServlet.java)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
           at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
           at org.apache.jserv.JServConnection.run(JServConnection.java:294)
           at java.lang.Thread.run(Thread.java:534)


      We have the below code in jsp page:

      URLConnection yc = vSignData.openConnection();
      String encoding = new sun.misc.BASE64Encoder().encode((rtUsername + ":" + rtPassword ).getBytes());
      yc.setRequestProperty ("Authorization", "Basic " + encoding);


      BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
      String inputLine;

      we are getting the error at BuffereReader line.

      I really appreciate your help in resolving this.