How to resolve "JasperReports encountered an error on report rendering" error
book
Article ID: KB0075497
calendar_today
Updated On:
Products
Versions
TIBCO BusinessConnect
7.x.x
Description
When clicking on "Show Dashboard" in Administrator GUI/BusinessConnect/Dashboard/Show Dashboard, for Jasper Report, the follwoing error appears in a new popup window under "Business Connect > Dashboard". Please see the attachment in this article. **************** JasperReports encountered an error on report rendering!
java.lang.NullPointerException at net.sf.jasperreports.web.servlets.ReportOutputServlet.render(ReportOutputServlet.java:152) ****************
The Administrator log file (with debug enabled) shows the below error: **************** com.jaspersoft.jasperreports.license.LicenseException: License not found at .\jasperreports.license at com.jaspersoft.jasperreports.license.BaseLicenseProviderImpl.requireLicense(BaseLicenseProviderImpl.java:184) ****************
How can I resolve this error and from where I can get this jasperreports.license file?
Issue/Introduction
When I click on "Show Dashboard" for Jasper Reports in Admin GUI, I am getting the error "JasperReports encountered an error on report rendering!"
Environment
ALL
Resolution
After installing BusinessConnect 7.x.x, the jasperreports.license file and jasperserver.license file will be installed under <user-home-path> directory. Typically on Windows, you can find it under C:/Users/<user_name>/
If you use the same BC installation user, to start the TIBCO Administrator also (BusinessConnect and Administrator are installed on same machine), then the jasperreports.license file would be picked up automatically and you should not see this error.
If you are using a different user, or if the Administrator and BC installations are on different machines, then you have to add the below property in the administrator tra file and specify the location of the jasperreports.license like below.
You can copy the jasperreports.license file from BC installation to Administrator installation machine to any location and specify that location in the above property.
Please note that the Jasper Reports usage requires higher memory on the administrator machine. So please specify higher value (couple of gigs) for "java.heap.size.max" in the administrator tra file.
Attachments
How to resolve "JasperReports encountered an error on report rendering" error
get_app