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

            People

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

              Dates

                Created:
                Updated:
                Resolved: