org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException

Jenkins JIRA | veli pekka jutila | 9 months ago
  1. 0

    Trying to change the port group of my virtual machine to one that is used for all virtual machines in a particular Resource Pool. I get a null pointer exception, when I try to use the vsphere cloud plugin. Cloud user account is able to do that through Vcenter GUI Building on master in workspace /var/lib/jenkins/jobs/test vcenter networking reconfiguration/workspace [vSphere] [vSphere] Performing vSphere build step: "Power-Off VM" [vSphere] Attempting to use server configuration: "vcenter" [vSphere] Shutting Down VM FW-DEV... [vSphere] Successfully shutdown "FW-DEV" [vSphere] [vSphere] Performing vSphere build step: "Reconfigure VM" [vSphere] Attempting to use server configuration: "vcenter" [vSphere] Reconfiguring VM "FW-DEV". Please wait ... [vSphere] Preparing reconfigure: Edit Network Adapter "" [vSphere] Reconfiguring Distributed Switch Port Group -> pgFirewall Port Id -> [vSphere] Exception org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException at org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:883) at org.jenkinsci.plugins.vsphere.builders.ReconfigureNetworkAdapters.perform(ReconfigureNetworkAdapters.java:173) at org.jenkinsci.plugins.vsphere.builders.Reconfigure.reconfigureVm(Reconfigure.java:81) at org.jenkinsci.plugins.vsphere.builders.Reconfigure.perform(Reconfigure.java:58) at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:91) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:878) ... 13 more Build step 'vSphere Build Step' marked build as failure Finished: FAILURE

    Jenkins JIRA | 9 months ago | veli pekka jutila
    org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException
  2. 0

    Trying to change the port group of my virtual machine to one that is used for all virtual machines in a particular Resource Pool. I get a null pointer exception, when I try to use the vsphere cloud plugin. Cloud user account is able to do that through Vcenter GUI Building on master in workspace /var/lib/jenkins/jobs/test vcenter networking reconfiguration/workspace [vSphere] [vSphere] Performing vSphere build step: "Power-Off VM" [vSphere] Attempting to use server configuration: "vcenter" [vSphere] Shutting Down VM FW-DEV... [vSphere] Successfully shutdown "FW-DEV" [vSphere] [vSphere] Performing vSphere build step: "Reconfigure VM" [vSphere] Attempting to use server configuration: "vcenter" [vSphere] Reconfiguring VM "FW-DEV". Please wait ... [vSphere] Preparing reconfigure: Edit Network Adapter "" [vSphere] Reconfiguring Distributed Switch Port Group -> pgFirewall Port Id -> [vSphere] Exception org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException at org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:883) at org.jenkinsci.plugins.vsphere.builders.ReconfigureNetworkAdapters.perform(ReconfigureNetworkAdapters.java:173) at org.jenkinsci.plugins.vsphere.builders.Reconfigure.reconfigureVm(Reconfigure.java:81) at org.jenkinsci.plugins.vsphere.builders.Reconfigure.perform(Reconfigure.java:58) at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:91) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.NullPointerException at org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:878) ... 13 more Build step 'vSphere Build Step' marked build as failure Finished: FAILURE

    Jenkins JIRA | 9 months ago | veli pekka jutila
    org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException
  3. 0

    [JIRA] [vsphere-cloud-plugin] (JENKINS-33129) Unable to change virtual machine port group

    Google Groups | 9 months ago | well...@gmail.com (JIRA)
    org.jenkinsci.plugins.vsphere.tools.VSphereException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JIRA] [vmware-plugin] (JENKINS-32713) Could not clone vm through Jenkins vsphere cloud plugin

    Google Groups | 10 months ago | mengata@gmail.com (JIRA)
    org.jenkinsci.plugins.vsphere.tools.VSphereException: org.jenkinsci.plugins.vsphere.tools.VSphereException: vSphere Error: Couldn't clone "Gaviria"! Does "GaviriaSnap" already exist? Clone task ended with status error
  6. 0

    Hello Guys, I installed vsphere cloud plugin. After setup & configuration in jenkins im not able to clone my VM, something wrong with this plugin. Building on master in workspace d:\Profiles\mamengat\.jenkins\jobs\CloneCloudVM\workspace [vSphere] [vSphere] Performing vSphere build step: "Clone VM from VM or template" [vSphere] Attempting to use server configuration: "AmpCloud" [vSphere] Creating a shallow clone of "Gaviria" to "GaviriaSnap" [vSphere] Started cloning of VM. Please wait ... [vSphere] Exception org.jenkinsci.plugins.vsphere.tools.VSphereException: org.jenkinsci.plugins.vsphere.tools.VSphereException: vSphere Error: Couldn't clone "Gaviria"! Does "GaviriaSnap" already exist? Clone task ended with status error at org.jenkinsci.plugins.vsphere.tools.VSphere.cloneOrDeployVm(VSphere.java:170) at org.jenkinsci.plugins.vsphere.tools.VSphere.cloneVm(VSphere.java:130) at org.jenkinsci.plugins.vsphere.builders.Clone.cloneFromSource(Clone.java:111) at org.jenkinsci.plugins.vsphere.builders.Clone.perform(Clone.java:91) at org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:91) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: org.jenkinsci.plugins.vsphere.tools.VSphereException: vSphere Error: Couldn't clone "Gaviria"! Does "GaviriaSnap" already exist? Clone task ended with status error at org.jenkinsci.plugins.vsphere.tools.VSphere.cloneOrDeployVm(VSphere.java:165) ... 13 more Build step 'vSphere Build Step' marked build as failure Finished: FAILURE

    Jenkins JIRA | 10 months ago | mohamed amin mengat
    org.jenkinsci.plugins.vsphere.tools.VSphereException: org.jenkinsci.plugins.vsphere.tools.VSphereException: vSphere Error: Couldn't clone "Gaviria"! Does "GaviriaSnap" already exist? Clone task ended with status error

    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 org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup()
    2. org.jenkinsci.plugins
      VSphereBuildStepContainer.perform
      1. org.jenkinsci.plugins.vsphere.tools.VSphere.getDistributedVirtualSwitchByPortGroup(VSphere.java:878)
      2. org.jenkinsci.plugins.vsphere.builders.ReconfigureNetworkAdapters.perform(ReconfigureNetworkAdapters.java:173)
      3. org.jenkinsci.plugins.vsphere.builders.Reconfigure.reconfigureVm(Reconfigure.java:81)
      4. org.jenkinsci.plugins.vsphere.builders.Reconfigure.perform(Reconfigure.java:58)
      5. org.jenkinsci.plugins.vsphere.VSphereBuildStepContainer.perform(VSphereBuildStepContainer.java:91)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      6. hudson.model.Run.execute(Run.java:1738)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:410)
      9 frames