Create and Update Jaspersoft Users Job Fails
search cancel

Create and Update Jaspersoft Users Job Fails

book

Article ID: 38556

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

When attempting to run the "Create and Update Jaspersoft Users" job, it fails with the following error:

Failed to get an instance of ClarityJasperAdmin :: User Id not found

NJS-0401: Execution of job failed.

 

Environment

CA PPM - ALL VERSIONS
On-Demand (SaaS) and On Premise

Cause

There can be multiple causes for this problem as follows:
1. the Jasper keystore is corrupt
2. the Jasper parameters are out of sync between PPM and Jasper
3. the Jasper Context is out of sync between PPM and Jasper

Resolution

Run the following commands:
1. admin jaspersoft keystore 

  • These commands generate the following files in <install>/config/ and <install>/META-INF/reporting/store/:
  • <orgname>.jks (key store file)
  • <orgname>.properties (information about the key)
  • Copy these files to <Tomcat>/webapps/<jasperwebcontext>/WEB-INF/config where Jaspersoft is installed. For Example: <Tomcat>/webapps/reportservice/WEB-INF/config


2. admin update jasperParameters 
3. admin jaspersoft syncPPMContext -userName superuser -password superuser

Note: If you are running a version of CA PPM that is 14.2 or lower, the command in step 3 is not valid in that version.  Following the first two steps should resolve the issue.

Additional Information

In the BG logs, the following is noted:

ERROR 2018-02-25 20:08:43,601 [Dispatch pool-5-thread-7 : bg@example(tenant=clarity)] jaspersoft.ClarityJasperAdmin (clarity:admin:abc Create and Update Jaspersoft Users) Could not login to http://example:8081/reportservice with username PPM123_jasper

ERROR 2018-02-25 20:08:43,602 [Dispatch pool-5-thread-7 : bg@example(tenant=clarity)] jaspersoft (clarity:admin:abc Create and Update Jaspersoft Users) Failed to get an instance of ClarityJasperAdmin :: 

com.ca.jasper.restAdapter.JasperException: User Id not found