I have a large application that started receiving
MissingResourceException: Can't find bundle for base name sun.text.resources.FormatData, locale en_US
The error comes from my code at
java.text.DecimalFormatSymbols.getInstance(Locale.US);
This code works until something unclear happens and we start getting this exception on every call, Here and on other places that loads resources.
resetting the application solves the issue for awhile until in happens so it's not a class path issue
The application is fairly extensive and uses among other things sandbox https://sourceforge.net/projects/javasandboxlibrary/ and javax.tools.JavaCompiler to compile code from the user and run in a safe settings, currently the system is still in development so its not some hacking attempt but we have no idea what it can be
while the system is running numerous java processes are starting and closing on the same java installation, maybe that could cause some issue?
any suggestion could be helpful
This is the full stack trace
java.util.MissingResourceException: Can't find bundle for base name sun.text.resources.FormatData, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at sun.util.resources.LocaleData$1.run(Unknown Source)
at sun.util.resources.LocaleData$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.util.resources.LocaleData.getBundle(Unknown Source)
at sun.util.resources.LocaleData.getNumberFormatData(Unknown Source)
at sun.util.locale.provider.LocaleResources.getDecimalFormatSymbolsData(Unknown Source)
at java.text.DecimalFormatSymbols.initialize(Unknown Source)
at java.text.DecimalFormatSymbols.<init>(Unknown Source)
at sun.util.locale.provider.DecimalFormatSymbolsProviderImpl.getInstance(Unknown Source)
at java.text.DecimalFormatSymbols.getInstance(Unknown Source)
at queryBuilder.utils.LanguageSymbolsAppender.setLanguageSymbols(LanguageSymbolsAppender.java:16)
LanguageSymbolsAppender.setLanguageSymbols is my code that has
DecimalFormatSymbols.getInstance(locale)