2004 IR Help Posted August 22, 2006 Share Posted August 22, 2006 By: stephane - p073448 NullPointerException PdfDocument.close 2005-06-09 08:27 I generate a PDF document within a servlet. I get the following exception : 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:416) at net.sf.jasperreports.engine.export. JRPdfExporter.exportReport(JRPdfExporter.java:241) at net.sf.jasperreports.engine. JasperExportManager.exportReportToPdf(JasperExportManager.java:188) It only occurs on Websphere 5.1 on windows XP. I never had a single problem in the WSAD environment. I use jasperreports-0.6.8.jar and itext-1.3.jar but i have the same thing with the 0.6.6 version of jasperreport and any other version of itext (1.01). Notice : - i have no security manager restriction about 'getCLassLoader' on the application server. - i have tried to generate a pdf file before sending the response to the browser but the same thing happened. Thanks for any kind of help. By: stephane - p073448 RE: NullPointerException PdfDocument.close 2005-06-10 02:59 Problem solved. It comes from an old library version of itext (0.9) which was in the application server classapth. 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