Jump to content
Changes to the Jaspersoft community edition download ×

NullPointerException when exporting to PDF...

Recommended Posts

By: Andrew Matthews - namxat

NullPointerException when exporting to PDF...

2003-08-04 04:50

Hello. I am repeatedly running into the following NullPointerException whenever I make a call to any of JasperExportManager's exportReportToPdf methods. The following stack trace is generated by the following code:


byte[] filebytes = JasperExportManager.exportReportToPdf( jp );


However, this stack trace is identical, no matter which exportReportToPdf/PdfFile method is used:



at java.util.Arrays$ArrayList.(Arrays.java:2301)

at java.util.Arrays.asList(Arrays.java:2287)

at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:67)

at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:148)

at java.net.URL.openStream(URL.java:955)

at dori.jasper.engine.util.JRLoader.loadBytes(JRLoader.java:287)

at dori.jasper.engine.util.JRLoader.loadBytesFromLocation(JRLoader.java:380)

at dori.jasper.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1101)

at dori.jasper.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:391)

at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:340)

at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:262)

at dori.jasper.engine.JasperExportManager.exportReportToPdf(JasperExportManager.java:187)


Any ideas as to what is going on here?

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...