18 May 20:22
InternationalizedException doesn't look for resources in extension ClassLoader
Hi all,
Summary:
org.apache.uima.InternationalizedException's getLocalizedMessage
doesn't account for the use of an "extension" class path when loading
message resources. For applications that use extension class paths, the
resource is therefore not found.
Details:
I'm getting an exception when trying to create an
AnalysisEngineProcessException:
org.apache.uima.analysis_engine.AnalysisEngineProcessException:
EXCEPTION MESSAGE LOCALIZATION FAILED:
java.util.MissingResourceException: Can't find bundle for base
name TestAnnotatorRB, locale en_US
The code that generates this message is in InternationalizedException's
getLocalizedMethod:
public String getLocalizedMessage(Locale aLocale) {
// check for null message
if (getMessageKey() == null)
return null;
try {
// locate the resource bundle for this exception's messages
ResourceBundle bundle =
(Continue reading)
--Thilo
RSS Feed