Forum Stats

  • 3,781,590 Users
  • 2,254,530 Discussions
  • 7,879,763 Comments

Discussions

javax.net.ssl.SSLException: Received fatal alert: handshake_failure

Hi Guys

I am invoking the rest web service from java could service instance ,

I have imported the certificate for java could service instance using below command

javacloud -user [email protected] -password xxx#1 -identitydomain ebzy-test -serviceinstance test -dc us2 -add-ssl-certificates -path C:\oracle\Middleware\jdeveloper\cloud\oracle-javacloud-sdk\test.jks

command show successful but I when I am trying to access web service using  weblogic.net.http.HttpsURLConnection I get below error

javax.net.ssl.SSLException: Received fatal alert: handshake_failure

at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)

at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1639)

at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1607)

at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1776)

at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1068)

at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:890)

at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:764)

at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:664)

at weblogic.security.SSL.jsseadapter.JaSSLEngine$5.run(JaSSLEngine.java:134)

at weblogic.security.SSL.jsseadapter.JaSSLEngine.doAction(JaSSLEngine.java:732)

at weblogic.security.SSL.jsseadapter.JaSSLEngine.unwrap(JaSSLEngine.java:132)

at weblogic.socket.JSSEFilterImpl.unwrap(JSSEFilterImpl.java:511)

at weblogic.socket.JSSEFilterImpl.unwrapAndHandleResults(JSSEFilterImpl.java:454)

at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:82)

at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:66)

at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:61)

at weblogic.socket.JSSEFilterImpl.write(JSSEFilterImpl.java:396)

at weblogic.socket.JSSESocket$JSSEOutputStream.write(JSSESocket.java:89)

at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)

at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)

at java.io.FilterOutputStream.flush(FilterOutputStream.java:140)

at weblogic.net.http.HttpURLConnection.writeRequests(HttpURLConnection.java:191)

at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:411)

at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)

at project1.Class2.print_content(Class2.java:120)

at project1.Class2.testIt(Class2.java:66)

at project1.Class2.main(Class2.java:37)

at project1.Servlet1.doGet(Servlet1.java:28)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

at weblogic.servlet.security.internal.WebGateRedirectFilter.doFilter(WebGateRedirectFilter.java:200)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)

at java.security.AccessController.doPrivileged(Native Method)

at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)

at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)

at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)

at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

at oracle.security.wls.filter.SSOSessionSynchronizationFilter.doFilter(SSOSessionSynchronizationFilter.java:292)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3801)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3767)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2336)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2235)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1545)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:336)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:270)

This discussion has been closed.