When previewing an expoerted pdf, shows blank page

0

I have already set in <jasperReport> tag the property  -   whenNoDataType="AllSectionNoDetail", but i don`t know what is the cause of this error  ( i dont `t keep .../institution_report.pdf opened in Adobe Reader, if it`s related )

 

Exporting PDF (using iText) to file... C:\Work\prj\BASE\base-invest-application-war\src\main\resources\reports\institution\institution_report.pdf! Error exporting print... java.io.FileNotFoundException: C:\Work\prj\BASE\base-invest-application-war\src\main\resources\reports\institution\institution_report.pdf (The process cannot access the file because it is being used by another process)
net.sf.jasperreports.engine.JRRuntimeException: java.io.FileNotFoundException: C:\Work\prj\BASE\base-invest-application-war\src\main\resources\reports\institution\institution_report.pdf (The process cannot access the file because it is being used by another process) 
   at net.sf.jasperreports.export.parameters.ParametersOutputStreamExporterOutput.<init>(ParametersOutputStreamExporterOutput.java:92) 
   at net.sf.jasperreports.engine.export.JRPdfExporter.ensureOutput(JRPdfExporter.java:461) 
   at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:507) 
   at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1174) 
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) 
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) 
Caused by: java.io.FileNotFoundException: C:\Work\prj\BASE\base-invest-application-war\src\main\resources\reports\institution\institution_report.pdf (The process cannot access the file because it is being used by another process) 
   at java.io.FileOutputStream.open(Native Method) 
   at java.io.FileOutputStream.<init>(FileOutputStream.java:221) 
   at java.io.FileOutputStream.<init>(FileOutputStream.java:171) 
   at net.sf.jasperreports.export.parameters.ParametersOutputStreamExporterOutput.<init>(ParametersOutputStreamExporterOutput.java:87) 
   ... 5 more 

apistol5395's picture
Joined: Aug 21 2018 - 2:35pm
Last seen: 2 years 3 months ago

1 Answer:

0
java.io.FileNotFoundException: C:\Work\prj\BASE\base-invest-application-war\src\main\resources\reports\institution\institution_report.pdf (The process cannot access the file because it is being used by another process)

Try rebooting your computer. Maybe, there's some other process using it. This may occur if an application errors out.

Check under "C:\Work\prj\BASE\base-invest-application-war\src\main\resources\reports\institution\" to make sure there's no temporary files there.

If you're using iReport, switch to Jaspersoft Studio. iReport has many bugs and is also no longer supported.

hozawa's picture
66830
Joined: Apr 24 2010 - 4:31pm
Last seen: 1 year 5 months ago
Feedback