java.net.SocketException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Hi, I configured my Jenkins to listen on HTTPS rather than on HTTP and now I can't seem to get my Windows slaves to connect to it: Jenkins: 1.653 on Ubuntu 14.04 64-bit OpenJDK 1.7.0_79 installed via apt-get Slave: on Windows 7 64-bit Oracle JRE1.7.0_80 {code} > java -jar slave.jar -jnlpUrl https://JENKINS/computer/SLAVE/slave-agent.jnlp -secret SECRET -noCertificateCheck Skipping HTTPS certificate checks altogether. Note that this is not secure at all. Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: SLAVE Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://JENKINS/, https://JENKINS/] Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main$CuiListener error SEVERE: Unexpected end of file from server java.net.SocketException: Unexpected end of file from server at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at hudson.remoting.Engine.run(Engine.java:206) Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at hudson.remoting.Engine.run(Engine.java:205) {code}
    via by Tal Auslander,
  • Hi, I configured my Jenkins to listen on HTTPS rather than on HTTP and now I can't seem to get my Windows slaves to connect to it: Jenkins: 1.653 on Ubuntu 14.04 64-bit OpenJDK 1.7.0_79 installed via apt-get Slave: on Windows 7 64-bit Oracle JRE1.7.0_80 {code} > java -jar slave.jar -jnlpUrl https://JENKINS/computer/SLAVE/slave-agent.jnlp -secret SECRET -noCertificateCheck Skipping HTTPS certificate checks altogether. Note that this is not secure at all. Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main createEngine INFO: Setting up slave: SLAVE Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main$CuiListener <init> INFO: Jenkins agent is running in headless mode. Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main$CuiListener status INFO: Locating server among [http://JENKINS/, https://JENKINS/] Mar 14, 2016 9:01:55 AM hudson.remoting.jnlp.Main$CuiListener error SEVERE: Unexpected end of file from server java.net.SocketException: Unexpected end of file from server at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at hudson.remoting.Engine.run(Engine.java:206) Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at hudson.remoting.Engine.run(Engine.java:205) {code}
    via by Tal Auslander,
  • JMeter with SSH SOCKs proxy
    via by ramzi108,
  • Error
    via GitHub by Mo121Montazeri
    ,
    • java.net.SocketException: Unexpected end of file from server at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at hudson.remoting.Engine.run(Engine.java:206) Caused by: java.net.SocketException: Unexpected end of file from server at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) at hudson.remoting.Engine.run(Engine.java:205)

    Users with the same issue

    Casper
    4 times, last one,
    Unknown visitor1 times, last one,
    treefolk
    6 times, last one,
    musketyr
    48 times, last one,
    Unknown visitor1 times, last one,
    26 more bugmates