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

Failure in sun/security/tools/keytool/WeakAlg.java - ks: The process cannot access the file because it is being used by another process

    XMLWordPrintable

Details

    • b01
    • windows

    Description

      Test sun/security/tools/keytool/WeakAlg.java occasionally fails on Windows 64 bit (win2016, win11.)

      Error logs contain the following message:

      ---------------------------------------------
      $ rm ks
      ----------System.err:(22/1459)----------
      java.nio.file.FileSystemException: ks: The process cannot access the file because it is being used by another process.

              at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
              at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
              at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
              at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
              at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:108)
              at java.nio.file.Files.deleteIfExists(Files.java:1165)
              at WeakAlg.rm(WeakAlg.java:940)
              at WeakAlg.main(WeakAlg.java:147)
              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:498)
              at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
              at java.lang.Thread.run(Thread.java:750)

      JavaTest Message: Test threw exception: java.nio.file.FileSystemException: ks: 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: ks: The process cannot access the file because it is being used by another process.

      Attachments

        Issue Links

          Activity

            People

              rmarchenko Roman Marchenko
              rmarchenko Roman Marchenko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: