View Jaspersoft Report logs (Clarity SaaS)
search cancel

View Jaspersoft Report logs (Clarity SaaS)

book

Article ID: 104231

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Unlike Clarity On-Premise customers, there is no direct access by a Clarity SaaS customer to get the Jaspersoft log folder ((jasperserver.log)

It is sometimes necessary to see the Clarity "Advanced Reporting (Jaspersoft) logs to:

  1. Troubleshoot why a report is failing
  2. Test if the Jaspersoft Scheduler Server email functionality is working properly.

How can Clarity SaaS customers do this?

Environment

Advice is relevant for both Clarity SaaS and Clarity On-Premise customers, on all versions.

On-Premise customers have server-level/direct access to the jasperserver.log if needed. There is no direct access by a Clarity SaaS customer to get the Jaspersoft log folder

Resolution

If you Schedule a Report, you can send the Stack Trace to an email address. This will contain any error messages generated while the report was attempting to run.

  1. From CLARITY Advanced Reporting (Jaspersoft), Schedule a Report.
  2. At the bottom right, there are options to enable a "Stack trace."
  3. Enable these, and re-run the report.
  4. When you receive the report, it will contain output similar to the following:

2018-07-04 16:19:55,536 ERROR AsyncJasperPrintAccessor,pool-6-thread-21335:321 [host_dev|MY_CA_PPM_SERVER] - Error during report execution
net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: Error opening input stream from URL: repo:/ca_ppm/resources/images/circleGreen.
    at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:116)
    at net.sf.jasperreports.repo.InputStreamPersistenceService.load(InputStreamPersistenceService.java:45)
    at net.sf.jasperreports.repo.DefaultRepositoryService.getResource(DefaultRepositoryService.java:149)
    at net.sf.jasperreports.repo.RepositoryUtil.findInputStream(RepositoryUtil.java:190)
....
Caused by: net.sf.jasperreports.engine.JRException: Error opening input stream from URL: repo:/ca_ppm/resources/images/circleGreen.
    at net.sf.jasperreports.engine.util.JRLoader.getInputStream(JRLoader.java:343)
    at net.sf.jasperreports.repo.DefaultRepositoryService.getInputStream(DefaultRepositoryService.java:99)
    ... 27 more
Caused by: java.io.IOException: Repository file resource /ca_ppm/resources/images/circleGreen could not be loaded
    at com.jaspersoft.jasperserver.api.engine.jasperreports.util.repo.RepositoryConnection.getInputStream(RepositoryConnection.java:103)
    at java.net.URL.openStream(URL.java:1045)
    at net.sf.jasperreports.engine.util.JRLoader.getInputStream(JRLoader.java:339)
    ... 28 more