Hi,

I tried to look at it with http://file-leak-detector.kohsuke.org/,
which sometimes shows missing close() of files nicely. However it
unfortunately does not yet support java.nio, so it's use here is
likely limited.

Anyway I added a few missing close() to the tests, but nothing severe
in the code itself showed up, so I don't think these changes will
impact your problem here much.

Dominik.

On Sun, May 4, 2014 at 3:32 AM, kiwiwings <[email protected]> wrote:
> Hi Nick,
>
> I'm having problems with
> org.apache.poi.hpsf.basic.TestWrite.inPlaceNPOIFSWrite() on Win7 -
> it will throw an "The requested operation cannot be performed on a file with
> a user-mapped section open" error.
> Although I have already changed the FileBackedDataSource to not only close
> the FileChannel,
> but actually keep a reference for the RandomAccessFile and close it instead
> (if the DataSource was opened with a file name), I keep getting the above
> error. [1]
> This happens with JDK6 and JDK7 and the files are stored in my windows user
> directory.
> I've checked the FileDescriptor.incrementAndGetUseCount() counter and it
> looks fine, i.e. it's 0 when it gets overwritten again. It's also not
> possible to delete the file before the next overwriting call.
>
> Maybe you have an idea, what to check for next?
>
> Best wishes,
> Andi
>
> [1] http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4796385
>
>
>
> --
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/NPOIFS-write-support-please-test-tp5715528p5715575.html
> Sent from the POI - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to