[
https://issues.apache.org/jira/browse/UIMA-5961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866018#comment-16866018
]
Marshall Schor commented on UIMA-5961:
--------------------------------------
I looked at the pear, and see it has the bit of code that throws an exception
with a resource key name of "INIT_KEY".
ResourceInitializationException has several constructors. The one used in this
code is the one that uses the message digest
"org.apache.uima.UIMAException_Messages" (the so-called
standard-message-catelog).
Did you mean to use one where you specified a particular message catalog, say,
for example the one in the Jar named pear_de.properties?
See the docs for this here:
[http://uima.apache.org/d/uimaj-current/tutorials_and_users_guides.html#ugr.tug.aae.throwing_exceptions_from_annotators]
> InternationalizedException getLocalizedMessage fails in pear
> ------------------------------------------------------------
>
> Key: UIMA-5961
> URL: https://issues.apache.org/jira/browse/UIMA-5961
> Project: UIMA
> Issue Type: Bug
> Affects Versions: 2.10.3SDK
> Reporter: Matthias Koch
> Assignee: Marshall Schor
> Priority: Major
> Fix For: 2.10.4SDK
>
> Attachments: UIMA-5961.diff, pearWithInterWithKeyHappy.pear,
> stackTrace.txt
>
>
> localized message does not work in the case of pears. The classloader stored
> in the internationalizedException is wrong. The bundle cant be found in this
> classloader.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)