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 web2019

  • via GitHub by xingzhefeng
    ,
  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • Stack trace

    • java.net.SocketException: Connection reset by peer: 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 java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) at kafka_clj.tcp_api$write_BANG_.invokeStatic(tcp_api.clj:14) at kafka_clj.tcp_api$write_BANG_.doInvoke(tcp_api.clj:10) at clojure.lang.RestFn.invoke(RestFn.java:464) at kafka_clj.produce$send_messages.invokeStatic(produce.clj:192) at kafka_clj.produce$send_messages.invoke(produce.clj:175) at kafka_clj.produce$send_messages.invokeStatic(produce.clj:181) at kafka_clj.produce$send_messages.invoke(produce.clj:175) at kafka_clj.client$send_messages.invokeStatic(client.clj:287) at kafka_clj.client$send_messages.invoke(client.clj:282) at kafka_clj.client$send_data.invokeStatic(client.clj:298) at kafka_clj.client$send_data.invoke(client.clj:291) at kafka_clj.client$handle_async_topic_messages.invokeStatic(client.clj:322) at kafka_clj.client$handle_async_topic_messages.invoke(client.clj:318) at kafka_clj.client$async_handler$fn__10902$fn__10911.invoke(client.clj:336) at clojure.lang.AFn.run(AFn.java:22) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    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

    esaaresaar
    Once,
    ivanszkypeterivanszkypeter
    20 times, last one
    Unknown visitor
    Unknown visitorOnce,
    mortalman7mortalman7
    Once,
    HronomHronom
    3 times, last one
    217 more bugmates