VMware Cloud Community
OwainNorth
Contributor
Contributor

Vm.GetGuestCustomizationSection() - Unexpected JAXB Exception

Well isn't this getting tedious? What previously worked fine in v1.0 is now throwing an exception, even when I've stripped it down to essentially nothing. I'm trying to update Guest Customisation for a Vm.

Vapp NewerVApp = Vapp.GetVappByReference(_VCloudManager.VCDClient, VCDVdc.GetVappRefByName(Name));
VM Vm = NewerVApp.GetChildrenVms()[0];
GuestCustomizationSectionType Guest = Vm.GetGuestCustomizationSection();
Vm.UpdateSection(Guest).WaitForTask(10000);

But no, for some reason it doesn't like the XML.
com.vmware.vcloud.sdk.utility.VCloudException: Bad request  - Unexpected JAXB Exception  - unexpected element {http://schemas.dmtf.org/ovf/envelope/1}Section
   at com.vmware.vcloud.sdk.VM.UpdateSection(Section_Type sectionType)
   at <path>.CreateVApp(String Name, Int16 NumCpus, Int16 MemoryMb) in G:\<path>.cs:line 147
   at VCloudDevConsole.Program.Main(String[] args) in G:\<path>\Program.cs:line 24

Any ideas anyone?
Cheers
O.
0 Kudos
0 Replies