# Unable to write file

**URL:** <https://forum.vassalengine.org/t/unable-to-write-file/6159>\
**Category:** Technical Support & Bugs\
**Created:** [July 25, 2013, 1:44pm UTC](https://forum.vassalengine.org/t/unable-to-write-file/6159 "2013-07-25T13:44:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fewsdfwefr](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/f/eada6e/32.png) [@Fewsdfwefr](https://forum.vassalengine.org/u/Fewsdfwefr)\
**Post date:** [July 25, 2013, 1:44pm UTC](https://forum.vassalengine.org/t/unable-to-write-file/6159/1 "2013-07-25T13:44:39Z")

</div>

- 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

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [July 25, 2013, 2:08pm UTC](https://forum.vassalengine.org/t/unable-to-write-file/6159/2 "2013-07-25T14:08:08Z")

</div>

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](http://www.vassalengine.org/tracker/show_bug.cgi?id=10342)

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

[vassalengine.sourceforge.net/builds/](http://vassalengine.sourceforge.net/builds/)

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

–  
J.

---

<div class="post-metadata">

**Author:** ![Fewsdfwefr](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/f/eada6e/32.png) [@Fewsdfwefr](https://forum.vassalengine.org/u/Fewsdfwefr)\
**Post date:** [July 25, 2013, 4:03pm UTC](https://forum.vassalengine.org/t/unable-to-write-file/6159/3 "2013-07-25T16:03:13Z")

</div>

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