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

NullPointerException for HTTPS swarm client connection

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • swarm-plugin
    • None
    • swarm-plugin 3.4
      java 1.8.0_111

    Description

      When running swarm-client version 3.4 and trying to connect to a Jenkins master using HTTPS the client will crash with NullPointerException if not using either of options -disableSslVerification or -sslFingerprints

       

      > java -jar swarm-client-3.4.jar
      Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client main
      INFO: Client.main invoked with: []
      Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run
      INFO: Discovering Jenkins master
      Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run
      INFO: No Jenkins master supplied on command line, performing auto-discovery
      Apr 19, 2017 10:48:35 AM hudson.plugins.swarm.Client run

      INFO: Attempting to connect to https://URL 7a...6b with ID 7d...ca
      Exception in thread "main" java.lang.NullPointerException
      {{ at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:333)}}
      at hudson.plugins.swarm.SwarmClient.createSwarmSlave(SwarmClient.java:398)
      {{ at hudson.plugins.swarm.Client.run(Client.java:134)}}
      {{ at hudson.plugins.swarm.Client.main(Client.java:87)}}

      Attachments

        Issue Links

          Activity

            jlehtnie Jukka Lehtniemi created issue -
            jlehtnie Jukka Lehtniemi made changes -
            Field Original Value New Value
            Summary NullPointerException for HTTPS client connection NullPointerException for HTTPS swarm client connection
            jlehtnie Jukka Lehtniemi made changes -
            Description When running swarm-client version 3.4 and trying to connect to a Jenkins master using HTTPS the client will crash with NullPointerException if not using either of options *-disableSslVerification* or *-sslFingerprints*

             

            {{INFO: Attempting to connect to https://URL 7a...6b with ID 7d...ca}}
            {{Exception in thread "main" java.lang.NullPointerException}}
            {{ at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:333)}}
            {{ at hudson.plugins.swarm.SwarmClient.createSwarmSlave(SwarmClient.java:398)}}
            {{ at hudson.plugins.swarm.Client.run(Client.java:134)}}
            {{ at hudson.plugins.swarm.Client.main(Client.java:87)}}
            When running swarm-client version 3.4 and trying to connect to a Jenkins master using HTTPS the client will crash with NullPointerException if not using either of options *-disableSslVerification* or *-sslFingerprints*

             

            {{> java -jar swarm-client-3.4.jar}}
            {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client main}}
            {{INFO: Client.main invoked with: []}}
            {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run}}
            {{INFO: Discovering Jenkins master}}
            {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run}}
            {{INFO: No Jenkins master supplied on command line, performing auto-discovery}}
            {{Apr 19, 2017 10:48:35 AM hudson.plugins.swarm.Client run}}

            {{INFO: Attempting to connect to [https://URL|https://url/] 7a...6b with ID 7d...ca}}
             {{Exception in thread "main" java.lang.NullPointerException}}
             \{\{ at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:333)}}
             \{\{ at hudson.plugins.swarm.SwarmClient.createSwarmSlave(SwarmClient.java:398)}}
             \{\{ at hudson.plugins.swarm.Client.run(Client.java:134)}}
             \{\{ at hudson.plugins.swarm.Client.main(Client.java:87)}}
            jlehtnie Jukka Lehtniemi made changes -
            Description When running swarm-client version 3.4 and trying to connect to a Jenkins master using HTTPS the client will crash with NullPointerException if not using either of options *-disableSslVerification* or *-sslFingerprints*

             

            {{> java -jar swarm-client-3.4.jar}}
            {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client main}}
            {{INFO: Client.main invoked with: []}}
            {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run}}
            {{INFO: Discovering Jenkins master}}
            {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run}}
            {{INFO: No Jenkins master supplied on command line, performing auto-discovery}}
            {{Apr 19, 2017 10:48:35 AM hudson.plugins.swarm.Client run}}

            {{INFO: Attempting to connect to [https://URL|https://url/] 7a...6b with ID 7d...ca}}
             {{Exception in thread "main" java.lang.NullPointerException}}
             \{\{ at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:333)}}
             \{\{ at hudson.plugins.swarm.SwarmClient.createSwarmSlave(SwarmClient.java:398)}}
             \{\{ at hudson.plugins.swarm.Client.run(Client.java:134)}}
             \{\{ at hudson.plugins.swarm.Client.main(Client.java:87)}}
            When running swarm-client version 3.4 and trying to connect to a Jenkins master using HTTPS the client will crash with NullPointerException if not using either of options *-disableSslVerification* or *-sslFingerprints*

             

            {{> java -jar swarm-client-3.4.jar}}
             {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client main}}
             {{INFO: Client.main invoked with: []}}
             {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run}}
             {{INFO: Discovering Jenkins master}}
             {{Apr 19, 2017 10:48:29 AM hudson.plugins.swarm.Client run}}
             {{INFO: No Jenkins master supplied on command line, performing auto-discovery}}
             {{Apr 19, 2017 10:48:35 AM hudson.plugins.swarm.Client run}}

            {{INFO: Attempting to connect to [https://URL|https://url/] 7a...6b with ID 7d...ca}}
            {{Exception in thread "main" java.lang.NullPointerException}}
            {{ at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:333)}}
            {{at hudson.plugins.swarm.SwarmClient.createSwarmSlave(SwarmClient.java:398)}}
            {{ at hudson.plugins.swarm.Client.run(Client.java:134)}}
            {{ at hudson.plugins.swarm.Client.main(Client.java:87)}}
            winotu Chris Z made changes -
            Link This issue duplicates JENKINS-44210 [ JENKINS-44210 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee Kohsuke Kawaguchi [ kohsuke ]
            oleg_nenashev Oleg Nenashev made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            winotu Chris Z made changes -
            Assignee Chris Z [ winotu ]
            winotu Chris Z made changes -
            Status In Review [ 10005 ] In Progress [ 3 ]
            winotu Chris Z made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            mindrunner Lukas Elsner made changes -
            Link This issue is duplicated by JENKINS-47407 [ JENKINS-47407 ]
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]

            People

              winotu Chris Z
              jlehtnie Jukka Lehtniemi
              Votes:
              6 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: