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

test/closed/java/net/URLClassLoader/Gifar.java fails intermittently on Windows

XMLWordPrintable

    • b98
    • windows_2008
    • Verified

        #Test Results (version 2)
        #Wed Jun 19 18:54:01 PDT 2013
        #checksum:5ba058e8337a64ab
        #-----testdescription-----
        $file=C\:\\Users\\aurora\\sandbox\\testbase\\test\\closed\\java\\net\\URLClassLoader\\Gifar.java
        $root=C\:\\Users\\aurora\\sandbox\\testbase\\test
        author=chegar
        keywords=bug8008593 bug8012156 closed-security othervm
        run=USER_SPECIFIED main/othervm Gifar\r\nUSER_SPECIFIED main/othervm -Dsun.misc.URLClassPath.disableJarChecking Gifar\r\n
        source=Gifar.java
        title=Ensure resources and classes fail to be loaded, through URLClassLoader, for jar files that do not start with the ZIP LOC header.

        #-----environment-----

        #-----testresult-----
        description=file\:/C\:/Users/aurora/sandbox/testbase/test/closed/java/net/URLClassLoader/Gifar.java
        elapsed=6046 0\:00\:06.046
        end=Wed Jun 19 18\:54\:01 PDT 2013
        environment=regtest
        execStatus=Failed. Execution failed\: `main' threw exception\: java.nio.file.FileSystemException\: C\:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\Gifar.jar\: The process cannot access the file because it is being used by another process.
        hostname=jsn-vm47
        javatestOS=Windows Server 2008 6.0 (amd64)
        javatestVersion=4.4
        jtregVersion=jtreg 4.1 fcs b06
        script=com.sun.javatest.regtest.RegressionScript
        sections=script_messages build compile main build main
        start=Wed Jun 19 18\:53\:55 PDT 2013
        test=closed/java/net/URLClassLoader/Gifar.java
        user.name=aurora
        work=C\:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\closed\\java\\net\\URLClassLoader

        #section:script_messages
        ----------messages:(5/230)*----------
        JDK under test: (C:\\Users\\aurora\\sandbox\\jdk)
        java version "1.8.0-ea"
        Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h4845-20130619-b95-b00)
        Java HotSpot(TM) 64-Bit Server VM (build 25.0-b37, mixed mode)


        #section:build
        ----------messages:(3/93)----------
        command: build Gifar
        reason: Named class compiled on demand
        elapsed time (seconds): 0.498
        result: Passed. Build successful

        #section:compile
        ----------messages:(3/217)*----------
        command: compile -XDignore.symbol.file=true C:\\Users\\aurora\\sandbox\\testbase\\test\\closed\\java\\net\\URLClassLoader\\Gifar.java
        reason: .class file out of date or does not exist
        elapsed time (seconds): 0.498
        result: Passed. Compilation successful

        #section:main
        ----------messages:(3/108)----------
        command: main Gifar
        reason: User specified action: run main/othervm Gifar
        elapsed time (seconds): 3.707
        ----------System.out:(47/3265)*----------
        disable jar checking property:false
        Running: javac [-d, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\GifarTestClass.java]
        Running: jar [-cf, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\Gifar.jar, -C, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader, GifarTestClass.class, -C, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader, resource.txt]
        Using file URL: file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar
        Using http URL: http://localhost:57052/Gifar/Gifar.jar

        --TEST 1. Sanity. Check without SecurityManager, and good jar
        getResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@3eb5db67
        loadClass, klass: class GifarTestClass
        getResource, url: jar:http://localhost:57052/Gifar/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:http://localhost:57052/Gifar/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@6db7b54c
        loadClass, klass: class GifarTestClass

        --TEST 2. Check with SecurityManager, and good jar
        getResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@2579f3d3
        loadClass, klass: class GifarTestClass
        getResource, url: jar:http://localhost:57052/Gifar/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:http://localhost:57052/Gifar/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@27883b06
        loadClass, klass: class GifarTestClass

        --TEST 3. Check with SecurityManager, bad jar, and prop:false
        getResource, url: null
        getResources, urls.hasMoreElements: false
        findResource, url: null
        findResources, urls.hasMoreElements: false
        getResourceAsStream, in: null
        getResource, url: null
        getResources, urls.hasMoreElements: false
        findResource, url: null
        findResources, urls.hasMoreElements: false
        getResourceAsStream, in: null

        --TEST 4. Check that URLC does not leave an open handle
        ----------System.err:(1/16)----------
        STATUS:Passed.
        result: Passed. Execution successful

        #section:build
        ----------messages:(3/91)----------
        command: build Gifar
        reason: Named class compiled on demand
        elapsed time (seconds): 0.0
        result: Passed. All files up to date

        #section:main
        ----------messages:(3/194)----------
        command: main -Dsun.misc.URLClassPath.disableJarChecking Gifar
        reason: User specified action: run main/othervm -Dsun.misc.URLClassPath.disableJarChecking Gifar
        elapsed time (seconds): 1.839
        ----------System.out:(49/3825)*----------
        disable jar checking property:true
        Running: javac [-d, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\GifarTestClass.java]
        Running: jar [-cf, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\Gifar.jar, -C, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader, GifarTestClass.class, -C, C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader, resource.txt]
        Using file URL: file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar
        Using http URL: http://localhost:57056/Gifar/Gifar.jar

        --TEST 1. Sanity. Check without SecurityManager, and good jar
        getResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@3eb5db67
        loadClass, klass: class GifarTestClass
        getResource, url: jar:http://localhost:57056/Gifar/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:http://localhost:57056/Gifar/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@6db7b54c
        loadClass, klass: class GifarTestClass

        --TEST 2. Check with SecurityManager, and good jar
        getResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@2579f3d3
        loadClass, klass: class GifarTestClass
        getResource, url: jar:http://localhost:57056/Gifar/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:http://localhost:57056/Gifar/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@27883b06
        loadClass, klass: class GifarTestClass

        --TEST 3. Check with SecurityManager, bad jar, and prop:true
        getResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:file:/C:/Users/aurora/sandbox/gresults/testoutput/jdk_net/JTwork/classes/closed/java/net/URLClassLoader/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@4e3cb3e0
        loadClass, klass: class GifarTestClass
        getResource, url: jar:http://localhost:57056/Gifar/Gifar.jar!/resource.txt
        getResources, urls.hasMoreElements: true
        findResource, url: jar:http://localhost:57056/Gifar/Gifar.jar!/resource.txt
        findResources, urls.hasMoreElements: true
        getResourceAsStream, in: sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@16184bff
        loadClass, klass: class GifarTestClass

        --TEST 4. Check that URLC does not leave an open handle
        ----------System.err:(22/1781)*----------
        java.nio.file.FileSystemException: C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\Gifar.jar: 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.delete(AbstractFileSystemProvider.java:103)
        at java.nio.file.Files.delete(Files.java:1086)
        at Gifar.run(Gifar.java:93)
        at Gifar.main(Gifar.java:54)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:491)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:724)

        JavaTest Message: Test threw exception: java.nio.file.FileSystemException: C:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\Gifar.jar: 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:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_net\\JTwork\\classes\\closed\\java\\net\\URLClassLoader\\Gifar.jar: The process cannot access the file because it is being used by another process.
        result: Failed. Execution failed: `main' threw exception: java.nio.file.FileSystemException: C:\Users\aurora\sandbox\gresults\testoutput\jdk_net\JTwork\classes\closed\java\net\URLClassLoader\Gifar.jar: The process cannot access the file because it is being used by another process.


        test result: Failed. Execution failed: `main' threw exception: java.nio.file.FileSystemException:

              chegar Chris Hegarty
              chegar Chris Hegarty
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: