Skip to content

ERROR BackupManager Error while saving to file #5871

Closed
@bernhard-kleine

Description

@bernhard-kleine

JabRef 5.0-beta.364--2020-01-25--0407d9a
Windows 7 6.1 amd64
Java 13.0.2

This error has been hidden behind error "The library has been changed by another program"
Steps to reproduce the behavior:

  1. Start Jabref and open a fresh library, save it to a file
  2. Open the medline search and start looking for PMID 29045901.
  3. Import the entry and save the library.
  4. There is not any apparent error in the library. However, since Jabref opens an command prompt for reasons of "ERROR StatusLogger Log4j2 could not find a logging implementation", you will see in that window the ERROR BackupManager Error while saving to file.
Log File
ERROR BackupManager Error while saving to fileK:\BuchprojektSpringer\VierteAuflage\Literatur\test7.bib.sav
ERROR BackupManager Error while saving to fileK:\BuchprojektSpringer\VierteAuflage\Literatur\test7.bib.sav
java.nio.file.FileSystemException: K:\BuchprojektSpringer\VierteAuflage\Literatur\test7.bib.sav.bak: Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.

      at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at java.base/sun.nio.fs.WindowsFileCopy.copy(Unknown Source)
      at java.base/sun.nio.fs.WindowsFileSystemProvider.copy(Unknown Source)
      at java.base/java.nio.file.Files.copy(Unknown Source)
      at org.jabref/org.jabref.logic.exporter.AtomicFileOutputStream.close(Unknown Source)
      at java.base/sun.nio.cs.StreamEncoder.implClose(Unknown Source)
      at java.base/sun.nio.cs.StreamEncoder.close(Unknown Source)
      at java.base/java.io.OutputStreamWriter.close(Unknown Source)
      at org.jabref/org.jabref.logic.exporter.BibDatabaseWriter.savePartOfDatabase(Unknown Source)
      at org.jabref/org.jabref.logic.exporter.BibDatabaseWriter.saveDatabase(Unknown Source)
      at org.jabref/org.jabref.logic.autosaveandbackup.BackupManager.performBackup(Unknown Source)
      at java.base/java.util.Optional.ifPresent(Unknown Source)
      at org.jabref/org.jabref.logic.autosaveandbackup.BackupManager.lambda$startBackupTask$2(Unknown Source)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.base/java.lang.Thread.run(Unknown Source)
java.nio.file.AccessDeniedException: K:\BuchprojektSpringer\VierteAuflage\Literatur\test7.bib.sav.tmp -> K:\BuchprojektSpringer\VierteAuflage\Literatur\test7.bib.sav
      at java.base/sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      at java.base/sun.nio.fs.WindowsFileCopy.move(Unknown Source)
      at java.base/sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
      at java.base/java.nio.file.Files.move(Unknown Source)
      at org.jabref/org.jabref.logic.exporter.AtomicFileOutputStream.close(Unknown Source)
      at java.base/sun.nio.cs.StreamEncoder.implClose(Unknown Source)
      at java.base/sun.nio.cs.StreamEncoder.close(Unknown Source)
      at java.base/java.io.OutputStreamWriter.close(Unknown Source)
      at org.jabref/org.jabref.logic.exporter.BibDatabaseWriter.savePartOfDatabase(Unknown Source)
      at org.jabref/org.jabref.logic.exporter.BibDatabaseWriter.saveDatabase(Unknown Source)
      at org.jabref/org.jabref.logic.autosaveandbackup.BackupManager.performBackup(Unknown Source)
      at java.base/java.util.Optional.ifPresent(Unknown Source)
      at org.jabref/org.jabref.logic.autosaveandbackup.BackupManager.lambda$startBackupTask$2(Unknown Source)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.base/java.lang.Thread.run(Unknown Source)

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: external-filesstatus: staleIssues marked by a bot as "stale". All issues need to be investigated manually.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions