Problem reading resources on Jigsaw in unnamed modules

Stephen Felts stephen.felts at oracle.com
Sat Oct 22 01:20:56 UTC 2016


It's happening on multiple resources in our build.

Below is the best stack trace.

Note that the only difference between JDK9 (where it works) and Jigsaw (where it fails) on build 140 in java/util/ResourceBundle.java is

 

3170c3168

<                                 URL url = loader.getResource(resourceName);

---

>                                 URL url = getResourceInUnnamedModule(loader, resourceName);

 

 

 

 

Caused by: java.util.MissingResourceException: Can't find bundle for base name resources/gdr/gdr, locale en_US

        at java.base/java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:2013)

        at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1691)

        at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1597)

        at java.base/java.util.ResourceBundle.getBundle(ResourceBundle.java:1318)

        at com.oracle.cie.common.util.ResourceBundleManager$ResourceNamespace.manageBundle(ResourceBundleManager.java:444)

        at com.oracle.cie.common.util.ResourceBundleManager.manageBundle(ResourceBundleManager.java:77)

        at com.oracle.cie.common.util.ResourceBundleManager.manageBundle(ResourceBundleManager.java:91)

        at com.oracle.cie.gdr.common.NLS.<clinit>(NLS.java:23)

        ... 76 more

Caused by: java.util.NoSuchElementException

        at java.base/java.util.LinkedList.removeFirst(LinkedList.java:274)

        at java.base/java.util.LinkedList.pop(LinkedList.java:805)

        at java.base/java.util.ResourceBundle$Control.getResourceInUnnamedModule(ResourceBundle.java:3249)

        at java.base/java.util.ResourceBundle$Control.access$1900(ResourceBundle.java:2489)

        at java.base/java.util.ResourceBundle$Control$1.run(ResourceBundle.java:3168)

        at java.base/java.util.ResourceBundle$Control$1.run(ResourceBundle.java:3166)

        at java.base/java.security.AccessController.doPrivileged(Native Method)

        at java.base/java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:3165)

        at java.base/java.util.ResourceBundle.loadBundle(ResourceBundle.java:1952)

        at java.base/java.util.ResourceBundle.findBundle(ResourceBundle.java:1773)

        at java.base/java.util.ResourceBundle.findBundle(ResourceBundle.java:1724)

        at java.base/java.util.ResourceBundle.findBundle(ResourceBundle.java:1724)

        at java.base/java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1665)

 

 


More information about the jigsaw-dev mailing list