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

NPE on Bouncy castle when the PEM cannot be read

    XMLWordPrintable

Details

    Description

      NPE on Bouncy castle when the PEM cannot be read
      BC-plugin 2.16.0

      SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@2f47a11d failed
      java.lang.NullPointerException
      at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:197)
      at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:133)
      at hudson.plugins.ec2.EC2PrivateKey.getFingerprint(EC2PrivateKey.java:65)
      at hudson.plugins.ec2.EC2PrivateKey.find(EC2PrivateKey.java:96)
      at hudson.plugins.ec2.SlaveTemplate.getKeyPair(SlaveTemplate.java:863)
      at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:450)
      at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377)
      at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:530)
      at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:547)
      at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701)
      at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307)
      at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60)
      at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:796)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      

      Options

      Attachments

        Issue Links

          Activity

            alobato Alvaro Lobato created issue -
            alobato Alvaro Lobato made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            alobato Alvaro Lobato made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 16 (Web Link)" [ 15436 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-35337 [ JENKINS-35337 ]
            cleclerc Cyrille Le Clerc made changes -
            Link This issue relates to JENKINS-41824 [ JENKINS-41824 ]
            cleclerc Cyrille Le Clerc made changes -
            Description NPE on Bouncy castle when the PEM cannot be read
            BC-plugin 2.16.0
            SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@2f47a11d failed
            java.lang.NullPointerException
            at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:197)
            at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:133)
            at hudson.plugins.ec2.EC2PrivateKey.getFingerprint(EC2PrivateKey.java:65)
            at hudson.plugins.ec2.EC2PrivateKey.find(EC2PrivateKey.java:96)
            at hudson.plugins.ec2.SlaveTemplate.getKeyPair(SlaveTemplate.java:863)
            at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:450)
            at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377)
            at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:530)
            at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:547)
            at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701)
            at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307)
            at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60)
            at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:796)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
            Options
            NPE on Bouncy castle when the PEM cannot be read
            BC-plugin 2.16.0

            {noformat}
            SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@2f47a11d failed
            java.lang.NullPointerException
            at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:197)
            at jenkins.bouncycastle.api.PEMEncodable.decode(PEMEncodable.java:133)
            at hudson.plugins.ec2.EC2PrivateKey.getFingerprint(EC2PrivateKey.java:65)
            at hudson.plugins.ec2.EC2PrivateKey.find(EC2PrivateKey.java:96)
            at hudson.plugins.ec2.SlaveTemplate.getKeyPair(SlaveTemplate.java:863)
            at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:450)
            at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377)
            at hudson.plugins.ec2.EC2Cloud.getNewOrExistingAvailableSlave(EC2Cloud.java:530)
            at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:547)
            at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:701)
            at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:307)
            at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:60)
            at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:796)
            at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
            at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
            at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            at java.lang.Thread.run(Thread.java:745)
            {noformat}

            Options
            alobato Alvaro Lobato made changes -
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Resolved [ 5 ]
            alobato Alvaro Lobato made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              alobato Alvaro Lobato
              alobato Alvaro Lobato
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: