Hi, i am passing the .jrxml file location to the JRXmlLoader.load() method directly as a string as "D:\\EclipseWorkSpace\\eyehospitalsystem\\web\\reports\\item.jrxml" but this method is throwing an exception when iam passing the string like this., pls help .. The code snippet used is as... JasperDesign jasperDesign = JRXmlLoader.load( reportSrc); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
String[] fields = new String[] { "id", "name","stockType","description","unit","stockLimit"}; HibernateQueryResultDataSource ds = new HibernateQueryResultDataSource(itemlist, fields); JasperPrint jasperPrint=JasperFillManager.fillReport(jasperReport, parameters, ds); JasperExportManager.exportReportToPdfFile(jasperPrint, "item.pdf"); where "reportSrc" is the String consisting of the string value as D:\\EclipseWorkSpace\\eyehospitalsystem\\web\\reports\\item.jrxml. -- View this message in context: http://www.nabble.com/Exception-in-JasperReport-with-Hibernate-tf4791019.html#a13705471 Sent from the jasperreports-questions mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions