javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl. SSLSocketImpl.checkEOF(SSLSocketImpl.java:1267)

continuum-users | Vlado Peshov | 7 years ago
  1. 0

    The exception is because the http client cannot handle certificates for SSLv3 protocol, so this support must be explicitly enabled. Here is the exception: Could not download the URL: https://xxxxxx:*****@hostname.com/project/pom.xml javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl. SSLSocketImpl.checkEOF(SSLSocketImpl.java:1267) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1279) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:43) at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:87) at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:94) at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:171) at org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection.java:192) at org.apache.http.impl.conn.DefaultClientConnection.close(DefaultClientConnection.java:161) at org.apache.http.impl.conn.AbstractPooledConnAdapter.close(AbstractPooledConnAdapter.java:158) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:410) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465) at org.apache.maven.continuum.project.builder.AbstractContinuumProjectBuilder.createMetadataFile(AbstractContinuumProjectBuilder.java:122) at org.apache.maven.continuum.project.builder.AbstractContinuumProjectBuilder.createMetadataFile(AbstractContinuumProjectBuilder.java:244) at org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.readModules(MavenTwoContinuumProjectBuilder.java:149) at org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.buildProjectsFromMetadata(MavenTwoContinuumProjectBuilder.java:124) at org.apache.maven.continuum.core.action.CreateProjectsFromMetadataAction.execute(CreateProjectsFromMetadataAction.java:152) at org.apache.maven.continuum.DefaultContinuum.executeAction(DefaultContinuum.java:2759) at org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.java:1569) at org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.java:1815) at org.apache.maven.continuum.DefaultContinuum.addMavenTwoProject(DefaultContinuum.java:1365) at org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:109) at org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404) at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267) at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:56) at java.lang.Thread.run(Thread.java:619) 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:1694) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:939) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59) at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:87) at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:94) at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:171) at org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:176) at org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:221) at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:240) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:119) ... 23 more

    Apache's JIRA Issue Tracker | 7 years ago | Vlado Pesov
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl. SSLSocketImpl.checkEOF(SSLSocketImpl.java:1267)
  2. 0

    Possible solution for Exception while downloading pom from https url

    continuum-users | 7 years ago | Vlado Peshov
    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac at com.sun.net.ssl.internal.ssl. SSLSocketImpl.checkEOF(SSLSocketImpl.java:1267)
  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

    Received fatal alert: bad_record_mac | Oracle Community

    oracle.com | 8 months ago
    javax.net.ssl.SSLException: Received fatal alert: bad_record_mac
  6. 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

    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:1694)
      4. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:939)
      5. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1120)
      6. com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
      7. com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
      7 frames
    3. Apache Http
      AbstractHttpClientConnection.flush
      1. org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:87)
      2. org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:94)
      3. org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:171)
      4. org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:176)
      4 frames
    4. Apache HttpClient
      AbstractClientConnAdapter.flush
      1. org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:221)
      1 frame
    5. Apache Http
      HttpRequestExecutor.execute
      1. org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:240)
      2. org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:119)
      2 frames
    6. Apache HttpClient
      AbstractHttpClient.execute
      1. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:410)
      2. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
      3. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
      4. org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
      4 frames
    7. org.apache.maven
      AddMavenProjectAction.execute
      1. org.apache.maven.continuum.project.builder.AbstractContinuumProjectBuilder.createMetadataFile(AbstractContinuumProjectBuilder.java:122)
      2. org.apache.maven.continuum.project.builder.AbstractContinuumProjectBuilder.createMetadataFile(AbstractContinuumProjectBuilder.java:244)
      3. org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.readModules(MavenTwoContinuumProjectBuilder.java:149)
      4. org.apache.maven.continuum.project.builder.maven.MavenTwoContinuumProjectBuilder.buildProjectsFromMetadata(MavenTwoContinuumProjectBuilder.java:124)
      5. org.apache.maven.continuum.core.action.CreateProjectsFromMetadataAction.execute(CreateProjectsFromMetadataAction.java:152)
      6. org.apache.maven.continuum.DefaultContinuum.executeAction(DefaultContinuum.java:2759)
      7. org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.java:1569)
      8. org.apache.maven.continuum.DefaultContinuum.executeAddProjectsFromMetadataActivity(DefaultContinuum.java:1815)
      9. org.apache.maven.continuum.DefaultContinuum.addMavenTwoProject(DefaultContinuum.java:1365)
      10. org.apache.maven.continuum.web.action.AddMavenTwoProjectAction.doExecute(AddMavenTwoProjectAction.java:109)
      11. org.apache.maven.continuum.web.action.AddMavenProjectAction.execute(AddMavenProjectAction.java:189)
      11 frames
    8. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    9. XWork
      DefaultActionInvocation.invokeActionOnly
      1. com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
      2. com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
      2 frames
    10. Struts2
      BackgroundProcess$1.run
      1. org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:56)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame