Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8317128

java/nio/file/Files/CopyAndMove.java failed with AccessDeniedException

    XMLWordPrintable

Details

    • b19
    • x86_64
    • windows

    Backports

      Description

        The following test failed in the JDK22 CI:

        java/nio/file/Files/CopyAndMove.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(6/235)----------
        command: main CopyAndMove
        reason: User specified action: run main/othervm CopyAndMove
        started: Wed Sep 27 07:47:57 UTC 2023
        Mode: othervm [/othervm specified]
        finished: Wed Sep 27 07:48:00 UTC 2023
        elapsed time (seconds): 2.939
        ----------configuration:(0/0)----------
        ----------System.out:(1/48)----------
        Seed from RandomFactory = 5732842295462496703L
        ----------System.err:(27/2299)*----------
        dir1: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038 (NTFS)
        dir2: .\\name7465159200941705506 (NTFS)
        dir3: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038 (NTFS)
        java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:234)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
        at PassThroughFileSystem$PassThroughProvider.newByteChannel(PassThroughFileSystem.java:323)
        at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:482)
        at java.base/java.nio.file.Files.newOutputStream(Files.java:227)
        at java.base/java.nio.file.Files.copy(Files.java:3145)
        at java.base/java.nio.file.CopyMoveHelper.copyToForeignTarget(CopyMoveHelper.java:147)
        at java.base/java.nio.file.Files.copy(Files.java:1307)
        at CopyAndMove.copyAndVerify(CopyAndMove.java:663)
        at CopyAndMove.testCopyFileToFile(CopyAndMove.java:755)
        at CopyAndMove.main(CopyAndMove.java:104)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1570)

        JavaTest Message: Test threw exception: java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.nio.file.AccessDeniedException: c:\\sb\\prod\\1695800281\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\name14645804210945068038\\target1760060153
        ----------rerun:(41/6362)*----------

        Attachments

          Issue Links

            Activity

              People

                bpb Brian Burkhalter
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: