Unable to write file

  • Model: Acer Travelmate 5360G-B812G50Mnsk
  • Operating System: Windows 7 Ultimate
  • CPU: Intel Celeron B815 1.6 GHz
  • Memory: 8 GB
  • Video Card: NVIDIA GeForce GT 520M
  • Vassal version: 3.2.7
  • Java version: 1.7.0_25 from Oracle Corporation
  • Vassal module name and version: Any.
  • Exactly what steps are required to reproduce your problem: For example: Run Vassal, File → Open Module, let’s say Paths_of_Glory_7.2.1.vmod → Open, the game is loading, enter your name, password, confirm password, Next, Start new game offline, Next, Standard game, Next, Solo, Finish.
    The game looks fine but there is additional window opened:
    Unable to write file
    VASSAL was unable to write the file ‘C:\Users\john\AppData\Roaming\VASSAL\Preferences’.
    Show details:
    (The details):
    java.io.IOException: Unable to overwrite C:\Users\john\AppData\Roaming\VASSAL\Preferences: Data written to C:\Users\john\AppData\Roaming\VASSAL\tmp8638385262425845790.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\john\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

Thus spake Fewsdfwefr:

  • Model: Acer Travelmate 5360G-B812G50Mnsk
  • Operating System: Windows 7 Ultimate
  • CPU: Intel Celeron B815 1.6 GHz
  • Memory: 8 GB
  • Video Card: NVIDIA GeForce GT 520M
  • Vassal version: 3.2.7
  • Java version: 1.7.0_25 from Oracle Corporation
  • Vassal module name and version: Any.
  • Exactly what steps are required to reproduce your problem: For
    example: Run Vassal, File → Open Module, let’s say
    Paths_of_Glory_7.2.1.vmod → Open, the game is loading, enter your name,
    password, confirm password, Next, Start new game offline, Next, Standard
    game, Next, Solo, Finish.
    The game looks fine but there is additional window opened:
    Unable to write file
    VASSAL was unable to write the file
    ‘C:\Users\john\AppData\Roaming\VASSAL\Preferences’.
    Show details:
    (The details):
    java.io.IOException: Unable to overwrite
    C:\Users\john\AppData\Roaming\VASSAL\Preferences: Data written to
    C:\Users\john\AppData\Roaming\VASSAL\tmp8638385262425845790.zip instead.

The problem you’re seeing is Bug xxxx in our tracker:

vassalengine.org/tracker/sho … i?id=10342

We believe it’s fixed in the current development build, 3.2.8-svn8790,
available here:

vassalengine.sourceforge.net/builds/

Please try this build and let us know whether it solves the problem for
you.


J.

Yes, the 3.2.8-svn8790 build solved this problem. Thanks!