Jaspersoft upgrade error "unable to find valid certification path to requested target"
search cancel

Jaspersoft upgrade error "unable to find valid certification path to requested target"

book

Article ID: 135551

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

The Jaspersoft upgrade fails for Clarity with error: Error: PKIX path building failed: sun.security.provider. certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This is seen when running the following command:

admin content-jaspersoft csk -userName superuser -password xxxxxxx -fileName jaspersoft_csk.zip -retryCount 50 

The detailed error generated when running the command is:

ERROR 03-08 17:50:25,911 - sendRequest Error: PKIX path building failed: sun.security.provider. certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

ERROR 2019-08-03 17:50:25,911 [main] restAdapter.JasperRestAdapter sendRequest Error: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

ERROR 03-08 17:50:25,912 - Login failed: httpclient.io.error - PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path  to requested target

ERROR 03-08 17:50:25,913 - Could not login to <reporturl> with username ppmjasperadmin

Environment

Release : Any

Cause

This can happen if the java version has changed (has been upgraded) for Clarity and the certificate has not been imported for the new Java version.

Resolution

Ensure the certificates are added to the new java version.