java.net.SocketException

Software caused connection abort: > socket > write error > > * > > A cut down version of the code is as follows ... > > try { > FTPClient ftpClient = new FTPClient(); > FTPClientConfig ppFTPServerConfig = new FTPClientConfig(); > ftpClient.configure(ppFTPServerConfig); > ftpClient.connect(ftpServerName); > ftpClient.login(ftpServerUsername, ftpServerPassword); > > int reply = ftp.getReplyCode [1](); > > if (!FTPReply.isPositiveCompletion(reply)) { > > System.out.println(ftpClient.listFiles()); > > } > } catch (Exception e) { > e.printStackTrace(); > } > > The code fails with the above exception when trying to list the files. > > Any ideas? I'm stumped > > Many thanks in advance for any comments. > > > > * > SEVERE: java.net.SocketException: Software caused connection abort: > socket > write error >

Samebug tips13

Probably there is a bug in TestNG Eclipse plugin (6.8.6.20130607_0745), try an other version (e.g. 6.8.0.20121120_1820)

before running my test in debug mode, i open the debug view, and remove some breakpoints (such as some remaining on NullPointersExceptions, and Sockets)

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1987

  • via Unknown by kytie,
  • via Stack Overflow by nomee.tec
    ,
  • via Stack Overflow by user373201
    ,
  • Stack trace

    • java.net.SocketException: Software caused connection abort: > socket > write error > > * > > A cut down version of the code is as follows ... > > try { > FTPClient ftpClient = new FTPClient(); > FTPClientConfig ppFTPServerConfig = new FTPClientConfig(); > ftpClient.configure(ppFTPServerConfig); > ftpClient.connect(ftpServerName); > ftpClient.login(ftpServerUsername, ftpServerPassword); > > int reply = ftp.getReplyCode [1](); > > if (!FTPReply.isPositiveCompletion(reply)) { > > System.out.println(ftpClient.listFiles()); > > } > } catch (Exception e) { > e.printStackTrace(); > } > > The code fails with the above exception when trying to list the files. > > Any ideas? I'm stumped > > Many thanks in advance for any comments. > > > > * > SEVERE: java.net.SocketException: Software caused connection abort: > socket > write error > at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:254)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    poroszdporoszd
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    217 more bugmates