SDK JAVA Connection issues -- unable to find valid certification path to requested target

// Log in using a basic authorization header
        // Note: Do not call the Service.login method
        Service service = new Service("", 8089);
        String credentials = "username:password";
        String basicAuthHeader = Base64.encode(credentials.getBytes());
        service.setToken("Basic " + basicAuthHeader);
        // Print the session token
        System.out.println("Your session token: " + service.getToken());

Getting exception this LINE
// Create the job
InputStream exportStream = service.export(mySearch, jobArgs);

java.lang.RuntimeException: PKIX path building failed: unable to find valid certification path to requested target
at com.splunk.HttpService.send(
at com.splunk.Service.send(
at com.splunk.HttpService.get(
at com.splunk.Service.export(
at com.splunk.Service.export(


2 years, over 1,000 views and no answer??? Nice work Splunk....


Please shed the light if you know how to resolve this. I am seeing the same error. The code worked locally but failed when deploy the connection client to weblogic server 12c.

0 Karma

New Member

I have the same issue right now, it stops me from feather development and buying the product.

0 Karma
Get Updates on the Splunk Community!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...