1 Reply Latest reply on Jan 16, 2015 11:29 AM by Yanick Girouard

    COserver - java.lang.NullPointerException error when running Virtual Guest Job to clone Windows VMware template

    Yanick Girouard

      I'm testing the virtual provisioning module of BSA 8.3.03.116 and I'm trying to clone a Windows 2k8 VM template into a new VM (VMware).

       

      The job is using OS Customization to change the NIC settings (Network, and IP info), but that's it. The job fails at the commit stage with the following:

       

      COserver - Exception occurred in plugin: com.bladelogic.om.infra.daal.jco.CustomObjectException: java.lang.NullPointerException

       

      In the debug logs of the job, I see the following thrown exception:

       

      java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key property_set_class.-2267739.name
              at java.util.ResourceBundle.getObject(Unknown Source)
              at java.util.ResourceBundle.getString(Unknown Source)
              at com.bladelogic.om.infra.model.util.CoreDataMessages.getString(CoreDataMessages.java:154)
              at com.bladelogic.om.infra.model.primitive.typedef.SStringResource.getLocalizedValue(SStringResource.java:78)
              at com.bladelogic.om.infra.model.primitive.typedef.SStringResource.getValue(SStringResource.java:131)
              at com.bladelogic.om.infra.model.base.SPropertySetClass.getName(SPropertySetClass.java:330)
              at com.bladelogic.om.infra.model.property.LazyPropertySetClassImpl.getName(LazyPropertySetClassImpl.java:1561)
              at com.bladelogic.om.infra.model.property.PropertySetClassServiceImpl.validateName(PropertySetClassServiceImpl.java:1599)
              at com.bladelogic.om.infra.model.property.PropertySetClassServiceImpl.update(PropertySetClassServiceImpl.java:1721)
              at com.bladelogic.om.infra.model.property.PropertySetClassServiceImpl.update(PropertySetClassServiceImpl.java:1708)
              at com.bladelogic.om.infra.model.depot.blpackage.BlPackageImpl.save(BlPackageImpl.java:639)
              at com.bladelogic.om.infra.model.depot.blpackage.BlPackageImpl.savePackageInstructions(BlPackageImpl.java:764)
              at com.bladelogic.om.infra.model.depot.blpackage.BlPackageFactory$1.doDBOperation(BlPackageFactory.java:221)
              at com.bladelogic.om.infra.app.db.TransactionalOperation.manageTransaction(TransactionalOperation.java:174)
              at com.bladelogic.om.infra.app.db.TransactionalOperation.execute(TransactionalOperation.java:136)
              at com.bladelogic.om.infra.model.depot.blpackage.BlPackageFactory.savePackageInstructions(BlPackageFactory.java:224)
              at com.bladelogic.om.infra.model.depot.blpackage.BlPackageFactory.savePackageInstructions(BlPackageFactory.java:146)
              at com.bladelogic.om.virtualization.model.depot.vgp.VGPPlatformSupportBase.updateBlPackageFromVirtualGuestPackage(VGPPlatformSupportBase.java:1146)
              at com.bladelogic.om.virtualization.app.service.VirtualGuestPackageServiceImpl.updateBlPackageFromVirtualGuestPackage(VirtualGuestPackageServiceImpl.java:520)
              at com.bladelogic.om.virtualization.model.job.createvg.VirtualGuestJobExecutor.updateBlPackage(VirtualGuestJobExecutor.java:278)
              at com.bladelogic.om.virtualization.model.job.createvg.VirtualGuestJobExecutor.startJobExecution(VirtualGuestJobExecutor.java:215)
              at com.bladelogic.om.infra.app.service.job.JobExecutor.processEvent(JobExecutor.java:439)
              at com.bladelogic.om.virtualization.model.job.createvg.VirtualGuestJobExecutor.processEvent(VirtualGuestJobExecutor.java:566)
              at com.bladelogic.om.infra.app.service.job.JobExecutor.processEvents(JobExecutor.java:293)
              at com.bladelogic.om.infra.app.service.job.execution.JobExecutionThread.execute(JobExecutionThread.java:116)
              at com.bladelogic.om.infra.app.service.job.execution.JobExecutionThread.execute(JobExecutionThread.java:25)
              at com.bladelogic.om.infra.app.service.thread.BlBlockingThread.run(BlBlockingThread.java:95)
      

       

      Note that I'm able to clone a RHEL vm template successfully with same type of customization on the same vcenter server. This only seems to happen with Windows.

       

      attached are the full job and debug logs.