Quantcast
Channel: VMware Communities: Message List - vCenter™ Server
Viewing all articles
Browse latest Browse all 15787

NPE on apputils ServiceConnection.connect

$
0
0

We are using the vSphere 5.0 Web Services SDK for Java (the most current version seems to be released on 2011-08-22) to connect to our vCenter server 5.1.0 (build 947673)

When doing a ExtendedAppUtil.connect we are faced with the following exceptions:

 

java.lang.NullPointerException

     at com.vmware.apputils.vim25.ServiceConnection.disconnect(ServiceConnection.java:175)

     at com.vmware.apputils.vim25.ServiceConnection.connect(ServiceConnection.java:44)

     at com.vmware.apputils.vim25.ServiceUtil.clientConnect(ServiceUtil.java:40)

     at com.vmware.apputils.version.ExtendedAppUtil.connect(ExtendedAppUtil.java:46)

 

so we suspect the ServiceContent _sic to be null.

A more defensive approach when doing the disconnect would be much appreciated.

How can we avoid this exception and get a new connection?


Viewing all articles
Browse latest Browse all 15787

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>