Skip to content

Saving throws exception #634

@koppor

Description

@koppor

I just had the dialog

grafik

Then following exceptions

2022-11-01 19:41:18 [pool-7-thread-1] org.jabref.logic.exporter.AtomicFileOutputStream.close()                                             
WARN: Could not create backup file C:\TEMP\test-541.bib.sav                                                                                
2022-11-01 19:41:18 [pool-7-thread-1] org.jabref.logic.exporter.AtomicFileOutputStream.close()                                             
WARN: Could not move temporary file: java.nio.file.AccessDeniedException: C:\TEMP\test-541.bib.tmp -> C:\TEMP\test-541.bib                 
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)                                          
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)                                           
        at java.base/sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:317)                                                             
        at java.base/sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:293)                                         
        at java.base/java.nio.file.Files.move(Files.java:1432)                                                                             
        at [email protected]/org.jabref.logic.exporter.AtomicFileOutputStream.close(AtomicFileOutputStream.java:225)                      
        at java.base/sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:347)                                                            
        at java.base/sun.nio.cs.StreamEncoder.close(StreamEncoder.java:169)                                                                
        at java.base/java.io.OutputStreamWriter.close(OutputStreamWriter.java:254)                                                         
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.saveDatabase(SaveDatabaseAction.java:254)                         
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:213)                                 
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:187)                                 
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:78)                                  
        at [email protected]/org.jabref.gui.dialogs.AutosaveUiManager.listen(AutosaveUiManager.java:28)                                   
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)                                                                      
        at [email protected]/com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)                     
        at [email protected]/com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:1
42)                                                                                                                                        
        at [email protected]/com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)                     
        at [email protected]/com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)                     
        at [email protected]/com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:68)                              
        at [email protected]/com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:109)        
        at [email protected]/com.google.common.eventbus.EventBus.post(EventBus.java:267)                                          
        at [email protected]/org.jabref.logic.autosaveandbackup.AutosaveManager.lambda$new$0(AutosaveManager.java:48)                     
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)                                               
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)                                                      
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)        
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)                                       
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)                                       
        at java.base/java.lang.Thread.run(Thread.java:833)                                                                                 
2022-11-01 19:41:18 [pool-7-thread-1] org.jabref.gui.exporter.SaveDatabaseAction.save()                                                    
ERROR: A problem occurred when trying to save the file C:\TEMP\test-541.bib: org.jabref.logic.exporter.SaveException: Problems saving: java
.nio.file.AccessDeniedException: C:\TEMP\test-541.bib.tmp -> C:\TEMP\test-541.bib                                                          
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.saveDatabase(SaveDatabaseAction.java:257)                         
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:213)                                 
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:187)                                 
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:78)                                  
        at [email protected]/org.jabref.gui.dialogs.AutosaveUiManager.listen(AutosaveUiManager.java:28)                                   
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)                                                                      
        at [email protected]/com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)                     
        at [email protected]/com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:1
42)                                                                                                                                        
        at [email protected]/com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)                     
        at [email protected]/com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)                     
        at [email protected]/com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:68)                              
        at [email protected]/com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:109)        
        at [email protected]/com.google.common.eventbus.EventBus.post(EventBus.java:267)                                          
        at [email protected]/org.jabref.logic.autosaveandbackup.AutosaveManager.lambda$new$0(AutosaveManager.java:48)                     
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)                                               
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)                                                      
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)        
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)                                       
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)                                       
        at java.base/java.lang.Thread.run(Thread.java:833)                                                                                 
Caused by: java.nio.file.AccessDeniedException: C:\TEMP\test-541.bib.tmp -> C:\TEMP\test-541.bib                                           
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)                                          
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)                                           
        at java.base/sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:317)                                                             
        at java.base/sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:293)                                         
        at java.base/java.nio.file.Files.move(Files.java:1432)                                                                             
        at [email protected]/org.jabref.logic.exporter.AtomicFileOutputStream.close(AtomicFileOutputStream.java:225)                      
        at java.base/sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:347)                                                            
        at java.base/sun.nio.cs.StreamEncoder.close(StreamEncoder.java:169)                                                                
        at java.base/java.io.OutputStreamWriter.close(OutputStreamWriter.java:254)                                                         
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.saveDatabase(SaveDatabaseAction.java:254)                         
        ... 19 more                                                                                                                        
2022-11-01 19:41:18 [pool-7-thread-1] org.jabref.gui.dialogs.AutosaveUiManager.listen()                                                    
ERROR: Problem occurred while saving.: java.lang.IllegalStateException: Not on FX application thread; currentThread = pool-7-thread-1      
        at javafx.graphics@19/com.sun.javafx.tk.Toolkit.checkFxUserThread(Toolkit.java:299)                                                
        at javafx.graphics@19/com.sun.javafx.tk.quantum.QuantumToolkit.checkFxUserThread(QuantumToolkit.java:458)                          
        at javafx.graphics@19/javafx.stage.Stage.<init>(Stage.java:258)                                                                    
        at javafx.graphics@19/javafx.stage.Stage.<init>(Stage.java:244)                                                                    
        at javafx.controls@19/javafx.scene.control.HeavyweightDialog$1.<init>(HeavyweightDialog.java:52)                                   
        at javafx.controls@19/javafx.scene.control.HeavyweightDialog.<init>(HeavyweightDialog.java:52)                                     
        at javafx.controls@19/javafx.scene.control.Dialog.<init>(Dialog.java:252)                                                          
        at [email protected]/org.controlsfx.dialog.ExceptionDialog.<init>(ExceptionDialog.java:53)                            
        at [email protected]/org.jabref.gui.JabRefDialogService.showErrorDialogAndWait(JabRefDialogService.java:189)                      
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:223)                                 
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:187)                                 
        at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(SaveDatabaseAction.java:78)                                  
        at [email protected]/org.jabref.gui.dialogs.AutosaveUiManager.listen(AutosaveUiManager.java:28)                                   
        at java.base/java.lang.reflect.Method.invoke(Method.java:577)                                                                      
        at [email protected]/com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:85)                     
        at [email protected]/com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:1
42)                                                                                                                                        
        at [email protected]/com.google.common.eventbus.Subscriber.lambda$dispatchEvent$0(Subscriber.java:71)                     
        at [email protected]/com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31)                     
        at [email protected]/com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:68)                              
        at [email protected]/com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:109)        
        at [email protected]/com.google.common.eventbus.EventBus.post(EventBus.java:267)                                          
        at [email protected]/org.jabref.logic.autosaveandbackup.AutosaveManager.lambda$new$0(AutosaveManager.java:48)                     
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)                                               
        at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)                                                      
        at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)        
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)                                       
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)                                       
        at java.base/java.lang.Thread.run(Thread.java:833)                                                                                 
                                                                                                                                           

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions