java.net.SocketException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


rafael
tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


rafael

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

  • I'm enviroment WindowsXpSp3,JDKu22 hudson.war 1.384 >sample.groovy new File(".").eachFile { println it } hudson-cli.jar conncet to hudson.war, end of groovy script is hudson rais console error ocuuerd and groovy script action changed(location hudson-cli.jar) D:\workspace36\hudson>c:\opt\jdk/bin/java -jar hudson.war --httpPort=9090 --httpsPort=9091 Running from: D:\workspace36\hudson\hudson.war [Winstone 2010/11/08 09:53:36] - Beginning extraction from war file hudson home directory: D:\workspace36\hudson Using one-time self-signed certificate [Winstone 2010/11/08 09:53:37] - HTTP Listener started: port=9090 [Winstone 2010/11/08 09:53:37] - AJP13 Listener started: port=8009 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Started initialization 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Listed all plugins 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Prepared all plugins 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Started all plugins 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Augmented all extensions 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Loaded all jobs [Winstone 2010/11/08 09:53:37] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled [Winstone 2010/11/08 09:53:38] - HTTPS Listener started: port=9091 2010/11/08 9:53:38 hudson.model.Hudson$4 onAttained 情報: Completed initialization 2010/11/08 9:53:38 hudson.TcpSlaveAgentListener <init> 情報: JNLP slave agent listener started on TCP port 4844 2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack 情報: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller 2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack 情報: Obtained the updated data file for hudson.tasks.Ant.AntInstaller 2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack 情報: Obtained the updated data file for hudson.tools.JDKInstaller 2010/11/08 9:54:14 hudson.model.UpdateSite doPostBack 情報: Obtained the latest update center data file for UpdateSource default 2010/11/08 9:54:54 hudson.TcpSlaveAgentListener$ConnectionHandler run 情報: Accepted connection #1 from /127.0.0.1:4950 2010/11/08 9:54:56 hudson.remoting.Channel$ReaderThread run 致命的: I/O error in channel CLI channel from /127.0.0.1 java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:948) D:\workspace36\hudson>c:\opt\jdk/bin/java -jar war/WEB-INF/hudson-cli.jar -s http://localhost:9090 groovy sample.groovy .\hudson-134.war .\hudson-cli.bat .\hudson.bat .\hudson.model.UpdateCenter.xml .\hudson.war .\hudson.war.tmp .\HudsonでAndroidする - hidecheckの日記.htm .\HudsonでAndroidする - hidecheckの日記_files copy to war/WEB-INF/hudson-cli.jar ./ , but not exception occured (groovy action changed...) D:\workspace36\hudson>c:\opt\jdk/bin/java -jar hudson-cli.jar -s http://localhost:9090 groovy sample.groovy .\hudson-134.war .\hudson-cli.bat .\hudson-cli.jar .\hudson.bat .\hudson.model.UpdateCenter.xml .\hudson.war .\hudson.war.tmp .\HudsonでAndroidする - hidecheckの日記.htm .\HudsonでAndroidする - hidecheckの日記_files .\jobs .\nodeMonitors.xml move to hudson-cli.jar locate foloder , but not exception occured (groovy action changed...) D:\workspace36>c:\opt\jdk/bin/java -jar hudson-cli.jar -s http://localhost:9090 groovy sample.groovy .\hudson-134.war .\hudson-cli.bat .\hudson-cli.jar .\hudson.bat .\hudson.model.UpdateCenter.xml .\hudson.war .\hudson.war.tmp .\HudsonでAndroidする - hidecheckの日記.htm .\HudsonでAndroidする - hidecheckの日記_files .\jobs .\nodeMonitors.xml .\plugins .\queue.xml.bak .\sample.groovy .\sample2.groovy .\secret.key .\start.bat .\test.groovy .\updates .\userContent .\war
    via by kimukou_26,
  • I'm enviroment WindowsXpSp3,JDKu22 hudson.war 1.384 >sample.groovy new File(".").eachFile { println it } hudson-cli.jar conncet to hudson.war, end of groovy script is hudson rais console error ocuuerd and groovy script action changed(location hudson-cli.jar) D:\workspace36\hudson>c:\opt\jdk/bin/java -jar hudson.war --httpPort=9090 --httpsPort=9091 Running from: D:\workspace36\hudson\hudson.war [Winstone 2010/11/08 09:53:36] - Beginning extraction from war file hudson home directory: D:\workspace36\hudson Using one-time self-signed certificate [Winstone 2010/11/08 09:53:37] - HTTP Listener started: port=9090 [Winstone 2010/11/08 09:53:37] - AJP13 Listener started: port=8009 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Started initialization 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Listed all plugins 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Prepared all plugins 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Started all plugins 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Augmented all extensions 2010/11/08 9:53:37 hudson.model.Hudson$4 onAttained 情報: Loaded all jobs [Winstone 2010/11/08 09:53:37] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled [Winstone 2010/11/08 09:53:38] - HTTPS Listener started: port=9091 2010/11/08 9:53:38 hudson.model.Hudson$4 onAttained 情報: Completed initialization 2010/11/08 9:53:38 hudson.TcpSlaveAgentListener <init> 情報: JNLP slave agent listener started on TCP port 4844 2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack 情報: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller 2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack 情報: Obtained the updated data file for hudson.tasks.Ant.AntInstaller 2010/11/08 9:54:12 hudson.model.DownloadService$Downloadable doPostBack 情報: Obtained the updated data file for hudson.tools.JDKInstaller 2010/11/08 9:54:14 hudson.model.UpdateSite doPostBack 情報: Obtained the latest update center data file for UpdateSource default 2010/11/08 9:54:54 hudson.TcpSlaveAgentListener$ConnectionHandler run 情報: Accepted connection #1 from /127.0.0.1:4950 2010/11/08 9:54:56 hudson.remoting.Channel$ReaderThread run 致命的: I/O error in channel CLI channel from /127.0.0.1 java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:948) D:\workspace36\hudson>c:\opt\jdk/bin/java -jar war/WEB-INF/hudson-cli.jar -s http://localhost:9090 groovy sample.groovy .\hudson-134.war .\hudson-cli.bat .\hudson.bat .\hudson.model.UpdateCenter.xml .\hudson.war .\hudson.war.tmp .\HudsonでAndroidする - hidecheckの日記.htm .\HudsonでAndroidする - hidecheckの日記_files copy to war/WEB-INF/hudson-cli.jar ./ , but not exception occured (groovy action changed...) D:\workspace36\hudson>c:\opt\jdk/bin/java -jar hudson-cli.jar -s http://localhost:9090 groovy sample.groovy .\hudson-134.war .\hudson-cli.bat .\hudson-cli.jar .\hudson.bat .\hudson.model.UpdateCenter.xml .\hudson.war .\hudson.war.tmp .\HudsonでAndroidする - hidecheckの日記.htm .\HudsonでAndroidする - hidecheckの日記_files .\jobs .\nodeMonitors.xml move to hudson-cli.jar locate foloder , but not exception occured (groovy action changed...) D:\workspace36>c:\opt\jdk/bin/java -jar hudson-cli.jar -s http://localhost:9090 groovy sample.groovy .\hudson-134.war .\hudson-cli.bat .\hudson-cli.jar .\hudson.bat .\hudson.model.UpdateCenter.xml .\hudson.war .\hudson.war.tmp .\HudsonでAndroidする - hidecheckの日記.htm .\HudsonでAndroidする - hidecheckの日記_files .\jobs .\nodeMonitors.xml .\plugins .\queue.xml.bak .\sample.groovy .\sample2.groovy .\secret.key .\start.bat .\test.groovy .\updates .\userContent .\war
    via by kimukou_26,
  • Can not connect slave to master
    via Stack Overflow by parvus
    ,
  • Issue with MKS Integrity /PMC Integrity Plug in
    via by Kalluri, Jagan,
    • java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) at java.io.BufferedInputStream.read(BufferedInputStream.java:237) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2248) at java.io.ObjectInputStream$BlockDataInputStream.peek(ObjectInputStream.java:2541) at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2551) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1296) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350) at hudson.remoting.Channel$ReaderThread.run(Channel.java:948)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    ivanszkypeter
    40 times, last one,
    191 more bugmates