vSphere

 View Only

Static ip creation using VSphere Automation Java SDK 

May 16, 2023 10:00 AM

Hi Team,

I am using VSphere automation java sdk to create static ip and dns, getting below error. Also I have attached the code snippet. Please help fix this issue.

com.vmware.vim25.InvalidRequest

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)

at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)

at java.base/java.lang.reflect.ReflectAccess.newInstance(ReflectAccess.java:128)

at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(ReflectionFactory.java:347)

at java.base/java.lang.Class.newInstance(Class.java:645)

at com.vmware.vim25.ws.XmlGen.fromXml(XmlGen.java:205)

at com.vmware.vim25.ws.XmlGen.parseSoapFault(XmlGen.java:82)

at com.vmware.vim25.ws.WSClient.invoke(WSClient.java:134)

at com.vmware.vim25.ws.VimStub.reconfigVM_Task(VimStub.java:1865)

at com.vmware.vim25.mo.VirtualMachine.reconfigVM_Task(VirtualMachine.java:337)

at com.hcl.mcm.devops.vcenter.vm.ConfigNetwork.configureStaticIp3(ConfigNetwork.java:79)

at com.hcl.mcm.devops.vcenter.vm.ConfigNetwork.run(ConfigNetwork.java:235)

at com.hcl.mcm.devops.vcenter.vm.VmwareAutomationBase.execute(VmwareAutomationBase.java:166)

at com.hcl.mcm.devops.vcenter.vm.ConfigNetwork.main(ConfigNetwork.java:241)

 

Thanks,

Siva

 

 

 

Statistics
0 Favorited
0 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
txt file
VSphereStaticIP.txt   2 KB   1 version
Uploaded - May 09, 2024

Tags and Keywords

Related Entries and Links

No Related Resource entered.