Troubleshooting
Problem
IBM Sterling B2B Integrator Mail Client Adapter with OAUTH 2.0 enabled fails with error "Failed to get an access token"
Symptom
The following error is observed in b2bamilclient.log
[2025-03-21 01:48:00.998] ERROR 000000000000 GLOBAL_SCOPE Failed to get an access token
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target
at com.ibm.jsse2.k.a(k.java:43)
at com.ibm.jsse2.av.a(av.java:722)
at com.ibm.jsse2.D.a(D.java:121)
at com.ibm.jsse2.D.a(D.java:572)
at com.ibm.jsse2.E.a(E.java:585)
at com.ibm.jsse2.E.a(E.java:479)
at com.ibm.jsse2.D.s(D.java:286)
at com.ibm.jsse2.D.a(D.java:251)
at com.ibm.jsse2.av.a(av.java:788)
at com.ibm.jsse2.av.i(av.java:45)
at com.ibm.jsse2.av.a(av.java:637)
at com.ibm.jsse2.av.startHandshake(av.java:1020)
at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:1)
at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:72)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1352)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1327)
at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(b.java:70)
at com.sterlingcommerce.woodstock.services.oauth2.OAuth2Authenticator.getAccessToken(OAuth2Authenticator.java:115)
at com.sterlingcommerce.woodstock.services.oauth2.OAuth2Util.getAccessToken(OAuth2Util.java:111)
at com.sterlingcommerce.woodstock.services.b2bmailsvs.AccessMailJ.connect(AccessMailJ.java:291)
at com.sterlingcommerce.woodstock.services.b2bmailsvs.SimpleMailClient.processData(SimpleMailClient.java:109)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.invokeService(ActivityEngineHelper.java:1826)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.nextMainLogic(ActivityEngineHelper.java:631)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.next(ActivityEngineHelper.java:362)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.doWork(WorkFlowQueueListener.java:459)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.run(WorkFlowQueueListener.java:240)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.onMessage(WorkFlowQueueListener.java:197)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.onMessage(WorkFlowQueueListener.java:184)
at com.sterlingcommerce.woodstock.workflow.queue.wfTransporter.run(wfTransporter.java:447)
at com.sterlingcommerce.woodstock.workflow.queue.BasicExecutor$Worker.run(BasicExecutor.java:529)
at java.lang.Thread.run(Thread.java:822)
Caused by: com.ibm.jsse2.util.h: PKIX path building failed: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target
at com.ibm.jsse2.util.f.a(f.java:85)
at com.ibm.jsse2.util.f.b(f.java:8)
at com.ibm.jsse2.util.e.a(e.java:6)
at com.ibm.jsse2.aD.a(aD.java:75)
at com.ibm.jsse2.aD.a(aD.java:181)
at com.ibm.jsse2.aD.checkServerTrusted(aD.java:144)
at com.ibm.jsse2.E.a(E.java:145)
... 26 more
Caused by: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target
at com.ibm.security.cert.SunCertPathBuilder.build(SunCertPathBuilder.java:139)
at com.ibm.security.cert.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:124)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:292)
at com.ibm.jsse2.util.f.a(f.java:129)
[2025-03-21 01:48:00.998] ERROR 000000000000 GLOBAL_SCOPE Failed to get an access token
javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.h: PKIX path building failed: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target
at com.ibm.jsse2.k.a(k.java:43)
at com.ibm.jsse2.av.a(av.java:722)
at com.ibm.jsse2.D.a(D.java:121)
at com.ibm.jsse2.D.a(D.java:572)
at com.ibm.jsse2.E.a(E.java:585)
at com.ibm.jsse2.E.a(E.java:479)
at com.ibm.jsse2.D.s(D.java:286)
at com.ibm.jsse2.D.a(D.java:251)
at com.ibm.jsse2.av.a(av.java:788)
at com.ibm.jsse2.av.i(av.java:45)
at com.ibm.jsse2.av.a(av.java:637)
at com.ibm.jsse2.av.startHandshake(av.java:1020)
at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:1)
at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:72)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1352)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1327)
at com.ibm.net.ssl.www2.protocol.https.b.getOutputStream(b.java:70)
at com.sterlingcommerce.woodstock.services.oauth2.OAuth2Authenticator.getAccessToken(OAuth2Authenticator.java:115)
at com.sterlingcommerce.woodstock.services.oauth2.OAuth2Util.getAccessToken(OAuth2Util.java:111)
at com.sterlingcommerce.woodstock.services.b2bmailsvs.AccessMailJ.connect(AccessMailJ.java:291)
at com.sterlingcommerce.woodstock.services.b2bmailsvs.SimpleMailClient.processData(SimpleMailClient.java:109)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.invokeService(ActivityEngineHelper.java:1826)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.nextMainLogic(ActivityEngineHelper.java:631)
at com.sterlingcommerce.woodstock.workflow.activity.engine.ActivityEngineHelper.next(ActivityEngineHelper.java:362)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.doWork(WorkFlowQueueListener.java:459)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.run(WorkFlowQueueListener.java:240)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.onMessage(WorkFlowQueueListener.java:197)
at com.sterlingcommerce.woodstock.workflow.queue.WorkFlowQueueListener.onMessage(WorkFlowQueueListener.java:184)
at com.sterlingcommerce.woodstock.workflow.queue.wfTransporter.run(wfTransporter.java:447)
at com.sterlingcommerce.woodstock.workflow.queue.BasicExecutor$Worker.run(BasicExecutor.java:529)
at java.lang.Thread.run(Thread.java:822)
Caused by: com.ibm.jsse2.util.h: PKIX path building failed: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target
at com.ibm.jsse2.util.f.a(f.java:85)
at com.ibm.jsse2.util.f.b(f.java:8)
at com.ibm.jsse2.util.e.a(e.java:6)
at com.ibm.jsse2.aD.a(aD.java:75)
at com.ibm.jsse2.aD.a(aD.java:181)
at com.ibm.jsse2.aD.checkServerTrusted(aD.java:144)
at com.ibm.jsse2.E.a(E.java:145)
... 26 more
Caused by: com.ibm.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target
at com.ibm.security.cert.SunCertPathBuilder.build(SunCertPathBuilder.java:139)
at com.ibm.security.cert.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:124)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:292)
at com.ibm.jsse2.util.f.a(f.java:129)
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"ARM Category":[{"code":"a8m50000000CjplAAC","label":"Protocol"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0.3;6.1.0"}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
29 April 2025
UID
ibm17232031