openstack4j icon indicating copy to clipboard operation
openstack4j copied to clipboard

java.lang.NullPointerException when rebootGuest is called

Open Dhanusha-Jeevan opened this issue 4 years ago • 1 comments

Hi,

java.lang.NullPointerException: null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:770) ~[guava-20.0.jar:?] at org.openstack4j.openstack.compute.internal.ServerServiceImpl.reboot(ServerServiceImpl.java:211) ~[openstack4j-3.2.0.jar:?] at com.nsn.cpf.vManager.OpenStackImplV3.rebootGuest(OpenStackImplV3.java:120)

i am getting below error when serverID is passed to rebootGuest.

public void rebootGuest(String vmName) throws Exception { reConnect(); ActionResponse response = os.compute().servers().reboot(getIdByHostName(vmName), RebootType.SOFT); }

please suggest what could be the cause and help in resolving the issue. Thanks in advance

Dhanusha-Jeevan avatar Aug 12 '20 07:08 Dhanusha-Jeevan

good issue. forked from https://github.com/openstack4j/openstack4j .

consider to solve it

bboyHan avatar Nov 13 '20 16:11 bboyHan