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

Atlassian JIRA | Renan Battaglin | 5 years ago
  1. 0

    The following problem is reported when SVNKit 1.3.6 is used to checkout against an SSL SVN repo: {code} Jan 10, 2012 10:29:01 AM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINE: NETWORK: Received fatal alert: bad_record_mac javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at org.tmatesoft.svn.core.internal.util.SVNLogOutputStream.flush(SVNLogOutputStream.java:48) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:229) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:168) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:362) {code} Bug confirmed with the SVNKit Team via email. Will post a workaround once they provide it.

    Atlassian JIRA | 5 years ago | Renan Battaglin
    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
  2. 0

    The following problem is reported when SVNKit 1.3.6 is used to checkout against an SSL SVN repo: {code} Jan 10, 2012 10:29:01 AM org.tmatesoft.svn.core.internal.util.DefaultSVNDebugLogger log FINE: NETWORK: Received fatal alert: bad_record_mac javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at org.tmatesoft.svn.core.internal.util.SVNLogOutputStream.flush(SVNLogOutputStream.java:48) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:229) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:168) at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:362) {code} Bug confirmed with the SVNKit Team via email. Will post a workaround once they provide it.

    Atlassian JIRA | 5 years ago | Renan Battaglin
    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
  3. 0

    Simple Groupware Tracker Archive

    simple-groupware.de | 6 months ago
    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When I validate JIRA server connection I've received the following issue !ENTRY com.atlassian.connector.eclipse.jira.ui 4 0 2014-05-14 15:05:08.192 !MESSAGE com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac !STACK 0 com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:765) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.getSessionInfo(JiraRestClientAdapter.java:372) at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getSessionInfo(JiraClient.java:612) at com.atlassian.connector.eclipse.internal.jira.core.JiraClientManager.validateConnection(JiraClientManager.java:156) at com.atlassian.connector.eclipse.internal.jira.core.JiraClientFactory.validateConnection(JiraClientFactory.java:167) at com.atlassian.connector.eclipse.internal.jira.ui.wizards.JiraRepositorySettingsPage$JiraValidator.run(JiraRepositorySettingsPage.java:537) at org.eclipse.mylyn.tasks.ui.wizards.AbstractRepositorySettingsPage$29.run(AbstractRepositorySettingsPage.java:2009) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: com.atlassian.jira.rest.client.RestClientException: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:81) at com.atlassian.jira.rest.client.internal.jersey.JerseyMetadataRestClient.getSessionInfo(JerseyMetadataRestClient.java:118) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$7.call(JiraRestClientAdapter.java:374) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter$7.call(JiraRestClientAdapter.java:1) at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:730) ... 7 more Caused by: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.jersey.client.apache.DefaultApacheHttpMethodExecutor.executeMethod(DefaultApacheHttpMethodExecutor.java:213) at com.sun.jersey.client.apache.ApacheHttpClientHandler.handle(ApacheHttpClientHandler.java:175) at com.sun.jersey.api.client.Client.handle(Client.java:629) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:601) at com.sun.jersey.api.client.WebResource.get(WebResource.java:187) at com.atlassian.jira.rest.client.internal.jersey.JerseyMetadataRestClient$2.call(JerseyMetadataRestClient.java:125) at com.atlassian.jira.rest.client.internal.jersey.JerseyMetadataRestClient$2.call(JerseyMetadataRestClient.java:118) at com.atlassian.jira.rest.client.internal.jersey.AbstractJerseyRestClient.invoke(AbstractJerseyRestClient.java:60) ... 11 more Caused by: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190) at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1822) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1004) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:654) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:100) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828) at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at com.sun.jersey.client.apache.DefaultApacheHttpMethodExecutor.executeMethod(DefaultApacheHttpMethodExecutor.java:210) ... 18 more ----------------------------------------------------------------------------------------- I've solved with the following workaround adding the next property to my eclipse.ini -Dcom.sun.net.ssl.rsaPreMasterSecretFix=true -----------------------------------------------------------------------------------------

    Ecosystem JIRA | 3 years ago | Santiago
    com.atlassian.connector.eclipse.internal.jira.core.service.JiraException: com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
  6. 0

    Java6

    hc-httpclient-users | 10 years ago | Richard Suematsu
    javax.net.ssl.SSLException: java.lang.NullPointerException

    10 unregistered visitors
    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.SSLException

      Received fatal alert: bad_record_mac

      at com.sun.net.ssl.internal.ssl.Alerts.getSSLException()
    2. Java JSSE
      AppOutputStream.write
      1. com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
      2. com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
      3. com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720)
      4. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954)
      5. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
      6. com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:632)
      7. com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
      7 frames
    3. Java RT
      BufferedOutputStream.flush
      1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
      2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
      2 frames
    4. SVNKit Library
      HTTPConnection.request
      1. org.tmatesoft.svn.core.internal.util.SVNLogOutputStream.flush(SVNLogOutputStream.java:48)
      2. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.sendData(HTTPConnection.java:229)
      3. org.tmatesoft.svn.core.internal.io.dav.http.HTTPRequest.dispatch(HTTPRequest.java:168)
      4. org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:362)
      4 frames