Create and Update Jaspersoft Users Job Fails

Document ID : KB000038556
Last Modified Date : 09/05/2018
Show Technical Document Details
Issue:

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.

Job Properties - Log Entries


In the BG logs, the following is noted:

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

ERROR 2018-02-25 20:08:43,602 [Dispatch pool-5-thread-7 : bg@ppmserver (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

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

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.