Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

error using vim25 APIs from service layer

$
0
0

Hi,

I am developing a pluggin that involves an extension to the java service layer. The error occurs when I attempt to access the Server Instance belonging to the server (I use this later to query hosts). When I call the constructor for the ServiceInstance I get the following error:

 

VI SDK invoke exception:javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

My Constructor call looks as follows:

new ServiceInstance(new URL(myURL), username, password, true);

 

My pluggin was working a few days ago and now for some reason I am getting this error. I do not believe I have changed anything since then. I am also able to run my script fine from the command line, it only errors when run from the java service layer. I have also tried changing the last parameter to false and get the same error. Any help would be greatly appreciated.

 

Thanks,

Eric


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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