java.net.SocketException: Software caused connection abort: socket write error

MuleSoft JIRA | leo Huang | 10 years ago
  1. 0

    After I downloaded the files from FTP server, after a few minutes, I will get the error in the method setupFileType of FtpConnector class as follows: java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77) at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137) at java.io.FilterOutputStream.flush(Unknown Source) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(Unknown Source) at sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.io.OutputStreamWriter.flush(Unknown Source) at java.io.BufferedWriter.flush(Unknown Source) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520) at org.apache.commons.net.ftp.FTP.type(FTP.java:921) at org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:974) at org.mule.providers.ftp.FtpConnector.setupFileType(FtpConnector.java:502) at org.mule.providers.ftp.FtpMessageReceiver.listFiles(FtpMessageReceiver.java:96) at org.mule.providers.ftp.FtpMessageReceiver.poll(FtpMessageReceiver.java:70) at org.mule.providers.AbstractPollingMessageReceiver.run(AbstractPollingMessageReceiver.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198) at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThr at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPool at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)

    MuleSoft JIRA | 10 years ago | leo Huang
    java.net.SocketException: Software caused connection abort: socket write error
  2. 0

    After I downloaded the files from FTP server, after a few minutes, I will get the error in the method setupFileType of FtpConnector class as follows: java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77) at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137) at java.io.FilterOutputStream.flush(Unknown Source) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(Unknown Source) at sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.io.OutputStreamWriter.flush(Unknown Source) at java.io.BufferedWriter.flush(Unknown Source) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520) at org.apache.commons.net.ftp.FTP.type(FTP.java:921) at org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:974) at org.mule.providers.ftp.FtpConnector.setupFileType(FtpConnector.java:502) at org.mule.providers.ftp.FtpMessageReceiver.listFiles(FtpMessageReceiver.java:96) at org.mule.providers.ftp.FtpMessageReceiver.poll(FtpMessageReceiver.java:70) at org.mule.providers.AbstractPollingMessageReceiver.run(AbstractPollingMessageReceiver.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198) at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThr at edu.emory.mathcs.backport.java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPool at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)

    MuleSoft JIRA | 10 years ago | leo Huang
    java.net.SocketException: Software caused connection abort: socket write error
  3. 0

    NetBeans Forums - FTP fails with NB 7.0.1 and Java 7

    netbeans.org | 11 months ago
    java.net.SocketException: Software caused connection abort: socket write error
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Authentication works, directories can be created, but while uploading files, it suddenly throws an exception as follows, and disconnects. Retry also fails always. I'm trying to upload to godaddy ftp site. I can do with FileZilla without problems, so its not about filenames or permissions. {noformat} ERROR: Failed to upload files java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77) at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137) at java.io.FilterOutputStream.flush(Unknown Source) at sun.nio.cs.StreamEncoder.implFlush(Unknown Source) at sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.io.OutputStreamWriter.flush(Unknown Source) at java.io.BufferedWriter.flush(Unknown Source) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520) at org.apache.commons.net.ftp.FTP.port(FTP.java:849) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:477) at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:388) at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1388) at com.zanox.hudson.plugins.FTPSite.upload(FTPSite.java:358) at com.zanox.hudson.plugins.EntryCopier.copyFile(EntryCopier.java:87) at com.zanox.hudson.plugins.EntryCopier.copy(EntryCopier.java:77) at com.zanox.hudson.plugins.FTPPublisher.perform(FTPPublisher.java:179) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {noformat}

    Jenkins JIRA | 2 years ago | Rakesh Prasad
    java.net.SocketException: Software caused connection abort: socket write error
  6. 0

    Authentication works, directories can be created, but while uploading files, it suddenly throws an exception as follows, and disconnects. Retry also fails always. I'm trying to upload to godaddy ftp site. I can do with FileZilla without problems, so its not about filenames or permissions. {noformat} ERROR: Failed to upload files java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77) at org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137) at java.io.FilterOutputStream.flush(Unknown Source) at sun.nio.cs.StreamEncoder.implFlush(Unknown Source) at sun.nio.cs.StreamEncoder.flush(Unknown Source) at java.io.OutputStreamWriter.flush(Unknown Source) at java.io.BufferedWriter.flush(Unknown Source) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520) at org.apache.commons.net.ftp.FTP.port(FTP.java:849) at org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:477) at org.apache.commons.net.ftp.FTPClient.__storeFile(FTPClient.java:388) at org.apache.commons.net.ftp.FTPClient.storeFile(FTPClient.java:1388) at com.zanox.hudson.plugins.FTPSite.upload(FTPSite.java:358) at com.zanox.hudson.plugins.EntryCopier.copyFile(EntryCopier.java:87) at com.zanox.hudson.plugins.EntryCopier.copy(EntryCopier.java:77) at com.zanox.hudson.plugins.FTPPublisher.perform(FTPPublisher.java:179) at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) {noformat}

    Jenkins JIRA | 2 years ago | Rakesh Prasad
    java.net.SocketException: Software caused connection abort: socket write error

  1. kuldeep 4 times, last 2 months ago
  2. esaar 1 times, last 4 months ago
  3. mauritius 2 times, last 9 months ago
16 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: socket write error

    at java.net.SocketOutputStream.socketWrite0()
  2. Java RT
    BufferedOutputStream.flush
    1. java.net.SocketOutputStream.socketWrite0(Native Method)
    2. java.net.SocketOutputStream.socketWrite(Unknown Source)
    3. java.net.SocketOutputStream.write(Unknown Source)
    4. java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    5. java.io.BufferedOutputStream.flush(Unknown Source)
    5 frames
  3. Commons Net
    TelnetOutputStream.flush
    1. org.apache.commons.net.telnet.TelnetClient._flushOutputStream(TelnetClient.java:77)
    2. org.apache.commons.net.telnet.TelnetOutputStream.flush(TelnetOutputStream.java:137)
    2 frames
  4. Java RT
    BufferedWriter.flush
    1. java.io.FilterOutputStream.flush(Unknown Source)
    2. sun.nio.cs.StreamEncoder$CharsetSE.implFlush(Unknown Source)
    3. sun.nio.cs.StreamEncoder.flush(Unknown Source)
    4. java.io.OutputStreamWriter.flush(Unknown Source)
    5. java.io.BufferedWriter.flush(Unknown Source)
    5 frames
  5. Commons Net
    FTPClient.setFileType
    1. org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:442)
    2. org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520)
    3. org.apache.commons.net.ftp.FTP.type(FTP.java:921)
    4. org.apache.commons.net.ftp.FTPClient.setFileType(FTPClient.java:974)
    4 frames
  6. org.mule.providers
    AbstractPollingMessageReceiver.run
    1. org.mule.providers.ftp.FtpConnector.setupFileType(FtpConnector.java:502)
    2. org.mule.providers.ftp.FtpMessageReceiver.listFiles(FtpMessageReceiver.java:96)
    3. org.mule.providers.ftp.FtpMessageReceiver.poll(FtpMessageReceiver.java:70)
    4. org.mule.providers.AbstractPollingMessageReceiver.run(AbstractPollingMessageReceiver.java:116)
    4 frames
  7. Backport of JSR 166
    FutureTask.runAndReset
    1. edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
    2. edu.emory.mathcs.backport.java.util.concurrent.FutureTask.runAndReset(FutureTask.java:198)
    2 frames