2004 IR Help Posted August 23, 2006 Share Posted August 23, 2006 By: Me_ - black_lotus ExceptionConverter: java.lang.NullPointerExce 2005-10-14 08:10 Hello, I'm in the final stages of generating my pdf report. I have the .jasper and .jrprint created and when I try and export the .jrprint to pdf I get the following exception. Can someone explain what it means? Thanks ExceptionConverter: java.lang.NullPointerException at com.lowagie.text.pdf.PdfDocument.close(Unknown Source) at com.lowagie.text.Document.close(Unknown Source) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:427) at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:267) at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:126) at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:103) at labels.LabelMaker.makeLabels(LabelMaker.java:33) By: Teodor Danciu - teodord RE: ExceptionConverter: java.lang.NullPointer 2005-10-17 03:27 Hi, What version of JasperReports are you using and how are you exporting to HTML? Do you use the JasperExportManager? Thank you, Teodor By: Me_ - black_lotus RE: ExceptionConverter: java.lang.NullPointerExce 2005-10-17 06:38 Hello, I am exporting to pdf using the following code: String printFile = JasperFillManager.fillReportToFile ("C:\test_1.jasper", null, new JRBeanArrayDataSource( list.toArray() ) ); /** * Export the .jrprint file to a .pdf */ JasperExportManager.exportReportToPdfFile (printFile); I have managed to fix the problem by including every jar that comes with jasperreports-1.0.1, but this is just a band-aid because there are several jars which i dont need. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now