Hi
I have created a jasper report using jasperstudio 7.0. Report is woking fine inside the jasperstudio. But when call this jasper report from my
java servlet, i am getting blank pdf ouput. jasperviewer shows "failed to load PDF document". when i export the PDF file, it is zero KB file. Below is my code with viewer and request your support to address my issue.
JasperReport jReport = (JasperReport) JRLoader.loadObjectFromFile("d:\\reports\\test.jasper");
JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, myConnection);
JasperViewer.viewReport(jPrint,false);
I have below jar files in lib folder
commons-beanutils-1.9.4.jar
commons-codec.jar
commons-collections4-4.5.0.jar
commons-digester-2.1.jar
commons-logging-1.1.2.jar
jasperreports-7.0.0.jar
jasperreports-data-adapters-7.0.0.jar
jasperreports-groovy-7.0.0.jar
jasperreports-pdf-7.0.0.jar
I am using JDK-21.