Bug - Unable to Write File Error Message

All of the sudden, possibly since installing the newest version, I am getting an error box that says -

Unable to Write File
VASSAL was unable to write the file C:\Users\jim.dunnam.DUNNAM\AppData\Roaming\VASSAL\Preferences"

Show details -
java.io.IOException: Unable to overwrite C:\Users\jim.dunnam.DUNNAM\AppData\Roaming\VASSAL\Preferences: Data written to C:\Users\jim.dunnam.DUNNAM\AppData\Roaming\VASSAL\tmp7659264309238797456.zip instead.
at VASSAL.tools.io.ZipArchive.writeToDisk(ZipArchive.java:508)
at VASSAL.tools.io.ZipArchive.flush(ZipArchive.java:382)
at VASSAL.preferences.PrefsEditor.write(PrefsEditor.java:256)
at VASSAL.preferences.Prefs.write(Prefs.java:233)
at VASSAL.preferences.GlobalPrefs.handleValueChange(GlobalPrefs.java:44)
at VASSAL.preferences.Prefs$1.propertyChange(Prefs.java:70)
at java.beans.PropertyChangeSupport.fire(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at VASSAL.configure.Configurer.setValue(Configurer.java:104)
at VASSAL.configure.StringArrayConfigurer.setValue(StringArrayConfigurer.java:201)
at VASSAL.launch.ModuleManagerWindow.updateModuleList(ModuleManagerWindow.java:793)
at VASSAL.launch.ModuleManagerWindow.addModule(ModuleManagerWindow.java:762)
at VASSAL.launch.AbstractLaunchAction$NotifyOpenModuleOkListener$1.run(AbstractLaunchAction.java:719)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.IOException: Unable to delete file: C:\Users\jim.dunnam.DUNNAM\AppData\Roaming\VASSAL\Preferences
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)
at VASSAL.tools.io.ZipArchive.writeToDisk(ZipArchive.java:490)
… 27 more

I get the same error the first time I open and close a module in the new version of VASSAL. It then works fine the second time I open and close the same module.

I’ve found that if I don’t open the module twice before closing VASSAL, the module name doesn’t appear in the Module Library window the next time I open VASSAL.

Thus spake Richz99:

I get the same error the first time I open and close a module in the new
version of VASSAL. It then works fine the second time I open and close
the same module.

We need to see the entire errorLog in order to troubleshoot. What you
posted above isn’t complete.


J.