Jump to content
Changes to the Jaspersoft community edition download ×

When previewing an expoerted pdf, shows blank page


apistol5395

Recommended Posts

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:WorkprjBASEbase-invest-application-warsrcmainresourcesreportsinstitutioninstitution_report.pdf! Error exporting print... java.io.FileNotFoundException: C:WorkprjBASEbase-invest-application-warsrcmainresourcesreportsinstitutioninstitution_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:WorkprjBASEbase-invest-application-warsrcmainresourcesreportsinstitutioninstitution_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:WorkprjBASEbase-invest-application-warsrcmainresourcesreportsinstitutioninstitution_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 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

java.io.FileNotFoundException: C:WorkprjBASEbase-invest-application-warsrcmainresourcesreportsinstitutioninstitution_report.pdf (The process cannot access the file because it is being used by another process)[/code]

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

Check under "C:WorkprjBASEbase-invest-application-warsrcmainresourcesreportsinstitution" 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.

Link to comment
Share on other sites

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