Intermittent SSLHandshakeException in Adinsight API

NGoyal 96 Reputation points
2021-04-28T04:18:40.767+00:00

Hi,

We are getting the following exception while calling Adinsight API from bing Ads SOAP API from java code.

Caused by: 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

    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)

    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)

    at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)

    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

    at org.apache.axis.client.Call.invoke(Call.java:2767)

    at org.apache.axis.client.Call.invoke(Call.java:2443)

    at org.apache.axis.client.Call.invoke(Call.java:2366)

    at org.apache.axis.client.Call.invoke(Call.java:1812)

When we call this API from a some other server, it works for some time and then exception starts coming again. And if we don't stop the calls then, it looks like the server gets blacklisted at MSN end. Please help to resolve the issue. We didn't change anything recently in the code and it was working till last week on bing Ads version 13.

Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
402 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Qingjun Tian 6 Reputation points Microsoft Employee
    2021-05-27T10:17:32.267+00:00

    could you please share which java version and what is the service setup?

    0 comments No comments