JasperSoft Report Runtime images are not getting generated on Jaspersoft version 9
search cancel

JasperSoft Report Runtime images are not getting generated on Jaspersoft version 9

book

Article ID: 386640

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

JasperSoft reports that uses batik render libraries, in order to render images on run time in SVG format. This used to work until upgraded to JS 9.x, following which it fails with error “Cannot invoke "org.apache.batik.util.ParsedURL.toString()" because "uri" is null) . It works fine on the JasperSoft version 8.1.1 

STEPS TO REPRODUCE:

  1. Create a JasperSoft report that will render image on run time in SVG format.
  2. Deploy it in Jasper Server version 9.0 and run the report

 

Expected Results :-

The report should generate the images on run time upon execution

Actual Results :-

The report execution fails with the following error: Cannot invoke "org.apache.batik.util.ParsedURL.toString()" because "uri" is null)"

Environment

Clarity 16.2.2, 16.2.3 using JasperReports server 9.0

Cause

DE165468

Resolution

This issue was referenced to Tibco, where it was identified that the NullPointerException (NPE) error is occurring due to the upgrade to Batik 1.17, a library responsible for handling SVG files in JasperReports. 

This issue is presently under review by the Engineering Team