gephi/trunk — Issue #240: FileNotFoundException during saving of PDF file
Author: mbastian
Created: 2011-10-22 16:44:20+00:00
State: open
Labels: Fix Released, Low

I export a PDF and I put the same name that a already open file with acrobat reader.
Because the file is already open, gephi cannot overwrite it (normal behavior).

A:n exception message popup is open (details at the end of bug report). I think gephi should open a popup by saying "this file is already open/cannot be overwrited".

java.io.FileNotFoundException: C:\****\Untilted.pdf (Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at org.gephi.io.exporter.preview.PDFExporter.exportData(PDFExporter.java:378)
at org.gephi.io.exporter.preview.PDFExporter.exportData(PDFExporter.java:72)
at org.gephi.desktop.io.export.DesktopExportController$6.run(DesktopExportController.java:253)
at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:228)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)