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

[TESTBUG] javax/security/auth/Subject/doAs/NestedActions.java fails if extra VM options are given

    Details

      Backports

        Description

        javax/security/auth/Subject/doAs/NestedActions.java fails if run with extra VM flags:

        ----------System.out:(5/618)*----------
        Command line: [C:\\local\\aurora\\CommonData\\jdk\\bin\\java -classpath NestedActionsACE.jar;WriteToFileNegativeAction.jar;ReadFromFileNegativeAction.jar;ReadPropertyNegativeAction.jar; -Xcomp -Xcomp -client -XX:+UseG1GC -XX:+CreateMinidumpOnCrash -Djava.security.manager -Djava.security.policy=C:\\local\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\javax\\security\\auth\\Subject\\doAs\\policy.expect.ace NestedActionsACE]
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        Unrecognized option: -Xcomp -Xcomp -client -XX:+UseG1GC -XX:+CreateMinidumpOnCrash

        ----------System.err:(28/1376)----------
         stdout: [];
         stderr: [Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        Unrecognized option: -Xcomp -Xcomp -client -XX:+UseG1GC -XX:+CreateMinidumpOnCrash
        ]
         exitValue = 1

        java.lang.RuntimeException: java.lang.RuntimeException: Expected to get exit value of [0]

        at NestedActions.runJava(NestedActions.java:156)
        at NestedActions.main(NestedActions.java:111)
        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:502)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
        at java.lang.Thread.run(Thread.java:745)
        Caused by: java.lang.RuntimeException: Expected to get exit value of [0]

        at jdk.testlibrary.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:353)
        at NestedActions.runJava(NestedActions.java:154)
        ... 7 more

        JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Expected to get exit value of [0]

        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Expected to get exit value of [0]

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asmotrak Artem Smotrakov
                  Reporter:
                  dfazunen Dmitry Fazunenko (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: