You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2019/02/04 16:36:00 UTC

[jira] [Commented] (UIMA-5961) InternationalizedException getLocalizedMessage fails in pear

    [ https://issues.apache.org/jira/browse/UIMA-5961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759995#comment-16759995 ] 

Marshall Schor commented on UIMA-5961:
--------------------------------------

My suggestion above is probably not right.   The climbing class loader would naturally find some class in the call chain that was in the PEAR bundle (if the error occurred in some class loaded from the PEAR), and from there, would make use of that class's classloader, which whould include the the PEAR's classpath.

In your use case, was the message bundle you were hoping to use, in the PEAR's classloader?  Could you please post a stack trace, to debug this further?

> 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: 3.0.2SDK, 2.10.4SDK
>
>         Attachments: UIMA-5961.diff
>
>
> 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)