# Could not save file?

**URL:** <https://discourse.jabref.org/t/could-not-save-file/4056>\
**Category:** Help\
**Created:** [November 4, 2023, 1:29pm UTC](https://discourse.jabref.org/t/could-not-save-file/4056 "2023-11-04T13:29:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyuan6](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/xyuan6/32/1742_2.png) [@xyuan6](https://discourse.jabref.org/u/xyuan6)\
**Post date:** [November 4, 2023, 1:29pm UTC](https://discourse.jabref.org/t/could-not-save-file/4056/1 "2023-11-04T13:29:00Z")

</div>

My lib show that “Could not save file”  
The exception stacktrace was:  
org.jabref.logic.exporter.SaveException: Problems saving: java.nio.file.AccessDeniedException: E:\Research\_sync\research\_nutstore\jabref\notes\notes.bib.sav  
at org.jabref@5.11.60000/org.jabref.gui.exporter.SaveDatabaseAction.saveDatabase(Unknown Source)  
at org.jabref@5.11.60000/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)  
at org.jabref@5.11.60000/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)  
at org.jabref@5.11.60000/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)  
at org.jabref@5.11.60000/org.jabref.gui.exporter.SaveAction.execute(Unknown Source)  
at org.jabref@5.11.60000/org.jabref.gui.actions.JabRefAction.lambda$new$3(Unknown Source)  
at org.jabref.merged.module@5.11.60000/org.controlsfx.control.action.Action.handle(Unknown Source)  
at org.jabref.merged.module@5.11.60000/org.controlsfx.control.action.Action.handle(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.event.Event.fireEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.scene.Node.fireEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.scene.control.Button.fire(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.scene.control.behavior.ButtonBehavior.mouseReleased(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.scene.control.inputmap.InputMap.handle(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.event.Event.fireEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.scene.Scene$MouseHandler.process(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.scene.Scene.processMouseEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(Unknown Source)  
at java.base/java.security.AccessController.doPrivileged(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.glass.ui.View.handleMouseEvent(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.glass.ui.View.notifyMouse(Unknown Source)  
at org.jabref.merged.module@5.11.60000/com.sun.glass.ui.win.WinApplication.\_runLoop(Native Method)  
at org.jabref.merged.module@5.11.60000/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)  
at java.base/java.lang.Thread.run(Unknown Source)  
Caused by: java.nio.file.AccessDeniedException: E:\Research\_sync\research\_nutstore\jabref\notes\notes.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.WindowsException.rethrowAsIOException(Unknown Source)  
at java.base/sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)  
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)  
at java.base/java.nio.file.Files.deleteIfExists(Unknown Source)  
at org.jabref@5.11.60000/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.lockedClose(Unknown Source)  
at java.base/sun.nio.cs.StreamEncoder.close(Unknown Source)  
at java.base/java.io.OutputStreamWriter.close(Unknown Source)  
… 61 more

---

<div class="post-metadata">

**Author:** ![xyuan6](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/xyuan6/32/1742_2.png) [@xyuan6](https://discourse.jabref.org/u/xyuan6)\
**Post date:** [November 4, 2023, 1:50pm UTC](https://discourse.jabref.org/t/could-not-save-file/4056/2 "2023-11-04T13:50:55Z")

</div>

The file was actually saved, the error message just poped up every time

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [November 4, 2023, 3:14pm UTC](https://discourse.jabref.org/t/could-not-save-file/4056/3 "2023-11-04T15:14:31Z")

</div>

Hi,

do you save the file on a network drive/share? Other possibilities is that there could be an anti virus program having access on the file?

---

<div class="post-metadata">

**Author:** ![xyuan6](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/xyuan6/32/1742_2.png) [@xyuan6](https://discourse.jabref.org/u/xyuan6)\
**Post date:** [November 4, 2023, 3:52pm UTC](https://discourse.jabref.org/t/could-not-save-file/4056/4 "2023-11-04T15:52:30Z")

</div>

Thanks, I use a network drive for synchronizing the lib files, but I’ve used jabref on this network drive for years, and I haven’t had this problem with other lib files. I’ve just tried to stop the synchronization of the network drive, but the error message still poped up (error message does not pop up for other lib file in the same folder)

---

<div class="post-metadata">

**Author:** ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)\
**Post date:** [November 4, 2023, 4:52pm UTC](https://discourse.jabref.org/t/could-not-save-file/4056/5 "2023-11-04T16:52:49Z")

</div>

Can you delete the sav file next to it? JabRef now automatically performs backups in your %APPDATA% directory by default

---

<div class="post-metadata">

**Author:** ![xyuan6](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/xyuan6/32/1742_2.png) [@xyuan6](https://discourse.jabref.org/u/xyuan6)\
**Post date:** [November 5, 2023, 1:01am UTC](https://discourse.jabref.org/t/could-not-save-file/4056/6 "2023-11-05T01:01:30Z")

</div>

It works now, thanks a lot!!!
