2 Replies Latest reply on Sep 6, 2008 7:47 AM by alanb

    sun.nio.ch.FileChannelImpl.lock0 problem with NFS v3 locking issue

      I am trying to run a java command against a program which resides on NFS.
      The NFS setup is NFSv3, and the client is Red Hat Enterprise Linux 4 Update 5.

      I am seeing the following problem with locks and java jdk 1.5:

      [javauser@server1 test]$ /nfs/common/bea10MP1/jrockit/bin/java TestLockFile /nfs/apps/AdminServer.lok
      Exception in thread "Main Thread" java.io.IOException: No locks available
           at sun.nio.ch.FileChannelImpl.lock0(Native Method)
           at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:822)
           at java.nio.channels.FileChannel.tryLock(FileChannel.java:967)
           at TestLockFile.main(TestLockFile.java:11)

      Has anyone seen this?
      I tried this with jdk1.5.0_14