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

Upgrade your docker-selenium

tip

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)

tip

before running my test in debug mode, i open the debug view, and remove some breakpoints (such as some remaining on NullPointersExceptions, and Sockets)

tip

Try removing all the breakpoints (even if breakpoints are disabled the problem still occurs, yes even if both disabled entirely and piecewise).

tip

There is a known issue between TestNG 6.4 and IDEA, the next EAP will fix this but in the meantime, use the previous version.

tip

Client closed the websocket connection (safe to ignore)

tip

*not english*


poroszdporoszd
tip

Nginx does not handle websocket requests. Configure nginx proxy for websockets.

tip

Set larger socket timeout (or 0 to set no timeout).

tip

Upgrade your nanohttpd

tip

It takes too long time for the JVM to find enough entropy for secure connection. Use this jvm option: '-Djava.security.egd=file:/dev/./urandom'.

tip

Upgrade yokozuna

tip

Here is a animation for the life cycle. http://tcp.cs.st-andrews.ac.uk/index.shtml?page=connection_lifecycle

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

  • I've tried this with the latest version of Jenkins (1.428 and my previously installed version (1.423 which both behave the same way. When I attempt to copy artifacts from another jenkins project/build on HP, I get some strange behaviour. The build is kicked off and the svn stage progresses correctly. It then gets to the copy artifacts stage and waits. After a longish pause, I get an error in the output window, after which the slave becomes unavailable. Although the process is still running the slave is now unavailable. Once this happens I have to kill the process and restart the slave. Stack trace as follows: ERROR: Failed to copy artifacts from R5_HPIA31_Commit with filter: viscob/product/\*.tar, viscob/product/\*.pax, viscob/product/setup* 16:13:36 java.net.SocketException: Software caused connection abort: socket write error 16:13:36 at java.net.SocketOutputStream.socketWrite0(Native Method) 16:13:36 at java.net.SocketOutputStream.socketWrite(Unknown Source) 16:13:36 at java.net.SocketOutputStream.write(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeFatalException(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeObject(Unknown Source) 16:13:36 at hudson.remoting.Channel.send(Channel.java:491) 16:13:36 at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123) 16:13:36 at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) 16:13:36 at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at java.util.zip.DeflaterOutputStream.deflate(Unknown Source) 16:13:36 at java.util.zip.DeflaterOutputStream.write(Unknown Source) 16:13:36 at java.util.zip.GZIPOutputStream.write(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) 16:13:36 at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351) 16:13:36 at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356) 16:13:36 at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137) 16:13:36 at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149) 16:13:36 at hudson.util.io.TarArchiver.close(TarArchiver.java:119) 16:13:36 at hudson.FilePath.writeToTar(FilePath.java:1634) 16:13:36 at hudson.FilePath.copyRecursiveTo(FilePath.java:1559) 16:13:36 at hudson.FilePath.copyRecursiveTo(FilePath.java:1488) 16:13:36 at hudson.plugins.copyartifact.FilePathCopyMethod.copyAll(FilePathCopyMethod.java:51) 16:13:36 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:226) 16:13:36 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:200) 16:13:36 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 16:13:36 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) 16:13:36 at hudson.model.Build$RunnerImpl.build(Build.java:178) 16:13:36 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 16:13:36 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) 16:13:36 at hudson.model.Run.run(Run.java:1376) 16:13:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 16:13:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 16:13:36 at hudson.model.Executor.run(Executor.java:230) 16:13:36 Build step 'Copy artifacts from another project' marked build as failure 16:13:36 FATAL: Software caused connection abort: socket write error 16:13:36 java.net.SocketException: Software caused connection abort: socket write error 16:13:36 at java.net.SocketOutputStream.socketWrite0(Native Method) 16:13:36 at java.net.SocketOutputStream.socketWrite(Unknown Source) 16:13:36 at java.net.SocketOutputStream.write(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeFatalException(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeObject(Unknown Source) 16:13:36 at hudson.remoting.Channel.send(Channel.java:491) 16:13:36 at hudson.remoting.Request.call(Request.java:110) 16:13:36 at hudson.remoting.Channel.call(Channel.java:668) 16:13:36 at hudson.Launcher$RemoteLauncher.kill(Launcher.java:812) 16:13:36 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:471) 16:13:36 at hudson.model.Run.run(Run.java:1376) 16:13:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 16:13:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 16:13:36 at hudson.model.Executor.run(Executor.java:230)
    via by nyoung02,
  • I've tried this with the latest version of Jenkins (1.428 and my previously installed version (1.423 which both behave the same way. When I attempt to copy artifacts from another jenkins project/build on HP, I get some strange behaviour. The build is kicked off and the svn stage progresses correctly. It then gets to the copy artifacts stage and waits. After a longish pause, I get an error in the output window, after which the slave becomes unavailable. Although the process is still running the slave is now unavailable. Once this happens I have to kill the process and restart the slave. Stack trace as follows: ERROR: Failed to copy artifacts from R5_HPIA31_Commit with filter: viscob/product/\*.tar, viscob/product/\*.pax, viscob/product/setup* 16:13:36 java.net.SocketException: Software caused connection abort: socket write error 16:13:36 at java.net.SocketOutputStream.socketWrite0(Native Method) 16:13:36 at java.net.SocketOutputStream.socketWrite(Unknown Source) 16:13:36 at java.net.SocketOutputStream.write(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeFatalException(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeObject(Unknown Source) 16:13:36 at hudson.remoting.Channel.send(Channel.java:491) 16:13:36 at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123) 16:13:36 at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) 16:13:36 at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at java.util.zip.DeflaterOutputStream.deflate(Unknown Source) 16:13:36 at java.util.zip.DeflaterOutputStream.write(Unknown Source) 16:13:36 at java.util.zip.GZIPOutputStream.write(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) 16:13:36 at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351) 16:13:36 at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356) 16:13:36 at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137) 16:13:36 at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149) 16:13:36 at hudson.util.io.TarArchiver.close(TarArchiver.java:119) 16:13:36 at hudson.FilePath.writeToTar(FilePath.java:1634) 16:13:36 at hudson.FilePath.copyRecursiveTo(FilePath.java:1559) 16:13:36 at hudson.FilePath.copyRecursiveTo(FilePath.java:1488) 16:13:36 at hudson.plugins.copyartifact.FilePathCopyMethod.copyAll(FilePathCopyMethod.java:51) 16:13:36 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:226) 16:13:36 at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:200) 16:13:36 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) 16:13:36 at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) 16:13:36 at hudson.model.Build$RunnerImpl.build(Build.java:178) 16:13:36 at hudson.model.Build$RunnerImpl.doRun(Build.java:139) 16:13:36 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) 16:13:36 at hudson.model.Run.run(Run.java:1376) 16:13:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 16:13:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 16:13:36 at hudson.model.Executor.run(Executor.java:230) 16:13:36 Build step 'Copy artifacts from another project' marked build as failure 16:13:36 FATAL: Software caused connection abort: socket write error 16:13:36 java.net.SocketException: Software caused connection abort: socket write error 16:13:36 at java.net.SocketOutputStream.socketWrite0(Native Method) 16:13:36 at java.net.SocketOutputStream.socketWrite(Unknown Source) 16:13:36 at java.net.SocketOutputStream.write(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.flushBuffer(Unknown Source) 16:13:36 at java.io.BufferedOutputStream.write(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) 16:13:36 at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeFatalException(Unknown Source) 16:13:36 at java.io.ObjectOutputStream.writeObject(Unknown Source) 16:13:36 at hudson.remoting.Channel.send(Channel.java:491) 16:13:36 at hudson.remoting.Request.call(Request.java:110) 16:13:36 at hudson.remoting.Channel.call(Channel.java:668) 16:13:36 at hudson.Launcher$RemoteLauncher.kill(Launcher.java:812) 16:13:36 at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:471) 16:13:36 at hudson.model.Run.run(Run.java:1376) 16:13:36 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 16:13:36 at hudson.model.ResourceController.execute(ResourceController.java:88) 16:13:36 at hudson.model.Executor.run(Executor.java:230)
    via by nyoung02,
  • Handling java.net.SocketException
    via Stack Overflow by user760220
    ,
  • TestNG : java.net.socketException
    via Stack Overflow by Yashavanta SB
    ,
  • Java VoiceXML Interpreter / Mailing Lists
    via by Unknown author,
    • java.net.SocketException: Software caused connection abort: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(Unknown Source) at java.net.SocketOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source) at java.io.ObjectOutputStream$BlockDataOutputStream.writeByte(Unknown Source) at java.io.ObjectOutputStream.writeFatalException(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at hudson.remoting.Channel.send(Channel.java:491) at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123) at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at java.util.zip.DeflaterOutputStream.deflate(Unknown Source) at java.util.zip.DeflaterOutputStream.write(Unknown Source) at java.util.zip.GZIPOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.write(Unknown Source) at org.apache.tools.tar.TarBuffer.writeBlock(TarBuffer.java:410) at org.apache.tools.tar.TarBuffer.writeRecord(TarBuffer.java:351) at hudson.org.apache.tools.tar.TarOutputStream.writeEOFRecord(TarOutputStream.java:356) at hudson.org.apache.tools.tar.TarOutputStream.finish(TarOutputStream.java:137) at hudson.org.apache.tools.tar.TarOutputStream.close(TarOutputStream.java:149) at hudson.util.io.TarArchiver.close(TarArchiver.java:119) at hudson.FilePath.writeToTar(FilePath.java:1634) at hudson.FilePath.copyRecursiveTo(FilePath.java:1559) at hudson.FilePath.copyRecursiveTo(FilePath.java:1488) at hudson.plugins.copyartifact.FilePathCopyMethod.copyAll(FilePathCopyMethod.java:51) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:226) at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:200) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:682) at hudson.model.Build$RunnerImpl.build(Build.java:178) at hudson.model.Build$RunnerImpl.doRun(Build.java:139) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:448) at hudson.model.Run.run(Run.java:1376) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    208 more bugmates