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

ResourceBundle improper caching causes tools/javadoc tests intermittently

    Details

    • Subcomponent:
    • Resolved In Build:
      b149
    • Verification:
      Verified

      Description

      tools/javadoc/CheckResourceKeys.java
      tools/javadoc/MethodLinks.java
      tools/javadoc/ReleaseOption.java
      tools/javadoc/XWerror.java

      The above tests faile due to they cannot find the requested resource bundle, like the below,
      ----------System.err:(56/4254)----------
      java.lang.InternalError: Cannot find requested resource bundle for locale en_US
      at jdk.compiler/com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:128)
      at jdk.compiler/com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:147)
      at jdk.javadoc/com.sun.tools.javadoc.main.Messager.getText(Messager.java:149)
      at jdk.javadoc/com.sun.tools.javadoc.main.Messager.notice(Messager.java:272)
      at jdk.javadoc/com.sun.tools.javadoc.main.DocEnv.notice(DocEnv.java:524)
      at jdk.javadoc/com.sun.tools.javadoc.main.JavadocTool.parse(JavadocTool.java:246)
      at jdk.javadoc/com.sun.tools.javadoc.main.JavadocTool.getRootDocImpl(JavadocTool.java:173)
      at jdk.javadoc/com.sun.tools.javadoc.main.Start.parseAndExecute(Start.java:433)
      at jdk.javadoc/com.sun.tools.javadoc.main.Start.begin(Start.java:238)
      at jdk.javadoc/com.sun.tools.javadoc.main.Start.begin(Start.java:224)
      at jdk.javadoc/com.sun.tools.javadoc.Main.execute(Main.java:151)
      at MethodLinks.main(MethodLinks.java:40)
      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:538)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.util.MissingResourceException: Can't find bundle for base name com.sun.tools.javadoc.resources.javadoc, locale en_US
      at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2085)
      at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1732)
      at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1622)
      at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1597)
      at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1006)
      at jdk.javadoc/com.sun.tools.javadoc.main.Messager.lambda$new$0(Messager.java:131)
      at jdk.compiler/com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:125)
      ... 17 more
      java.lang.InternalError: Cannot find requested resource bundle for locale en_US
      at jdk.compiler/com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:128)
      at jdk.compiler/com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:147)
      at jdk.javadoc/com.sun.tools.javadoc.main.Messager.getText(Messager.java:149)
      at jdk.javadoc/com.sun.tools.javadoc.main.Messager.error(Messager.java:254)
      at jdk.javadoc/com.sun.tools.javadoc.main.Start.begin(Start.java:249)
      at jdk.javadoc/com.sun.tools.javadoc.main.Start.begin(Start.java:224)
      at jdk.javadoc/com.sun.tools.javadoc.Main.execute(Main.java:151)
      at MethodLinks.main(MethodLinks.java:40)
      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:538)
      at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:230)
      at java.base/java.lang.Thread.run(Thread.java:844)
      Caused by: java.util.MissingResourceException: Can't find bundle for base name com.sun.tools.javadoc.resources.javadoc, locale en_US
      at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2085)
      at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1732)
      at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1622)
      at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1597)
      at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1006)
      at jdk.javadoc/com.sun.tools.javadoc.main.Messager.lambda$new$0(Messager.java:131)
      at jdk.compiler/com.sun.tools.javac.util.JavacMessages.getBundles(JavacMessages.java:125)
      ... 13 more

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

      result: Failed. Execution failed: `main' threw exception: java.lang.InternalError: Cannot find requested resource bundle for locale en_US


      test result: Failed. Execution failed: `main' threw exception: java.lang.InternalError: Cannot find requested resource bundle for locale en_US

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                jjiang John Jiang
              • Votes:
                0 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: