java.net.SocketException

Connection reset by peer: 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 Andrei Baranouski,
  • via Unknown by Andrei Baranouski,
  • via Unknown by Andrei Baranouski,
  • Stack trace

    • java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method)[na:1.6.0_27] at java.net.SocketOutputStream.socketWrite(Unknown Source)[na:1.6.0_27] at java.net.SocketOutputStream.write(Unknown Source)[na:1.6.0_27] at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)[na:1.6.0_27] at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)[na:1.6.0_27] at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)[na:1.6.0_27] at sun.nio.cs.StreamEncoder.flush(Unknown Source)[na:1.6.0_27] at java.io.OutputStreamWriter.flush(Unknown Source)[na:1.6.0_27] at java.io.BufferedWriter.flush(Unknown Source)[na:1.6.0_27] at com.couchbase.sdkdclient.handle.Handle.sendMessageAsync(Handle.java:188)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.handle.Handle.close(Handle.java:254)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.driver.HandleManager.stopAll(HandleManager.java:26)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.driver.HostPortDriver.stop(HostPortDriver.java:118)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.driver.ExecutingDriver.stop(ExecutingDriver.java:117)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.stester.STester.close(STester.java:167)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.batch.BRun.runHarness(BRun.java:287)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.batch.BRun.runSingleTest(BRun.java:394)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.batch.BRun.run(BRun.java:478)[sdkdclient-1.0-SNAPSHOT.jar:na] at com.couchbase.sdkdclient.batch.BRun.main(BRun.java:510)[sdkdclient-1.0-SNAPSHOT.jar:na]

    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,
    Unknown visitor
    Unknown visitorOnce,
    poroszdporoszd
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    217 more bugmates