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

Both testcases testLoadClassFromLazyBlackListJar and testLoadClassFromLazyBlackListJar_NoCache caused an error

XMLWordPrintable

    • b06

        This is the error when run from the command line with:

        [16:12:39] johnny:/Volumes/data/projects/java/jdk/jdk8/sandbox/deploy $ ant -f make/netbeans/nbproject/ide-file-targets.xml -Drun.class=com.sun.jnlp.JNLPClassLoaderTest test-selected

            [junit] Testcase: com.sun.jnlp.JNLPClassLoaderTest:testLoadClassFromLazyBlackListJar: Caused an ERROR
            [junit] Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.
            [junit] junit.framework.AssertionFailedError: Forked Java VM exited abnormally. Please note the time in the report does not reflect the time until the VM exit.

        The following are the errors with work-in-progress modification to JNLPClassLoaderTest.java by adding:

            SecurityHelpers.grantRunPermission();

        to the setUp() method:

            [junit] Testcase: testLoadClassFromLazyBlackListJar(com.sun.jnlp.JNLPClassLoaderTest): Caused an ERROR
            [junit] The application component http://localhost:8135/main.jar was blocked due to a request by the vendor. Please contact the application vendor for more information.
            [junit] com.sun.deploy.net.JARSigningException: The application component http://localhost:8135/main.jar was blocked due to a request by the vendor. Please contact the application vendor for more information.
            [junit] at com.sun.deploy.security.EnhancedJarVerifier.validate(EnhancedJarVerifier.java:67)
            [junit] at com.sun.deploy.cache.CacheEntry.processJar(CacheEntry.java:2278)
            [junit] at com.sun.deploy.cache.CacheEntry.access$2200(CacheEntry.java:141)
            [junit] at com.sun.deploy.cache.CacheEntry$10.run(CacheEntry.java:1598)
            [junit] at java.security.AccessController.doPrivileged(Native Method)
            [junit] at com.sun.deploy.cache.CacheEntry.writeFileToDisk(CacheEntry.java:1538)
            [junit] at com.sun.deploy.cache.CacheEntry.writeFileToDisk(CacheEntry.java:1531)
            [junit] at com.sun.deploy.cache.Cache.downloadResourceToTempFile(Cache.java:737)
            [junit] at com.sun.deploy.cache.Cache.downloadResourceToCache(Cache.java:659)
            [junit] at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:827)
            [junit] at com.sun.deploy.net.DownloadEngine.downloadResource(DownloadEngine.java:960)
            [junit] at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:266)
            [junit] at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:220)
            [junit] at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1657)
            [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            [junit] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            [junit] at java.lang.Thread.run(Thread.java:744)
            [junit]
            [junit]
            [junit] Testcase: testLoadClassFromLazyBlackListJar_NoCache(com.sun.jnlp.JNLPClassLoaderTest): Caused an ERROR
            [junit] The application component http://localhost:8135/main.jar was blocked due to a request by the vendor. Please contact the application vendor for more information.
            [junit] com.sun.deploy.net.JARSigningException: The application component http://localhost:8135/main.jar was blocked due to a request by the vendor. Please contact the application vendor for more information.
            [junit] at com.sun.deploy.security.EnhancedJarVerifier.validate(EnhancedJarVerifier.java:67)
            [junit] at com.sun.deploy.security.JarVerifier.getValidatedJarFile(JarVerifier.java:351)
            [junit] at com.sun.deploy.net.DownloadEngine.createTemporaryResource(DownloadEngine.java:321)
            [junit] at com.sun.deploy.net.DownloadEngine.downloadResourceToTempDir(DownloadEngine.java:301)
            [junit] at com.sun.deploy.net.DownloadEngine.actionDownload(DownloadEngine.java:831)
            [junit] at com.sun.deploy.net.DownloadEngine.downloadResource(DownloadEngine.java:960)
            [junit] at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:266)
            [junit] at com.sun.deploy.cache.ResourceProviderImpl.getResource(ResourceProviderImpl.java:220)
            [junit] at com.sun.javaws.LaunchDownload$DownloadTask.call(LaunchDownload.java:1657)
            [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
            [junit] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
            [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
            [junit] at java.lang.Thread.run(Thread.java:744)

              jchen Johnny Chen (Inactive)
              jchen Johnny Chen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: