14 Replies Latest reply: Apr 26, 2011 8:28 AM by 856914 RSS

    FileLock.release() FileChannelImpl$SharedFileLockTable.remove() NPE

    843790
      I sometimes get this NPE when calling release() on a FileLock. Anyone know what could cause this? It shouldn't be a threading bug, as FileLock is supposed to be thread-safe.

      java.lang.NullPointerException
      java.lang.NullPointerException
      at sun.nio.ch.FileChannelImpl$SharedFileLockTable.remove(FileChannelImpl.java:1103)
      at sun.nio.ch.FileChannelImpl.release(FileChannelImpl.java:901)
      at sun.nio.ch.FileLockImpl.release(FileLockImpl.java:38)
      at ...