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

sun/security/tools/jarsigner/AltProvider.java failed on de-DE locale

XMLWordPrintable

    • b20
    • generic
    • generic

        Build: JDK 10 build 36
        OS: Ubuntu 17.04
        Locale: de-DE

        Error Message:
        ----------System.err:(37/2307)----------
         stdout: [Command line args: [-keystore, x.jks, -storepass, changeit, -storetype, dummyks, -list, -debug, -providerClass, org.test.dummy.Dummy, -providerArg, full]
        Keytool-Fehler: java.lang.Exception: Provider "org.test.dummy.Dummy" nicht gefunden
        ];
         stderr: [Exception in thread "main" java.lang.Exception: Provider "org.test.dummy.Dummy" nicht gefunden
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:813)
        at java.base/sun.security.tools.keytool.Main.run(Main.java:397)
        at java.base/sun.security.tools.keytool.Main.main(Main.java:390)
        Caused by: java.lang.ClassNotFoundException: org.test.dummy.Dummy
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:190)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:374)
        at java.base/sun.security.tools.KeyStoreUtil.loadProviderByClass(KeyStoreUtil.java:319)
        at java.base/sun.security.tools.keytool.Main.doCommands(Main.java:803)
        ... 2 more
        ]
         exitValue = 1

        java.lang.RuntimeException: 'Provider "org.test.dummy.Dummy" not found' missing from stdout/stderr

        at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:135)
        at AltProvider.testKeytool(AltProvider.java:147)
        at AltProvider.testBoth(AltProvider.java:138)
        at AltProvider.main(AltProvider.java:95)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
        at java.base/java.lang.Thread.run(Thread.java:844)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: 'Provider "org.test.dummy.Dummy" not found' missing from stdout/stderr

        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: 'Provider "org.test.dummy.Dummy" not found' missing from stdout/stderr

        This test passed on en-US locale, the root cause is:
        On de-DE locale, error message was translated to German:
        En: keytool error: java.lang.Exception: Provider "org.test.dummy.Dummy" not found
        De: Keytool-Fehler: java.lang.Exception: Provider "org.test.dummy.Dummy" nicht gefunden

              dzhou Dora Zhou (Inactive)
              dzhou Dora Zhou (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: