No subject
Austin Lee
austin7lee at hotmail.com
Sat Jul 21 14:59:25 PDT 2012
Hello, I've been using the ZipFileSystem and ran into this random issue on my laptop.
java.io.IOException: Unable to get effective rights from ACL: Overlapped I/O operation is in progress. at sun.nio.fs.WindowsFileSystemProvider.getEffectiveAccess(WindowsFileSystemProvider.java:344) ~[na:1.7.0_03] at sun.nio.fs.WindowsFileSystemProvider.checkAccess(WindowsFileSystemProvider.java:397) ~[na:1.7.0_03] at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:124) ~[zipfs.jar:1.7.0_03] at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:139) ~[zipfs.jar:1.7.0_03]
For me this issue is hard to reproduce since it seems like it needs to have a series of specific events to occur. I've narrowed it down to these scenarios on my Win7 machine laptop (SSD harddrive).
The issue seems to only occur with when making the laptop go to sleep (ie pushing the sleep button or closing the laptop) either during a read or write through the zipfilesystem.Killing the process and restarting the process does not make the issue go ways. Rerunning the my program will make this exception occur repeatedly.Restarting the laptop will fix the issue until next occurance.I attempted to call win api CancelIOEx with a file handle with overlapped attribute enable in the same process space via JNI but that does seem to have an effect.If the issue appears, leaving the laptop alone for long period of time w/o restart makes the problem go away.The issue is not tied to any one particular jar file, rather its any jar file I attempt to open will cause the exception to appear.
I'm wondering if there are any workaround for this issue either through java or windows api? It seems there may be some issue with the ACL of the current user. I'm not a win api expert but any suggestions where I can detect and recover from this issue would be great.
Austin Lee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20120721/7a8a122f/attachment.html
More information about the nio-discuss
mailing list