I’m having an issue getting a new install of ContentBox working correctly.
The error is:
An exception occurred while calling the function each.
java.lang.reflect.InaccessibleObjectException: Unable to make public sun.util.ResourceBundleEnumeration(java.util.Set,java.util.Enumeration) accessible: module java.base does not “exports sun.util” to unnamed module @69ed5ea2
The error occurred in /var/www/contentbox/modules/contentbox/modules/contentbox-deps/modules/cborm/modules/cbvalidation/modules/cbi18n/models/i18n.cfc: line 98
…
…
Called from /var/www/contentbox/Application.cfc: line 134
96 :
97 : // are we loading multiple resource bundles? If so, load them up
98 : variables.settings.resourceBundles.each( function( bundleKey, thisBundle ){
99 : variables.resourceService.loadBundle(
100 : rbFile : thisBundle,
Does anyone know what I can do to resolve this error?
I can post the full stack trace if it helps.
The system environment is:
Ubuntu Server 20.04
Coldfusion 2023 (Update 4)
Apache2
Postgresql
CommandBox
I installed ContentBox using CommandBox and the install wizard appears to have completed successfully.
The database is also populated with cb_ related tables.
I’d rather solve the error but if this error is only related to the i18n module, is it possible that I could exclude this module so I can move forward without it?
Sounds like you are on Java 17. You will need to add some exports to your JVM arguments to get Coldbox/Contentbox to work. I would suggest adding all of these here as @bdw429s has done a lot of testing to make sure the opens are there in CommandBox to run Coldbox apps and modules.
Alternately, you could switch to use Java 11 and everything should work normally then.
What version of CommandBox are you on? There should be basic Java 17 support after version 5.9 I think. java.base/sun.util is already one of the modules/packages we open automatically in the latest versions of CommandBox.
Ahh, I didn’t catch that. Well, if they installed Adobe’s CF installer, then it should also have all the necessary opens as well. Ortus worked with Adobe’s engineers and even tested ContentBox prior to their release.
That’s a good point, because they ran the latest versions of Coldbox and ContentBox in their tests for 2023 on Java 17. Which version of Coldbox/CBORM are you running @b_w ?