A customer of ours complains that, sporadically, calls of ours to FileChannel.map fail with a ClosedByInterruptException. The Javadoc does not list
FileChannel.map
ClosedByInterruptException
Channel operations are bound to the thread doing the operations. If this thread is interrupted, the stream / channel is closed due to IO safety issues.
The last comment contains the answer. There was a thread pool in use, and at shutdown interrupts were delivered.