VASL Log File error

dwardzala

Va Tech Hokie
Joined
Apr 20, 2004
Messages
598
Reaction score
70
Location
Detroit/Ann Arbor Ar
Country
llUnited States
Gotten this "Unable to Write File Error" when trying to end a log file twice in two different games. I am using 6.6.1 and my opponent was using 6.6.0 (I think that was the same combo before too, but not sure).

First time I was able to get a logfile to write after re-running the log. This time, it didn't work.
Update 2 - closing VASL and re-opening got it to write a test log.

Here are the details:
java.nio.file.NoSuchFileException: C:\Users\DAVEWA~1\AppData\Local\Temp\vassal_13530387308693693249\savedGame_2704045502845651971
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235)
at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
at java.base/java.nio.file.Files.createFile(Files.java:652)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:137)
at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:160)
at java.base/java.nio.file.Files.createTempFile(Files.java:872)
at VASSAL.tools.io.ZipArchive.makeTempFileFor(ZipArchive.java:409)
at VASSAL.tools.io.ZipArchive.getOutputStream(ZipArchive.java:268)
at VASSAL.tools.io.ZipArchive.getOutputStream(ZipArchive.java:240)
at VASSAL.tools.io.ZipArchive.add(ZipArchive.java:312)
at VASSAL.build.module.BasicLogger.write(BasicLogger.java:326)
at VASSAL.build.module.BasicLogger$1.actionPerformed(BasicLogger.java:484)
at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1012)
at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1056)
at java.desktop/java.awt.Component.processMouseEvent(Component.java:6614)
at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
at java.desktop/java.awt.Component.processEvent(Component.java:6379)
at java.desktop/java.awt.Container.processEvent(Container.java:2263)
at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4990)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4919)
at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4548)
at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4489)
at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2769)
at java.desktop/java.awt.Component.dispatchEvent(Component.java:4822)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Suppressed: java.nio.file.NoSuchFileException: C:\Users\DAVEWA~1\AppData\Local\Temp\vassal_13530387308693693249\AP106 Log 04_400005232112056251.vlog
at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235)
at java.base/java.nio.file.Files.newByteChannel(Files.java:375)
at java.base/java.nio.file.Files.createFile(Files.java:652)
at java.base/java.nio.file.TempFileHelper.create(TempFileHelper.java:137)
at java.base/java.nio.file.TempFileHelper.createTempFile(TempFileHelper.java:160)
at java.base/java.nio.file.Files.createTempFile(Files.java:872)
at VASSAL.tools.io.ZipArchive.makeTempFileFor(ZipArchive.java:409)
at VASSAL.tools.io.ZipArchive.writeToDisk(ZipArchive.java:464)
at VASSAL.tools.io.ZipArchive.close(ZipArchive.java:386)
at VASSAL.build.module.BasicLogger.write(BasicLogger.java:325)
... 38 more
 
Last edited:

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
718
Reaction score
442
Location
Durham
Country
llUnited Kingdom
NoSuchFileException is a strange exception to throw when attempting to create a temp file, as the temp file is not supposed to exist yet. My guess is that this is a permissions problem with a misleading error message coming back from the system.

I recommend trying VASSAL 3.4.7 when it's released later today. The fix it contains for Bug 13546 switches VASSAL to using the system temp directory instead of its own, so that may let you avoid the problem you're seeing.
 

uckelman

Senior Member
Joined
Sep 12, 2011
Messages
718
Reaction score
442
Location
Durham
Country
llUnited Kingdom
Is this problem still happening with VASSAL 3.5.8?
 
Top