java.lang.NullPointerException

Google Groups | clec...@cloudbees.com (JIRA) | 3 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [JIRA] (JENKINS-38556) Jenkins spawns infinite windows spot instances on aws.

    Google Groups | 7 months ago | ty...@monkeypox.org (JIRA)
    java.lang.NoSuchMethodError: com.amazonaws.services.ec2.AmazonEC2.createTags(Lcom/amazonaws/services/ec2/model/CreateTagsRequest;)V<br>
  2. 0

    I am attempting to to launch on demand instances into an existing VPC. If I set the security group to either the sg ID or the sg name, I get the below error in the logs. I tried created a new log recorder for all the classes under hudson.plugins.ec2.* but have not been able to find any more detailed debugging information. {code:java} Apr 15, 2016 3:43:30 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Launching ami-3331f958 for template centos 7 Apr 15, 2016 3:43:30 PM WARNING hudson.plugins.ec2.EC2Cloud provision Exception during provisioning com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context at hudson.plugins.ec2.SlaveTemplate.getEc2SecurityGroups(SlaveTemplate.java:916) at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:476) at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377) at hudson.plugins.ec2.EC2Cloud.provisionSlaveIfPossible(EC2Cloud.java:406) at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:422) at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:700) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:305) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:58) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:797) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    Jenkins JIRA | 1 year ago | Joshua Hoblitt
    com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    I am attempting to to launch on demand instances into an existing VPC. If I set the security group to either the sg ID or the sg name, I get the below error in the logs. I tried created a new log recorder for all the classes under hudson.plugins.ec2.* but have not been able to find any more detailed debugging information. {code:java} Apr 15, 2016 3:43:30 PM INFO hudson.plugins.ec2.SlaveTemplate logProvisionInfo Launching ami-3331f958 for template centos 7 Apr 15, 2016 3:43:30 PM WARNING hudson.plugins.ec2.EC2Cloud provision Exception during provisioning com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context at hudson.plugins.ec2.SlaveTemplate.getEc2SecurityGroups(SlaveTemplate.java:916) at hudson.plugins.ec2.SlaveTemplate.provisionOndemand(SlaveTemplate.java:476) at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:377) at hudson.plugins.ec2.EC2Cloud.provisionSlaveIfPossible(EC2Cloud.java:406) at hudson.plugins.ec2.EC2Cloud.provision(EC2Cloud.java:422) at hudson.slaves.NodeProvisioner$StandardStrategyImpl.apply(NodeProvisioner.java:700) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:305) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:58) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:797) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:50) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    Jenkins JIRA | 1 year ago | Joshua Hoblitt
    com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context
  5. 0

    [JIRA] [ec2-plugin] (JENKINS-34291) unable to configure VPC security groups

    Google Groups | 1 year ago | jo...@hoblitt.com (JIRA)
    com.amazonaws.AmazonClientException: Security groups must all be VPC security groups to work in a VPC context

    1 unregistered visitors
    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.lang.NullPointerException

      No message provided

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