javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

JIRA | Peter Atthem | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hi, I run into problems when trying to export a pdf som command line using the CLI for Confluence. We are running ssl and the cert is valid, confluence and jira can communicate without problem. The apache 2 is the proxy and has ServerName: url.com and ServerAlias: *.url.com in it. The confluence server.xml has in the connector port scheme="https" port="443" proxyName="url.com" Even tried just to disable JNI with this param. -Djsse.enableSNIExtension=false Still when I run: * ./confluence.sh --action exportSpace --space "XYZ" --file "exportSpace.pdf" --exportType "PDF" --server "https://url.com" --user "username" --password "password" -v* --- Error below-- {noformat} Server address: https://url.com/rpc/soap-axis/confluenceservice-v2 Login failed for https://url.com, retry once to avoid occasional timeouts. Unable to log in to server: https://url.com.com/rpc/soap-axis/confluenceservice-v2 with user: username. Cause: ; nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {http://xml.apache.org/axis/}hostname:machinelinux03 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) ... 17 more {noformat} I am open for any new input to solve it. BR Peter

    JIRA | 1 year ago | Peter Atthem
    javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
  2. 0

    Hi, I run into problems when trying to export a pdf som command line using the CLI for Confluence. We are running ssl and the cert is valid, confluence and jira can communicate without problem. The apache 2 is the proxy and has ServerName: url.com and ServerAlias: *.url.com in it. The confluence server.xml has in the connector port scheme="https" port="443" proxyName="url.com" Even tried just to disable JNI with this param. -Djsse.enableSNIExtension=false Still when I run: * ./confluence.sh --action exportSpace --space "XYZ" --file "exportSpace.pdf" --exportType "PDF" --server "https://url.com" --user "username" --password "password" -v* --- Error below-- {noformat} Server address: https://url.com/rpc/soap-axis/confluenceservice-v2 Login failed for https://url.com, retry once to avoid occasional timeouts. Unable to log in to server: https://url.com.com/rpc/soap-axis/confluenceservice-v2 with user: username. Cause: ; nested exception is: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) {http://xml.apache.org/axis/}hostname:machinelinux03 javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure 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 org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821) at org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454) at org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444) at org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421) at org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303) at org.swift.common.cli.CliClient.doWork(CliClient.java:433) at org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186) at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191) at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138) ... 17 more {noformat} I am open for any new input to solve it. BR Peter

    JIRA | 1 year ago | Peter Atthem
    javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
  3. 0

    keystore.jks to be used in Java application

    Stack Overflow | 3 years ago | D.R.
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Setting up Jetty Runner with custom Cert in Docker Build File

    Stack Overflow | 2 years ago | mdedetrich
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  6. 0

    Error consuming web service due to lack of certificate in java (XML SOAP based)

    Stack Overflow | 5 years ago
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
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. javax.net.ssl.SSLHandshakeException

    Received fatal alert: handshake_failure faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

    at sun.security.ssl.Alerts.getSSLException()
  2. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    2. sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
    3. sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
    4. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
    5. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    6. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    7. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
    7 frames
  3. Axis Web Services
    Call.invoke
    1. org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
    2. org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
    3. org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
    4. org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    5. org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    6. org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    7. org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    8. org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    9. org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    10. org.apache.axis.client.Call.invoke(Call.java:2767)
    11. org.apache.axis.client.Call.invoke(Call.java:2443)
    12. org.apache.axis.client.Call.invoke(Call.java:2366)
    13. org.apache.axis.client.Call.invoke(Call.java:1812)
    13 frames
  4. org.swift.common
    ConfluenceserviceV2SoapBindingStub.login
    1. org.swift.common.soap.confluence.ConfluenceserviceV2SoapBindingStub.login(ConfluenceserviceV2SoapBindingStub.java:4821)
    1 frame
  5. org.swift.confluence
    ConfluenceClient.serviceLogin
    1. org.swift.confluence.cli.ConfluenceClient.serviceLogin(ConfluenceClient.java:454)
    1 frame
  6. org.swift.common
    CliClient.doWork
    1. org.swift.common.cli.AbstractRemoteClient.remoteLogin(AbstractRemoteClient.java:444)
    2. org.swift.common.cli.AbstractRemoteClient.setupRemote(AbstractRemoteClient.java:421)
    3. org.swift.common.cli.AbstractRemoteClient.handleSetupRemote(AbstractRemoteClient.java:266)
    4. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:303)
    5. org.swift.common.cli.CliClient.doWork(CliClient.java:433)
    5 frames
  7. org.swift.confluence
    ConfluenceClient.main
    1. org.swift.confluence.cli.ConfluenceClient.main(ConfluenceClient.java:171)
    1 frame