java - Calling stored procedure from web app Jasper report returns no data -
i have jasper report called web app , executes stored procedure data. stored procedure works on sql developer , ireports studio (5.1) after building , deploying, returns blank pdf when call report jsp front end.
the log files indicate parameters correctly sent, there no data jasper library's jrverticalfiller
class.
conn = datasource.getconnection(); parameters.put("report_connection", conn); parameters.put("subreport_dir", propsutil.getreportsrootpath()); jasperprint jasperprint = jasperfillmanager.fillreport(jasperreport, parameters, conn); jrpdfexporter jrpdfexporter = new jrpdfexporter(); jrpdfexporter.setparameter(jrexporterparameter.jasper_print, jasperprint); //etc ... jrpdfexporter.exportreport();
any advice appreciated.
i found cause of problem. parameter names defined in stored procedure, jrxml, , parameter names in java class, have same. in case, java class used min_date , max_date while storedproc , jrxml used mindate , maxdate.
no wonder data wasn't being returned!
Comments
Post a Comment