[TEST] com/sun/net/httpserver/Test9.java fails with java.nio.file.FileSystemException

XMLWordPrintable

    • b23
    • windows

        com/sun/net/httpserver/Test9.java fails with java.nio.file.FileSystemException due to File lock being held by another process

        ----------messages:(8/391)----------
        command: main -Djava.net.preferIPv6Addresses=true Test9
        reason: User specified action: run main/othervm -Djava.net.preferIPv6Addresses=true Test9
        started: Mon Jun 30 16:37:30 UTC 2025
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules jdk.httpserver,java.logging
        Process id: 82992
        finished: Mon Jun 30 16:37:32 UTC 2025
        elapsed time (seconds): 1.903
        ----------configuration:(3/58)----------
        Boot Layer
          add modules: jdk.httpserver java.logging

        ----------System.out:(1/11)----------
        Test9: OK
        ----------System.err:(17/1790)*----------
        java.nio.file.FileSystemException: C:\\sb\\prod\\1751301119\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\5\\com.sun.net.httpserver-Test9-17185654400056668684.tmp: The process cannot access the file because it is being used by another process
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
        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.implDelete(WindowsFileSystemProvider.java:269)
        at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)
        at java.base/java.nio.file.Files.delete(Files.java:1052)
        at Test9.main(Test9.java:126)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:565)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1474)

        JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\sb\\prod\\1751301119\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\5\\com.sun.net.httpserver-Test9-17185654400056668684.tmp: The process cannot access the file because it is being used by another process
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.nio.file.FileSystemException: C:\\sb\\prod\\1751301119\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part3\\scratch\\5\\com.sun.net.httpserver-Test9-17185654400056668684.tmp: The process cannot access the file because it is being used by another process

              Assignee:
              Serhiy Sachkov
              Reporter:
              Mark Sheppard (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: