java.net.SocketException: Unexpected end of file from server

Jenkins JIRA | Tal Auslander | 9 months ago
  1. 0

    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}

    Jenkins JIRA | 9 months ago | Tal Auslander
    java.net.SocketException: Unexpected end of file from server
  2. 0

    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}

    Jenkins JIRA | 9 months ago | Tal Auslander
    java.net.SocketException: Unexpected end of file from server
  3. 0

    Headless slave can't connect to Jenkins over HTTPS

    Google Groups | 5 years ago | Arve Knudsen
    java.net.SocketException: Unexpected end of file from server
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sonar-Runer with multiple-modules throws HttpRequestException error

    Stack Overflow | 10 months ago | S. Moreno
    org.sonar.runner.kevinsawicki.HttpRequest$HttpRequestException: java.net.SocketException: Unexpected end of file from server
  6. 0

    How to fix "Connection reset" error during sonar-runner execution?

    Stack Overflow | 8 months ago | Hua gt
    org.sonar.runner.kevinsawicki.HttpRequest$HttpRequestException: java.net.SocketException: Connection reset

    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

      Unexpected end of file from server

      at sun.net.www.http.HttpClient.parseHTTPHeader()
    2. Java RT
      HttpURLConnection.getHeaderField
      1. sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
      2. sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
      3. sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
      4. sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
      5. sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      6. sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
      6 frames
    3. Hudson :: Remoting Layer
      Engine.run
      1. hudson.remoting.Engine.run(Engine.java:205)
      1 frame