0 Replies Latest reply: Oct 17, 2012 3:37 PM by 969074 RSS

    javax.net.ssl.SSLHandshakeException: FATAL Alert:HANDSHAKE_FAILURE

    969074
      Hi,

      Any help here would be appreciated...

      I'm trying to call a HTTPS webservice thru weblogic 6.1 java application. i have received the ".der" certificates from the service provider and its one way authentication. I have imported the two certificates which i received into a keystore using below commands.
      keytool -import -alias sample -file samplename.der-keystore serKeystore

      I have placed the serKeystore file in weblogic jdk security path: c:\bea\jdk131\jre\lib\security in my local machine.

      I have used below code in java file to get access to the certificates....

      System.setProperty("javax.net.ssl.trustStore", "C:\\bea\\jdk131\\jre\\lib\\security\\serKeystore");
      System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
                                    
      I have also place the below code in my web logic start up script....

      Djavax.net.ssl.trustStore=C:\bea\jdk131\jre\lib\security\serKeystore
      Djavax.net.ssl.trustStorePassword=changeit
      Dssl.debug=3Dtrue -Dweblogic.StdoutDebugEnabled=3Dtrue=20

      I'm getting below error which trying to invoke the service....

      376538 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.components.net.DefaultSocketFactory - Created an SSL connection
      376538 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.i18n.ProjectResourceBundle - org.apache.axis.i18n.resource::handleGetObject(xmlSent00)
      376538 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.transport.http.HTTPSender - XML sent:
      376538 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.transport.http.HTTPSender - ---------------------------------------------------
      376538 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.SOAPPart - Enter: SOAPPart::saveChanges
      376581 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.transport.http.HTTPSender - javax.net.ssl.SSLHandshakeException: FATAL Alert:HANDSHAKE_FAILURE - The handshake handler was unable to negotiate an acceptable set of security parameters.
      376582 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.utils.XMLUtils - Failed to set EntityResolver to null on DocumentBuilder
      java.lang.NullPointerException
      at weblogic.xml.jaxp.ChainingEntityResolver.popEntityResolver(ChainingEntityResolver.java:57)
      at weblogic.xml.jaxp.RegistryDocumentBuilder.setEntityResolver(RegistryDocumentBuilder.java:159)
      at org.apache.axis.utils.XMLUtils.releaseDocumentBuilder(XMLUtils.java:252)
      at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:342)
      at org.apache.axis.utils.XMLUtils.StringToElement(XMLUtils.java:522)
      at org.apache.axis.AxisFault.addFaultDetail(AxisFault.java:658)
      at org.apache.axis.AxisFault.addHostname(AxisFault.java:892)
      at org.apache.axis.AxisFault.addHostnameIfNeeded(AxisFault.java:881)
      at org.apache.axis.AxisFault.initFromException(AxisFault.java:280)
      at org.apache.axis.AxisFault.<init>(AxisFault.java:181)
      at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
      at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
      at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
      at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
      at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
      at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
      at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
      at org.apache.axis.client.Call.invoke(Call.java:2767)
      at org.apache.axis.client.Call.invoke(Call.java:2443)
      at org.apache.axis.client.Call.invoke(Call.java:2366)
      at org.apache.axis.client.Call.invoke(Call.java:1812)
      at com.ae.us.ENACT_DataLookup_Service.Webservice.LookUpData.ENACT_DataLookup_Service_Webservice_LookUpData_BinderStub.lookUpData(ENACT_DataLookup_Service_Webservice_LookUpData_BinderStub.java:176)
      at aep.ejb.eos.product.ProductBean.submit(ProductBean.java:183)
      at aep.ejb.eos.product.ProductBean_2wlstb_EOImpl.submit(ProductBean_2wlstb_EOImpl.java:37)
      at aep.util.eos.BusinessLookUp.<init>(BusinessLookUp.java:186)
      at aep.servlet.eos.ServletDelegator.processPost(ServletDelegator.java:88)
      at aep.servlet.eos.ServletDelegator.processGet(ServletDelegator.java:65)
      at aep.servlet.AepServlet.doGet(Unknown Source)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:490)
      at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:316)
      at aep.servlet.eos.ServletController.processPost(ServletController.java:437)
      at aep.servlet.eos.ServletController.processGet(ServletController.java:251)
      at aep.servlet.AepServlet.doGet(Unknown Source)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
      at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
      at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
      at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
      376587 [ExecuteThread: '3' for queue: 'default'] DEBUG org.apache.axis.SOAPPart - Enter: SOAPPart ctor(FORM_FAULT)

      Thanks

      Edited by: 966071 on Oct 17, 2012 1:37 PM