Closed GoogleCodeExporter closed 9 years ago
Original comment by higaya...@gmail.com
on 3 Nov 2010 at 9:28
Any workaround?
I got the same error:
HTTP ERROR 500
Problem accessing /. Reason:
Can't find bundle for base name application, locale pt_BR
Any workaround?
Thanks
Original comment by danielba...@gmail.com
on 16 Nov 2010 at 1:45
Please define application.properites whose language is yours as a workaround.
Original comment by higaya...@gmail.com
on 16 Nov 2010 at 3:10
Maybe slim3 should choose Locale "en" bundle as fallback, if browser defined
Locale is not available.
Original comment by rsaccon
on 16 Nov 2010 at 12:04
I will fix the problem in such a way.
Original comment by higaya...@gmail.com
on 16 Nov 2010 at 1:08
Original comment by higaya...@gmail.com
on 29 Nov 2010 at 12:42
I updated Slim3 to version 1.0.6, but the application continues crashing when a
user comes with an unexpected Locale.
I still had to create an application.properties file (workaround).
java.util.MissingResourceException: Can't find bundle for base name
application, locale pt_BR
Original comment by danvas...@gmail.com
on 7 Feb 2011 at 3:01
Sorry for the inconvenient.
I cannot reproduce this issue on my environment.
But I fixed the source as follows:
public void setBundle(String bundleName, Locale locale)
throws NullPointerException {
if (bundleName == null) {
throw new NullPointerException("The bundleName parameter is null.");
}
if (locale == null) {
throw new NullPointerException("The locale parameter is null.");
}
try {
bundles.set(ResourceBundle.getBundle(bundleName, locale, Thread
.currentThread()
.getContextClassLoader()));
} catch (MissingResourceException ignore) {
bundles.set(ResourceBundle.getBundle(
bundleName,
Locale.ENGLISH,
Thread.currentThread().getContextClassLoader()));
}
}
Original comment by higaya...@gmail.com
on 7 Feb 2011 at 3:27
I tested with this new code and now its not crashing anymore. Problem solved.
Thanks.
Original comment by danvas...@gmail.com
on 7 Feb 2011 at 10:09
Original issue reported on code.google.com by
det...@gmail.com
on 26 Oct 2010 at 9:26