You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org> on 2009/11/20 14:47:39 UTC

[jira] Created: (UIMA-1674) Exception thrown from CasMultiplier.process should be reported to client as failure

Exception thrown from CasMultiplier.process should be reported to client as failure
-----------------------------------------------------------------------------------

                 Key: UIMA-1674
                 URL: https://issues.apache.org/jira/browse/UIMA-1674
             Project: UIMA
          Issue Type: Bug
          Components: Async Scaleout
    Affects Versions: 2.3AS
            Reporter: Jörn Kottmann
             Fix For: 2.3AS


The first Analysis Engine in our uima-as setup is a CasMultiplier,
we implement the process method and from this method our implementation
throws a RuntimeException, not nice but it can happen.

In the client interface we get the CAS back, but EntityProcessStatus.isException returns false,
but it should return true and provide the exception.

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


[jira] Commented: (UIMA-1674) Exception thrown from CasMultiplier.process should be reported to client as failure

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780770#action_12780770 ] 

Jerry Cwiklik commented on UIMA-1674:
-------------------------------------

Jorn, can you describe your setup in more detail. As I understand it, your client is connecting to a remote UIMA AS aggregate that has a CM and possibly other delegate services. Is the CM in the same jvm as the aggregate or remote? In the client, do you use sendAndReceive() or sendCAS(). Is there any indication in the Uima AS service log that there was a problem processing a CAS? The ResourceProcessException should be thrown from the AE (CM or not), if there is a problem processing a CAS. There should also be an entry in the uima log made by a client if it receives an exception instead of a CAS in the process reply. 

Thanks, Jerry

> Exception thrown from CasMultiplier.process should be reported to client as failure
> -----------------------------------------------------------------------------------
>
>                 Key: UIMA-1674
>                 URL: https://issues.apache.org/jira/browse/UIMA-1674
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jörn Kottmann
>             Fix For: 2.3AS
>
>
> The first Analysis Engine in our uima-as setup is a CasMultiplier,
> we implement the process method and from this method our implementation
> throws a RuntimeException, not nice but it can happen.
> In the client interface we get the CAS back, but EntityProcessStatus.isException returns false,
> but it should return true and provide the exception.

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


[jira] Closed: (UIMA-1674) Exception thrown from CasMultiplier.process should be reported to client as failure

Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jörn Kottmann closed UIMA-1674.
-------------------------------

    Resolution: Fixed

Sorry, for not providing the information you requested. I tested the fix and now the exception is send back to my client as expected, thanks.

> Exception thrown from CasMultiplier.process should be reported to client as failure
> -----------------------------------------------------------------------------------
>
>                 Key: UIMA-1674
>                 URL: https://issues.apache.org/jira/browse/UIMA-1674
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jörn Kottmann
>             Fix For: 2.3AS
>
>
> The first Analysis Engine in our uima-as setup is a CasMultiplier,
> we implement the process method and from this method our implementation
> throws a RuntimeException, not nice but it can happen.
> In the client interface we get the CAS back, but EntityProcessStatus.isException returns false,
> but it should return true and provide the exception.

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


[jira] Commented: (UIMA-1674) Exception thrown from CasMultiplier.process should be reported to client as failure

Posted by "Jerry Cwiklik (JIRA)" <ui...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/UIMA-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797282#action_12797282 ] 

Jerry Cwiklik commented on UIMA-1674:
-------------------------------------

Modified ProcessCasErrorHandler to attach Exception received from a delegate to the CAS CacheEntry. This is later used to inform a client of a problem while processing input CAS. Jorn can you please test this and confirm that the fix is working. If so, please close the JIRA. Thanks

> Exception thrown from CasMultiplier.process should be reported to client as failure
> -----------------------------------------------------------------------------------
>
>                 Key: UIMA-1674
>                 URL: https://issues.apache.org/jira/browse/UIMA-1674
>             Project: UIMA
>          Issue Type: Bug
>          Components: Async Scaleout
>    Affects Versions: 2.3AS
>            Reporter: Jörn Kottmann
>             Fix For: 2.3AS
>
>
> The first Analysis Engine in our uima-as setup is a CasMultiplier,
> we implement the process method and from this method our implementation
> throws a RuntimeException, not nice but it can happen.
> In the client interface we get the CAS back, but EntityProcessStatus.isException returns false,
> but it should return true and provide the exception.

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