JDK-8056285 : java/util/logging/CheckLockLocationTest.java java.lang.RuntimeException: Test failed: should have been able to create FileHandler for %t/writable-dir/log.log in writable directory.
  • Type: Bug
  • Component: core-libs
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-08-28
  • Updated: 2016-08-03
  • Resolved: 2016-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b127Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
    Host: scaaa526, Oracle Linux 6.3 (2.6.39-300.20.1.el6uek.x86_64)
    Options: -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateMinidumpOnCrash -XX:+IgnoreUnrecognizedVMOptions -XX:-UseCompressedOops -XX:ReservedCodeCacheSize=256M

----------System.err:(26/1852)----------
WARNING: unable to delete/cleanup writable test directory: /tmp/writable-dir
java.lang.RuntimeException: Test failed: should have been able to create FileHandler for %t/writable-dir/log.log in writable directory.
    at CheckLockLocationTest.runTests(CheckLockLocationTest.java:79)
    at CheckLockLocationTest.main(CheckLockLocationTest.java:64)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:484)
    at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.nio.file.NoSuchFileException: /tmp/writable-dir/log.log.lck
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
    at java.nio.channels.FileChannel.open(FileChannel.java:287)
    at java.nio.channels.FileChannel.open(FileChannel.java:335)
    at java.util.logging.FileHandler.openFiles(FileHandler.java:451)
    at java.util.logging.FileHandler.<init>(FileHandler.java:292)
    at CheckLockLocationTest.runTests(CheckLockLocationTest.java:77)
    ... 7 more

Comments
Ok, I guess the best I can do is to add some more traces to figure out why we get an AccessDeniedException. We should not.
28-06-2016

The problem showed up again.
28-06-2016

This looks like a problem that should be fixed by of JDK-8052403. It looks as if the writable-dir has been deleted by something else while the test was running. Does your repo have JDK-8052403? If it doesn't - I suggest closing this as a dup of JDK-8052403.
29-08-2014