Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39232

unable to start slave after installing version 2.27 on master + new 3.0 slave.jar on slave

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core, remoting
    • None

      Hi,

      I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

      I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: CPRAN03 is not a JNLP agent" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

      C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
      r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
      cret "secretkey"
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
      INFO: Setting up slave: CPRAN03
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
      INFO: Jenkins agent is running in headless mode.
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Locating server among http://cpjen01:8090/
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Agent discovery successful
      Agent address: cpjen01
      Agent port: 49274
      Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Handshaking
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP4-connect
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

      Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
      lterLayer onRecv
      INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
      ed by remote: CPRAN03 is not a JNLP agent
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP4-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: CPRAN03 is not a JNLP agent
      at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
      3)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
      N03 is not a JNLP agent
      at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
      AbortCause(ConnectionHeadersFilterLayer.java:377)
      at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
      ecvClosed(ConnectionHeadersFilterLayer.java:432)
      at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
      olStack.java:832)
      at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
      java:287)
      at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
      d(SSLEngineFilterLayer.java:172)
      at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
      olStack.java:832)
      at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
      r.java:154)
      at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
      etworkLayer.java:48)
      at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
      tworkLayer.java:247)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)
      Suppressed: java.nio.channels.ClosedChannelException
      ... 7 more

      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Server reports protocol JNLP4-plaintext not supported, skipping
      Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP3-connect
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP3-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: JNLP3-connect: Master rejected connection:
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
      3-connect: Master rejected connection:
      at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
      Protocol3Handler.java:239)
      at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
      Protocol3Handler.java:123)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:162)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:158)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)

      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP2-connect
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP2-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: Server didn't accept the handshake:
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
      er didn't accept the handshake:
      at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
      Protocol2Handler.java:134)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:162)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:158)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)

      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Connecting to cpjen01:49274
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Trying protocol: JNLP-connect
      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
      INFO: Protocol JNLP-connect encountered an unexpected exception
      java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
      nnectionRefusalException: Server didn't accept the handshake:
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at hudson.remoting.Engine.innerRun(Engine.java:415)
      at hudson.remoting.Engine.run(Engine.java:280)
      Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
      er didn't accept the handshake:
      at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
      Protocol1Handler.java:121)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:162)
      at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
      JnlpProtocolHandler.java:158)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1$1.run(Engine.java:94)
      at java.lang.Thread.run(Unknown Source)

      Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
      SEVERE: The server rejected the connection: None of the protocols were accepted
      java.lang.Exception: The server rejected the connection: None of the protocols w
      ere accepted
      at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
      at hudson.remoting.Engine.innerRun(Engine.java:440)
      at hudson.remoting.Engine.run(Engine.java:280)

      Also, when I try to run the slave-agent.jnlp (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error as shown on attached image:

        1. screenshot-2.png
          screenshot-2.png
          41 kB
        2. screenshot-1.png
          screenshot-1.png
          16 kB
        3. SlaveConfiguration.png
          SlaveConfiguration.png
          30 kB
        4. Jenkins2.27_SystemLog.txt
          8 kB
        5. jnlp_slave.png
          jnlp_slave.png
          35 kB

          [JENKINS-39232] unable to start slave after installing version 2.27 on master + new 3.0 slave.jar on slave

          Pavel Kudrys created issue -
          Pavel Kudrys made changes -
          Description Original: Hi,

          I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

          I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

          {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
          r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
          cret "secretkey"
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
          INFO: Setting up slave: CPRAN03
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
          INFO: Jenkins agent is running in headless mode.
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Locating server among [http://cpjen01:8090/]
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Agent discovery successful
            Agent address: cpjen01
            Agent port: 49274
            Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Handshaking
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP4-connect
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

          Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
          lterLayer onRecv
          INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
          ed by remote: CPRAN03 is not a JNLP agent
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP4-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: CPRAN03 is not a JNLP agent
                  at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
          3)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
          N03 is not a JNLP agent
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
          AbortCause(ConnectionHeadersFilterLayer.java:377)
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
          ecvClosed(ConnectionHeadersFilterLayer.java:432)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
          java:287)
                  at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
          d(SSLEngineFilterLayer.java:172)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
          r.java:154)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
          etworkLayer.java:48)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
          tworkLayer.java:247)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)
                  Suppressed: java.nio.channels.ClosedChannelException
                          ... 7 more

          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Server reports protocol JNLP4-plaintext not supported, skipping
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP3-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP3-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: JNLP3-connect: Master rejected connection:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
          3-connect: Master rejected connection:
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:239)
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:123)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP2-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP2-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
          Protocol2Handler.java:134)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
          Protocol1Handler.java:121)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
          SEVERE: The server rejected the connection: None of the protocols were accepted
          java.lang.Exception: The server rejected the connection: None of the protocols w
          ere accepted
                  at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                  at hudson.remoting.Engine.innerRun(Engine.java:440)
                  at hudson.remoting.Engine.run(Engine.java:280)
          {quote}
          New: Hi,

          I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

          I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

          {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
          r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
          cret "secretkey"
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
          INFO: Setting up slave: CPRAN03
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
          INFO: Jenkins agent is running in headless mode.
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Locating server among [http://cpjen01:8090/]
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Agent discovery successful
            Agent address: cpjen01
            Agent port: 49274
            Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Handshaking
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP4-connect
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

          Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
          lterLayer onRecv
          INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
          ed by remote: CPRAN03 is not a JNLP agent
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP4-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: CPRAN03 is not a JNLP agent
                  at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
          3)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
          N03 is not a JNLP agent
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
          AbortCause(ConnectionHeadersFilterLayer.java:377)
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
          ecvClosed(ConnectionHeadersFilterLayer.java:432)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
          java:287)
                  at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
          d(SSLEngineFilterLayer.java:172)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
          r.java:154)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
          etworkLayer.java:48)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
          tworkLayer.java:247)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)
                  Suppressed: java.nio.channels.ClosedChannelException
                          ... 7 more

          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Server reports protocol JNLP4-plaintext not supported, skipping
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP3-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP3-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: JNLP3-connect: Master rejected connection:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
          3-connect: Master rejected connection:
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:239)
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:123)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP2-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP2-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
          Protocol2Handler.java:134)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
          Protocol1Handler.java:121)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
          SEVERE: The server rejected the connection: None of the protocols were accepted
          java.lang.Exception: The server rejected the connection: None of the protocols w
          ere accepted
                  at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                  at hudson.remoting.Engine.innerRun(Engine.java:440)
                  at hudson.remoting.Engine.run(Engine.java:280)
          {quote}

          Also, when I try to run slave-agent on given slave machine (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error
          Pavel Kudrys made changes -
          Attachment New: jnlp_slave.png [ 34490 ]
          Pavel Kudrys made changes -
          Description Original: Hi,

          I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

          I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

          {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
          r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
          cret "secretkey"
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
          INFO: Setting up slave: CPRAN03
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
          INFO: Jenkins agent is running in headless mode.
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Locating server among [http://cpjen01:8090/]
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Agent discovery successful
            Agent address: cpjen01
            Agent port: 49274
            Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Handshaking
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP4-connect
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

          Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
          lterLayer onRecv
          INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
          ed by remote: CPRAN03 is not a JNLP agent
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP4-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: CPRAN03 is not a JNLP agent
                  at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
          3)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
          N03 is not a JNLP agent
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
          AbortCause(ConnectionHeadersFilterLayer.java:377)
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
          ecvClosed(ConnectionHeadersFilterLayer.java:432)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
          java:287)
                  at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
          d(SSLEngineFilterLayer.java:172)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
          r.java:154)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
          etworkLayer.java:48)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
          tworkLayer.java:247)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)
                  Suppressed: java.nio.channels.ClosedChannelException
                          ... 7 more

          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Server reports protocol JNLP4-plaintext not supported, skipping
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP3-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP3-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: JNLP3-connect: Master rejected connection:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
          3-connect: Master rejected connection:
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:239)
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:123)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP2-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP2-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
          Protocol2Handler.java:134)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
          Protocol1Handler.java:121)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
          SEVERE: The server rejected the connection: None of the protocols were accepted
          java.lang.Exception: The server rejected the connection: None of the protocols w
          ere accepted
                  at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                  at hudson.remoting.Engine.innerRun(Engine.java:440)
                  at hudson.remoting.Engine.run(Engine.java:280)
          {quote}

          Also, when I try to run slave-agent on given slave machine (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error
          New: Hi,

          I'm unable to start/connect slave machine, using JNLP, after installing version 2.27 on master + new 3.0 slave.jar on slave computer. Installed Java 1.8.111.

          I've enabled Java Web Start agent 3 and 4 in Configure Global Security, but to no avail. All I'm getting is an error "Local headers refused by remote: *CPRAN03 is not a JNLP agent*" followed by number of exceptions and even version 3 and 2 of JNLP agent fails to start. Is there something else I need to configure in latest Jenkins 2.27?

          {quote}C:\Jenkins>call "C:\Program Files (x86)\Java\jre1.8.0_111\bin\java.exe" -Xrs -ja
          r "slave.jar" -jnlpUrl http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp -se
          cret "secretkey"
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main createEngine
          INFO: Setting up slave: CPRAN03
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener <init>
          INFO: Jenkins agent is running in headless mode.
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Locating server among [http://cpjen01:8090/]
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Agent discovery successful
            Agent address: cpjen01
            Agent port: 49274
            Identity: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Handshaking
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP4-connect
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Remote identity confirmed: ab:f2:5f:d6:32:a6:42:71:fc:d8:9f:9a:05:0c:77:d0

          Oct 25, 2016 7:58:00 AM org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFi
          lterLayer onRecv
          INFO: [JNLP4-connect connection to cpjen01/10.8.32.77:49274] Local headers refus
          ed by remote: CPRAN03 is not a JNLP agent
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP4-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: CPRAN03 is not a JNLP agent
                  at org.jenkinsci.remoting.util.SettableFuture.get(SettableFuture.java:22
          3)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: CPRA
          N03 is not a JNLP agent
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.new
          AbortCause(ConnectionHeadersFilterLayer.java:377)
                  at org.jenkinsci.remoting.protocol.impl.ConnectionHeadersFilterLayer.onR
          ecvClosed(ConnectionHeadersFilterLayer.java:432)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.FilterLayer.onRecvClosed(FilterLayer.
          java:287)
                  at org.jenkinsci.remoting.protocol.impl.SSLEngineFilterLayer.onRecvClose
          d(SSLEngineFilterLayer.java:172)
                  at org.jenkinsci.remoting.protocol.ProtocolStack$Ptr.onRecvClosed(Protoc
          olStack.java:832)
                  at org.jenkinsci.remoting.protocol.NetworkLayer.onRecvClosed(NetworkLaye
          r.java:154)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer.access$1500(BION
          etworkLayer.java:48)
                  at org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader.run(BIONe
          tworkLayer.java:247)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)
                  Suppressed: java.nio.channels.ClosedChannelException
                          ... 7 more

          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Server reports protocol JNLP4-plaintext not supported, skipping
          Oct 25, 2016 7:58:00 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP3-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP3-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: JNLP3-connect: Master rejected connection:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: JNLP
          3-connect: Master rejected connection:
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:239)
                  at org.jenkinsci.remoting.engine.JnlpProtocol3Handler.sendHandshake(Jnlp
          Protocol3Handler.java:123)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP2-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP2-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol2Handler.sendHandshake(Jnlp
          Protocol2Handler.java:134)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Connecting to cpjen01:49274
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Trying protocol: JNLP-connect
          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener status
          INFO: Protocol JNLP-connect encountered an unexpected exception
          java.util.concurrent.ExecutionException: org.jenkinsci.remoting.protocol.impl.Co
          nnectionRefusalException: Server didn't accept the handshake:
                  at java.util.concurrent.FutureTask.report(Unknown Source)
                  at java.util.concurrent.FutureTask.get(Unknown Source)
                  at hudson.remoting.Engine.innerRun(Engine.java:415)
                  at hudson.remoting.Engine.run(Engine.java:280)
          Caused by: org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException: Serv
          er didn't accept the handshake:
                  at org.jenkinsci.remoting.engine.JnlpProtocol1Handler.sendHandshake(Jnlp
          Protocol1Handler.java:121)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:162)
                  at org.jenkinsci.remoting.engine.LegacyJnlpProtocolHandler$2.call(Legacy
          JnlpProtocolHandler.java:158)
                  at java.util.concurrent.FutureTask.run(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at hudson.remoting.Engine$1$1.run(Engine.java:94)
                  at java.lang.Thread.run(Unknown Source)

          Oct 25, 2016 7:58:01 AM hudson.remoting.jnlp.Main$CuiListener error
          SEVERE: The server rejected the connection: None of the protocols were accepted
          java.lang.Exception: The server rejected the connection: None of the protocols w
          ere accepted
                  at hudson.remoting.Engine.onConnectionRejected(Engine.java:476)
                  at hudson.remoting.Engine.innerRun(Engine.java:440)
                  at hudson.remoting.Engine.run(Engine.java:280)
          {quote}

          Also, when I try to run the slave-agent.jnlp (via http://cpjen01:8090/computer/CPRAN03/slave-agent.jnlp) it fails with error as shown on attached image:
           !jnlp_slave.png|thumbnail!

          Oleg Nenashev added a comment -

          Please provide Jenkins system log for the timestamp of the issue +/- 5 minutes

          Oleg Nenashev added a comment - Please provide Jenkins system log for the timestamp of the issue +/- 5 minutes
          Oleg Nenashev made changes -
          Component/s Original: slave-setup-plugin [ 15929 ]

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - CC stephenconnolly
          Oleg Nenashev made changes -
          Assignee Original: Giuseppe Landolfi [ peppe ]

          Oleg Nenashev added a comment -

          Failing code is here: https://github.com/jenkinsci/jenkins/blob/71cbe0cc7c601c04509faa618b23194335288fee/core/src/main/java/jenkins/slaves/DefaultJnlpSlaveReceiver.java#L50-L53
          From what I see the code does not process ComputerLauncherFilter or DelegatingComputerLauncher correctly, and it causes failures of plugins like Slave Setup Plugin (https://github.com/jenkinsci/slave-setup-plugin/blob/ba1a93e0d1a4a150c1cd1cda87a29930a2d60773/src/main/java/org/jenkinsci/plugins/slave_setup/SetupSlaveLauncher.java#L23)

          odklizec, could you please provide configuration of you slave/agent? Just to confirm the theory

          Oleg Nenashev added a comment - Failing code is here: https://github.com/jenkinsci/jenkins/blob/71cbe0cc7c601c04509faa618b23194335288fee/core/src/main/java/jenkins/slaves/DefaultJnlpSlaveReceiver.java#L50-L53 From what I see the code does not process ComputerLauncherFilter or DelegatingComputerLauncher correctly, and it causes failures of plugins like Slave Setup Plugin ( https://github.com/jenkinsci/slave-setup-plugin/blob/ba1a93e0d1a4a150c1cd1cda87a29930a2d60773/src/main/java/org/jenkinsci/plugins/slave_setup/SetupSlaveLauncher.java#L23 ) odklizec , could you please provide configuration of you slave/agent? Just to confirm the theory
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]

            oleg_nenashev Oleg Nenashev
            odklizec Pavel Kudrys
            Votes:
            11 Vote for this issue
            Watchers:
            24 Start watching this issue

              Created:
              Updated:
              Resolved: