Jump to content
JasperReports Library 7.0 is now available ×

Enkidu36

Members
  • Posts

    4
  • Joined

  • Last visited

Enkidu36's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I need to create a jasper report and export it to a .pdf file. This report needs to work for 100,000 records, each record will be a page. A page in this report will consist of one record from the database and two images uploaded via a scriptlet. This report will be generated from a web application on a tomcat server. The report works for up to 1,000 records then I run out of memory, which I have increased to -512MB. The virtualizer seems to be running great. When I ran it for 10,000 records I got a swapfile of 5.1GB but ran into an "Out of Memory" when my program tries to export the file to a .pdf. I looked into the code for JasperExportManager.exportReportToPdfFile(...) and noticed that it opens a FileOutputStream to export the file, that is good. The only thing I can think of is that that stream is not getting flushed often enough. Any help would be appreciated.
  2. I have the same issue. I can make a change to my scriptlet but it does not stick unless I shut down iReports.
  3. I fixed my problem with this code found on another post: byte[] bytes = null; bytes = report.getReport(); if(bytes != null && bytes.length > 0){ response.setContentType("application/pdf"); response.setContentLength(bytes.length); ServletOutputStream outputStream = response.getOutputStream(); outputStream.write(bytes,0,bytes.length); outputStream.flush(); outputStream.close();
  4. I am seeing a similar problem. The PDF export seems to work from my tomcat server on my local machine (windows box) but when I move the code up to a Linux test server the pdf page will display blank. I am using code similar to that of the Webapps sample. Thanks
×
×
  • Create New...