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