Berkeley DB Java Edition: IOException "Incorrect function" on Windows 7
By Charles Lamb on Sep 02, 2009
A user has seen an IOException("Incorrect function") while performing an fsync in Windows 7 (as yet, unreleased) using JE 3.3.x. We have good reason to believe that this is a bug, or at least a change in behavior, in Windows 7's IO as the same program does not exhibit this behavior under Windows XP. In fact, we have never seen this exception ("Incorrect function") before.
We know of a workaround for the bug which we can give you if you run into this under Windows 7.
If you do run into this, we'd be grateful if you could give us your test case so that we could try to reproduce it on our own machines.
You can contact us on the OTN forum or via email (charles.lamb @ 0racle.com)