This is a difficult problem for me. The following shows the portion of the code that throws the exception when I try doing an Amazon search:
AWSECommerceServiceLocator locator = new AWSECommerceServiceLocator(fooConfig);
locator.setAWSECommerceServicePortEndpointAddress(SourceCountry.USA.getPortAddress());
//throws exception
AWSECommerceServicePortType type = locator.getAWSECommerceServicePort();
Heres the exception:
NativeException: bc.exceptions.FatalException: 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
The weird thing is that this happens intermittently. At times, everything works perfectly. Anybody have any ideas? At this point, any help is greatly appreciated.
Thanks.