JDK-8161505 : RuntimeException: Test failed: should have been able to create FileHandler for %t/writable-dir/log.log in writable directory.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.logging
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-07-15
  • Updated: 2016-08-03
  • Resolved: 2016-08-03
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
9Resolved
Related Reports
Relates :  
Relates :  
Description
----------System.err:(25/2152)*----------
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 jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:533)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
Caused by: java.nio.file.AccessDeniedException: C:\\cygwin\\tmp\\writable-dir\\log.log.lck
	at sun.nio.fs.WindowsException.translateToIOException(java.base@9-internal/WindowsException.java:89)
	at sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:103)
	at sun.nio.fs.WindowsException.rethrowAsIOException(java.base@9-internal/WindowsException.java:108)
	at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(java.base@9-internal/WindowsFileSystemProvider.java:116)
	at java.nio.channels.FileChannel.open(java.base@9-internal/FileChannel.java:287)
	at java.nio.channels.FileChannel.open(java.base@9-internal/FileChannel.java:335)
	at java.util.logging.FileHandler.openFiles(java.logging@9-internal/FileHandler.java:511)
	at java.util.logging.FileHandler.<init>(java.logging@9-internal/FileHandler.java:307)
	at CheckLockLocationTest.runTests(CheckLockLocationTest.java:77)
Comments
The line numbers, 77, 79 and 64 do not match any executable statement in the test CheckLockLocationTest.java, which leads me to suspect that you're still running with the older version of the test that has not been instrumented yet. In other words it looks as if you don't have the changes from JDK-8056285 yet. Can you please check?
18-07-2016