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

com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java doesn't run in agentvm mode

XMLWordPrintable

    • b26
    • generic
    • generic

        TESTFAIL:com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java

        This test is on the ProblemList without a bugID. Looks like the issue is that it doesn't run in agentvm mode. It fails on all platforms in JPRT (example output attached).

        --------------------------------------------------
        TEST: com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java
        JDK under test: (/tmp/jprt/P1/171510.albatem/testproduct/solaris_x64_5.10-product)
        java version "1.8.0-internal"
        Java(TM) SE Runtime Environment (build 1.8.0-internal-201202191715.albatem.tl-b00)
        Java HotSpot(TM) 64-Bit Server VM (build 23.0-b15, mixed mode)

        ACTION: compile -- Passed. Compilation successful
        REASON: User specified action: run compile -XDignore.symbol.file ClassLoaderTest.java MyTransform.java
        TIME: 0.017 seconds
        messages:
        command: compile -XDignore.symbol.file /tmp/jprt/P1/171510.albatem/source/jdk/test/com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java /tmp/jprt/P1/171510.albatem/source/jdk/test/com/sun/org/apache/xml/internal/security/transforms/MyTransform.java
        reason: User specified action: run compile -XDignore.symbol.file ClassLoaderTest.java MyTransform.java
        elapsed time (seconds): 0.017
        direct:
        Note: /tmp/jprt/P1/171510.albatem/source/jdk/test/com/sun/org/apache/xml/internal/security/transforms/MyTransform.java uses or overrides a deprecated API.
        Note: Recompile with -Xlint:deprecation for details.
        Note: /tmp/jprt/P1/171510.albatem/source/jdk/test/com/sun/org/apache/xml/internal/security/transforms/ClassLoaderTest.java uses unchecked or unsafe operations.
        Note: Recompile with -Xlint:unchecked for details.

        ACTION: build -- Passed. All files up to date
        REASON: Named class compiled on demand
        TIME: 0.0 seconds
        messages:
        command: build ClassLoaderTest
        reason: Named class compiled on demand
        elapsed time (seconds): 0.0

        ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.ClassNotFoundException: MyTransform
        REASON: User specified action: run main ClassLoaderTest
        TIME: 0.098 seconds
        messages:
        command: main ClassLoaderTest
        reason: User specified action: run main ClassLoaderTest
        elapsed time (seconds): 0.098
        STDERR:
        java.lang.ClassNotFoundException: MyTransform
        at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        at ClassLoaderTest.main(ClassLoaderTest.java:51)
        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:474)
        at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
        at java.lang.Thread.run(Thread.java:722)

        JavaTest Message: Test threw exception: java.lang.ClassNotFoundException
        JavaTest Message: shutting down test


        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.ClassNotFoundException: MyTransform
        --------------------------------------------------

              mullan Sean Mullan
              alanb Alan Bateman
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: