java.net.SocketException: Software caused connection abort: recv failed

JFrog JIRA | Andrew Bernhagen | 5 months ago
  1. 0

    Hello, We had attempted to do an upgrade from 3.4.0 to 4.7.7 this past weekend in our company. At first, it seemed that things were working okay. Unfortunately, we found that we were seeing intermittent failures when publishing (deploying) artifacts from our Jenkins/Ant build jobs. I did as much debugging as possible through all Artifactory logs. I found no errors in their logs and saw that the artifacts were being accepted for deploy. However, here is the output from my ant job that is sometimes failing: publish: [echo] Publishing artifact module company-enterprise-logging with revision 2.0.0-RC-22 to resolver rc-local [ivy:publish] :: delivering :: com.company.logging#company-enterprise-logging;2.0.0 :: 2.0.0-RC-22 :: integration :: Mon Jul 11 10:06:10 CDT 2016 [ivy:publish] delivering ivy file to D:\Jenkins\jobs\architecture-enterpriselogging-log4j2-build\workspace\companyEnterpriseLoggingLog4j2\build\ivys\company-enterprise-logging-2.0.0-RC-22.xml [ivy:publish] :: publishing :: com.company.logging#company-enterprise-logging Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected [ivy:publish] published company-enterprise-logging to https://artifactory.company.com/artifactory/rc-local/com/company/logging/company-enterprise-logging/2.0.0-RC-22/company-enterprise-logging-2.0.0-RC-22.jar Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected [ivy:publish] published company-enterprise-logging to https://artifactory.company.com/artifactory/rc-local/com/company/logging/company-enterprise-logging/2.0.0-RC-22/company-enterprise-logging-2.0.0-RC-22.pom Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected [ivy:publish] published company-enterprise-logging to https://artifactory.company.com/artifactory/rc-local/com/company/logging/company-enterprise-logging/2.0.0-RC-22/company-enterprise-logging-2.0.0-RC-22-sources.jar Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected [ivy:publish] published company-enterprise-logging to https://artifactory.company.com/artifactory/rc-local/com/company/logging/company-enterprise-logging/2.0.0-RC-22/company-enterprise-logging-2.0.0-RC-22-javadoc.jar Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected Jul 11, 2016 10:06:10 AM org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme INFO: Basic authentication scheme selected BUILD FAILED D:\Jenkins\jobs\architecture-enterpriselogging-log4j2-build\workspace\CommonBuildAnt\common-build.xml:1178: impossible to publish artifacts for com.company.logging#company-enterprise-logging;2.0.0: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:152) at java.net.SocketInputStream.read(SocketInputStream.java:122) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) at sun.security.ssl.InputRecord.read(InputRecord.java:480) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934) at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:891) at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) at java.io.BufferedInputStream.read1(BufferedInputStream.java:275) at java.io.BufferedInputStream.read(BufferedInputStream.java:334) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170) at org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184) at org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369) at org.apache.commons.httpclient.ContentLengthInputStream.close(ContentLengthInputStream.java:118) at java.io.FilterInputStream.close(FilterInputStream.java:181) at org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194) at org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:205) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at org.apache.ivy.util.url.HttpClientHandler.upload(HttpClientHandler.java:137) at org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82) at org.apache.ivy.util.FileUtil.copy(FileUtil.java:283) at org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84) at org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130) at org.apache.ivy.plugins.resolver.RepositoryResolver.putChecksum(RepositoryResolver.java:250) at org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:236) at org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:215) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:281) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:260) at org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172) at org.apache.ivy.Ivy.publish(Ivy.java:621) at org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311) at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) at org.apache.tools.ant.Project.executeTarget(Project.java:1376) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1260) at org.apache.tools.ant.Main.runBuild(Main.java:853) at org.apache.tools.ant.Main.startAnt(Main.java:235) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)

    JFrog JIRA | 5 months ago | Andrew Bernhagen
    java.net.SocketException: Software caused connection abort: recv failed
  2. 0

    When i try to receive http response i am getting the following error.kindly help me.. - MuleSoft

    mulesoft.com | 7 months ago
    java.net.SocketException: Software caused connection abort: recv failed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Connection timeout while reading from S3

    Google Groups | 4 years ago | Mayank Ahuja
    java.net.SocketException: Connection reset

  1. tvrmsmith 1 times, last 3 weeks ago
  2. Tahir 2 times, last 2 months ago
  3. aldrinleal 11 times, last 5 months ago
  4. Nikolay Rybak 1 times, last 7 months ago
  5. rp 1 times, last 10 months ago
20 more registered users
73 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. java.net.SocketException

    Software caused connection abort: recv failed

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    SocketInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(SocketInputStream.java:152)
    3. java.net.SocketInputStream.read(SocketInputStream.java:122)
    3 frames
  3. Java JSSE
    AppInputStream.read
    1. sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
    2. sun.security.ssl.InputRecord.read(InputRecord.java:480)
    3. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934)
    4. sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:891)
    5. sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
    5 frames
  4. Java RT
    BufferedInputStream.read
    1. java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    2. java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
    3. java.io.BufferedInputStream.read(BufferedInputStream.java:334)
    3 frames
  5. HttpClient
    ContentLengthInputStream.close
    1. org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:170)
    2. org.apache.commons.httpclient.ContentLengthInputStream.read(ContentLengthInputStream.java:184)
    3. org.apache.commons.httpclient.ChunkedInputStream.exhaustInputStream(ChunkedInputStream.java:369)
    4. org.apache.commons.httpclient.ContentLengthInputStream.close(ContentLengthInputStream.java:118)
    4 frames
  6. Java RT
    FilterInputStream.close
    1. java.io.FilterInputStream.close(FilterInputStream.java:181)
    1 frame
  7. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.AutoCloseInputStream.notifyWatcher(AutoCloseInputStream.java:194)
    2. org.apache.commons.httpclient.AutoCloseInputStream.close(AutoCloseInputStream.java:158)
    3. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:205)
    4. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    5. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    5 frames
  8. Apache Ivy
    IvyTask.execute
    1. org.apache.ivy.util.url.HttpClientHandler.upload(HttpClientHandler.java:137)
    2. org.apache.ivy.util.url.URLHandlerDispatcher.upload(URLHandlerDispatcher.java:82)
    3. org.apache.ivy.util.FileUtil.copy(FileUtil.java:283)
    4. org.apache.ivy.plugins.repository.url.URLRepository.put(URLRepository.java:84)
    5. org.apache.ivy.plugins.repository.AbstractRepository.put(AbstractRepository.java:130)
    6. org.apache.ivy.plugins.resolver.RepositoryResolver.putChecksum(RepositoryResolver.java:250)
    7. org.apache.ivy.plugins.resolver.RepositoryResolver.put(RepositoryResolver.java:236)
    8. org.apache.ivy.plugins.resolver.RepositoryResolver.publish(RepositoryResolver.java:215)
    9. org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:281)
    10. org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:260)
    11. org.apache.ivy.core.publish.PublishEngine.publish(PublishEngine.java:172)
    12. org.apache.ivy.Ivy.publish(Ivy.java:621)
    13. org.apache.ivy.ant.IvyPublish.doExecute(IvyPublish.java:311)
    14. org.apache.ivy.ant.IvyTask.execute(IvyTask.java:271)
    14 frames
  9. Ant
    UnknownElement.execute
    1. org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
    1 frame
  10. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:606)
    3 frames
  11. Ant
    Main.startAnt
    1. org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    2. org.apache.tools.ant.Task.perform(Task.java:348)
    3. org.apache.tools.ant.Target.execute(Target.java:435)
    4. org.apache.tools.ant.Target.performTasks(Target.java:456)
    5. org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
    6. org.apache.tools.ant.Project.executeTarget(Project.java:1376)
    7. org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    8. org.apache.tools.ant.Project.executeTargets(Project.java:1260)
    9. org.apache.tools.ant.Main.runBuild(Main.java:853)
    10. org.apache.tools.ant.Main.startAnt(Main.java:235)
    10 frames
  12. Apache Ant Launcher
    Launcher.main
    1. org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
    2. org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
    2 frames