uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Cwiklik (JIRA)" <...@uima.apache.org>
Subject [jira] [Updated] (UIMA-5988) UIMA-DUCC: JD fails due to not finding Workitem type in the CAS
Date Thu, 14 Feb 2019 19:41:00 GMT

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

Jerry Cwiklik updated UIMA-5988:
--------------------------------
    Description: 
The JD throws the following exception:

Feb 14, 2019 9:51:02 AM org.apache.uima.ducc.test.randomsleep.FixedSleepCR getNext(328)
 INFO: getNext
 org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator class org.apache.uima.ducc.CasHelper
requires Type org.apache.uima.ducc.Workitem, which was not found in the CAS.
 at org.apache.uima.ducc.CasHelper.getId(CasHelper.java:47)
 at org.apache.uima.ducc.user.jd.JdUserCollectionReader._getJdUserMetaCas(JdUserCollectionReader.java:169)
 at org.apache.uima.ducc.user.jd.JdUserCollectionReader.getJdUserMetaCas(JdUserCollectionReader.java:147)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:508)
 at org.apache.uima.ducc.container.common.classloader.ContextSwitch.call(ContextSwitch.java:42)
 at org.apache.uima.ducc.container.jd.classload.ProxyJobDriverCollectionReader.getMetaCas(ProxyJobDriverCollectionReader.java:171)
 at org.apache.uima.ducc.container.jd.cas.CasManager.getMetaCas(CasManager.java:74)

 

To make things worse the above exception is ignored by JD code and the job continues until
completion giving a false sense of positive completion. The Duccmon shows no errors.

Two fixes are needed:

1) Address the missing Workitem type in the cas

2) Improve error handling to detect an exception and cancel a job

  was:
The JD throws the following exception:

Feb 14, 2019 9:51:02 AM org.apache.uima.ducc.test.randomsleep.FixedSleepCR getNext(328)
INFO: getNext
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator class org.apache.uima.ducc.CasHelper
requires Type org.apache.uima.ducc.Workitem, which was not found in the CAS.
 at org.apache.uima.ducc.CasHelper.getId(CasHelper.java:47)
 at org.apache.uima.ducc.user.jd.JdUserCollectionReader._getJdUserMetaCas(JdUserCollectionReader.java:169)
 at org.apache.uima.ducc.user.jd.JdUserCollectionReader.getJdUserMetaCas(JdUserCollectionReader.java:147)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
 at java.lang.reflect.Method.invoke(Method.java:508)
 at org.apache.uima.ducc.container.common.classloader.ContextSwitch.call(ContextSwitch.java:42)
 at org.apache.uima.ducc.container.jd.classload.ProxyJobDriverCollectionReader.getMetaCas(ProxyJobDriverCollectionReader.java:171)
 at org.apache.uima.ducc.container.jd.cas.CasManager.getMetaCas(CasManager.java:74)

 

To make things worse the above exception is ignored by JD code and the job continues until
completion giving a false sense of positive completion. The Duccmon shows no errors.

Two fixed needed:

1) Address the missing Workitem type in the cas

2) Improve error handling to detect an exception and cancel a job


> UIMA-DUCC: JD fails due to not finding Workitem type in the CAS
> ---------------------------------------------------------------
>
>                 Key: UIMA-5988
>                 URL: https://issues.apache.org/jira/browse/UIMA-5988
>             Project: UIMA
>          Issue Type: Bug
>          Components: DUCC
>            Reporter: Jerry Cwiklik
>            Assignee: Jerry Cwiklik
>            Priority: Major
>             Fix For: 3.0.0-Ducc
>
>
> The JD throws the following exception:
> Feb 14, 2019 9:51:02 AM org.apache.uima.ducc.test.randomsleep.FixedSleepCR getNext(328)
>  INFO: getNext
>  org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator class org.apache.uima.ducc.CasHelper
requires Type org.apache.uima.ducc.Workitem, which was not found in the CAS.
>  at org.apache.uima.ducc.CasHelper.getId(CasHelper.java:47)
>  at org.apache.uima.ducc.user.jd.JdUserCollectionReader._getJdUserMetaCas(JdUserCollectionReader.java:169)
>  at org.apache.uima.ducc.user.jd.JdUserCollectionReader.getJdUserMetaCas(JdUserCollectionReader.java:147)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
>  at java.lang.reflect.Method.invoke(Method.java:508)
>  at org.apache.uima.ducc.container.common.classloader.ContextSwitch.call(ContextSwitch.java:42)
>  at org.apache.uima.ducc.container.jd.classload.ProxyJobDriverCollectionReader.getMetaCas(ProxyJobDriverCollectionReader.java:171)
>  at org.apache.uima.ducc.container.jd.cas.CasManager.getMetaCas(CasManager.java:74)
>  
> To make things worse the above exception is ignored by JD code and the job continues
until completion giving a false sense of positive completion. The Duccmon shows no errors.
> Two fixes are needed:
> 1) Address the missing Workitem type in the cas
> 2) Improve error handling to detect an exception and cancel a job



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message