Jump to content
Changes to the Jaspersoft community edition download ×

ExceptionConverter: java.lang.NullPointerExce

2004 IR Help

Recommended Posts

By: Me_ - black_lotus

ExceptionConverter: java.lang.NullPointerExce

2005-10-14 08:10


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




What version of JasperReports are you using and

how are you exporting to HTML?

Do you use the JasperExportManager?


Thank you,







By: Me_ - black_lotus

RE: ExceptionConverter: java.lang.NullPointerExce

2005-10-17 06:38



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







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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...