Hello,
I’ve been trying to fix my problem for few months now, any tips or ideas would be appreciated.
thank you in advance.
I’m using Java 7; tomcat-7.0.34; aspose.pdf-16.12.0
I’m getting the follow error sometimes. not all the time. sometimes it works fine.
Message:
File not found File: \bhc.cnb\Apps\A-C\Biomdata\Wr_CDPT\temp\dave\16244_dave_export_final_20170530210205.pdf
StackTrace:
com.aspose.pdf.internal.ms.System.IO.FileNotFoundException: File not found File: \bhc.cnb\Apps\A-C\Biomdata\Wr_CDPT\temp\dave\16244_dave_export_final_20170530210205.pdf
File name: ‘\bhc.cnb\Apps\A-C\Biomdata\Wr_CDPT\temp\dave\16244_dave_export_final_20170530210205.pdf’ —> \bhc.cnb\Apps\A-C\Biomdata\Wr_CDPT\temp\dave\16244_dave_export_final_20170530210205.pdf (Access is denied)
com.aspose.pdf.internal.p810.z3.(Unknown Source)
com.aspose.pdf.internal.p810.z3.(Unknown Source)
com.aspose.pdf.internal.p810.z3.(Unknown Source)
com.aspose.pdf.internal.p652.z28.(Unknown Source)
com.aspose.pdf.internal.p652.z28.(Unknown Source)
com.aspose.pdf.internal.p652.z28.(Unknown Source)
com.aspose.pdf.ADocument.save(Unknown Source)
com.aspose.pdf.Document.save(Unknown Source)
com.aspose.pdf.facades.SaveableFacade.save(Unknown Source)
com.bayer.dave.PdfExport.closeBookmarks(PdfExport.java:78)
com.bayer.dave.PdfExport.createPdf(PdfExport.java:654)
=================================================================
in my code, I’m creating the content (and create table and return table), save and then addbookmark then save. my inFile and OutFile path/name are the same. but I saw from your forum that this shouldn’t be problem. The weird thing is sometimes it works fine and sometimes i get the error.
=============================================================
createContent(outFile, tableOne, tableTwo, tableOneTitle, tableTwoTitle, docTitle, docExp, type);
Document doc = new Document();
…
createTable(rowTitles, columnNames, columnWidths, _tableOne);
…
doc.save(anOutFile);
…
addBookmark(outFile, outFile, tableOneBook, 1, tableTwoBook, tableTwo_StartPage);
…
Document pdfDocument = new Document(inFile);
…
pdfDocument.save(outFile);
…