java.lang.RuntimeException

Couldn't pause thread for message delay

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 web1974

  • via Unknown by BB,
  • via GitHub by Sorgrum
    ,
  • Stack trace

    • java.lang.RuntimeException: Couldn't pause thread for message delay at org.pircbotx.output.OutputRaw.rawLine(OutputRaw.java:76) at org.pircbotx.PircBotX.startLineProcessing(PircBotX.java:254) at org.pircbotx.PircBotX.connect(PircBotX.java:236) at org.pircbotx.PircBotX.startBot(PircBotX.java:151) at Main.main(Main.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120) Caused by: java.lang.RuntimeException: Exception encountered when writing to socket at org.pircbotx.PircBotX.sendRawLineToServer(PircBotX.java:303) at org.pircbotx.Utils.sendRawLineToServer(Utils.java:88) at org.pircbotx.output.OutputRaw.rawLine(OutputRaw.java:73) ... 9 more Caused by: java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113) at java.net.SocketOutputStream.write(SocketOutputStream.java:159) 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 org.pircbotx.PircBotX.sendRawLineToServer(PircBotX.java:300) ... 11 more

    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,
    ivanszkypeterivanszkypeter
    20 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    211 more bugmates