java.lang.RuntimeException: Exception encountered when writng to socket

Jenkins JIRA | Axel Heider | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I'm seeing the error below. Unfortunately, there is no recovery here, and the trhead is stuck. I have to restart jenkins to run anew try with changed IRC settings. {noformat} hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect hudson.plugins.ircbot.v2.IRCConnection connect INFO: Connecting to xxxx:6667 as xxxx using charset UTF-8 Exception in thread "IM-Reconnector-Thread" java.lang.RuntimeException: Exception encountered when writng to socket at org.pircbotx.OutputThread.sendRawLineNow(OutputThread.java:71) at org.pircbotx.PircBotX.connect(PircBotX.java:340) at hudson.plugins.ircbot.v2.IRCConnection.connect(IRCConnection.java:118) at hudson.plugins.ircbot.v2.IRCConnectionProvider.createConnection(IRCConnectionProvider.java:37) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:679) Caused by: java.net.SocketException: Broken pipe 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:220) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:253) at org.pircbotx.OutputThread.sendRawLineNow(OutputThread.java:67) ... 7 more {noformat}

    Jenkins JIRA | 4 years ago | Axel Heider
    java.lang.RuntimeException: Exception encountered when writng to socket
  2. 0

    I'm seeing the error below. Unfortunately, there is no recovery here, and the trhead is stuck. I have to restart jenkins to run anew try with changed IRC settings. {noformat} hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect hudson.plugins.ircbot.v2.IRCConnection connect INFO: Connecting to xxxx:6667 as xxxx using charset UTF-8 Exception in thread "IM-Reconnector-Thread" java.lang.RuntimeException: Exception encountered when writng to socket at org.pircbotx.OutputThread.sendRawLineNow(OutputThread.java:71) at org.pircbotx.PircBotX.connect(PircBotX.java:340) at hudson.plugins.ircbot.v2.IRCConnection.connect(IRCConnection.java:118) at hudson.plugins.ircbot.v2.IRCConnectionProvider.createConnection(IRCConnectionProvider.java:37) at hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65) at hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22) at hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183) at java.lang.Thread.run(Thread.java:679) Caused by: java.net.SocketException: Broken pipe 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:220) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:253) at org.pircbotx.OutputThread.sendRawLineNow(OutputThread.java:67) ... 7 more {noformat}

    Jenkins JIRA | 4 years ago | Axel Heider
    java.lang.RuntimeException: Exception encountered when writng to socket
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    SocketException inside IOException

    Stack Overflow | 2 years ago | Andy
    java.net.SocketException: Broken pipe

  1. poroszd 3 times, last 4 weeks ago
6 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

    Broken pipe

    at java.net.SocketOutputStream.socketWrite0()
  2. Java RT
    BufferedWriter.flush
    1. java.net.SocketOutputStream.socketWrite0(Native Method)
    2. java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
    3. java.net.SocketOutputStream.write(SocketOutputStream.java:153)
    4. sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
    5. sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290)
    6. sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294)
    7. sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140)
    8. java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
    9. java.io.BufferedWriter.flush(BufferedWriter.java:253)
    9 frames
  3. org.pircbotx
    PircBotX.connect
    1. org.pircbotx.OutputThread.sendRawLineNow(OutputThread.java:67)
    2. org.pircbotx.PircBotX.connect(PircBotX.java:340)
    2 frames
  4. hudson.plugins.ircbot
    IRCConnectionProvider.createConnection
    1. hudson.plugins.ircbot.v2.IRCConnection.connect(IRCConnection.java:118)
    2. hudson.plugins.ircbot.v2.IRCConnectionProvider.createConnection(IRCConnectionProvider.java:37)
    2 frames
  5. Hudson instant-messaging plugin
    IMConnectionProvider$ConnectorRunnable.run
    1. hudson.plugins.im.IMConnectionProvider.create(IMConnectionProvider.java:65)
    2. hudson.plugins.im.IMConnectionProvider.access$600(IMConnectionProvider.java:22)
    3. hudson.plugins.im.IMConnectionProvider$ConnectorRunnable.run(IMConnectionProvider.java:183)
    3 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:679)
    1 frame