uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marshall Schor (JIRA)" <uima-...@incubator.apache.org>
Subject [jira] Closed: (UIMA-664) CustomResourceFactory_impl not catching exceptions when calling out to initialize method
Date Mon, 03 Dec 2007 16:40:43 GMT

     [ https://issues.apache.org/jira/browse/UIMA-664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Marshall Schor closed UIMA-664.
-------------------------------

    Resolution: Fixed

> CustomResourceFactory_impl not catching exceptions when calling out to initialize method
> ----------------------------------------------------------------------------------------
>
>                 Key: UIMA-664
>                 URL: https://issues.apache.org/jira/browse/UIMA-664
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Core Java Framework
>            Reporter: Marshall Schor
>            Assignee: Marshall Schor
>            Priority: Minor
>             Fix For: 2.2.1
>
>
> While testing the CDE, found an instance where a custom resource was incorrectly configured
(things were missing that it needed in the class path).  The result of this was a silent failure
to start the CDE editor, although an entry was noted in the Eclipse error log.  This was because
the missing class path caused a NoClassDefFound exception to be thrown, but nobody (except
the top-most Eclipse UI code) caught it.
> I think the right place for putting a try/catch is around the point in the CustomResourceFactory
where it calls out to that resource's "initialize" method.  If that throws an exception, it
should be caught and wrapped with a new ResourceInitializationException, which says that the
nested exception happened while trying to initialize the custom resource, and identifying
the custom resource.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message