Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving throws exception #634

Open
koppor opened this issue Nov 1, 2022 · 0 comments
Open

Saving throws exception #634

koppor opened this issue Nov 1, 2022 · 0 comments

Comments

@koppor
Copy link
Owner

koppor commented Nov 1, 2022

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)                                                                                 
                                                                                                                                           
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant