Error in the curation view

38 views
Skip to first unread message

alek...@gmail.com

unread,
Jun 22, 2021, 1:57:10 PM6/22/21
to incepti...@googlegroups.com
Hallo,

I want to ask for help, since currently I have a problem with the curation of some of the annotated files due to an error (longer version of the error at the end of the e-mail):

"Error: Cannot invoke "org.apache.uima.cas.Feature.getRange()" because "f" is null"

The files can be opened without any problem by the annotators (no warnings or errors are shown). In the curation mode the files are also listed, however I get the error while I am trying to open them for curation; the color changes to blue (seen) though. In the exported version the files are missing in the curation folder. 

The reannotation of the files seems to help (same values for the same features). I checked the xmi-Files before and after the reannotation, and do not see any changes except for xmi:ids. 

I suppose, the problem is caused by me somehow (changes to annotation scheme? However, the inspected problematic files are annotated with features and values, that never changed.) And it is strange to me, that the problem occurs only in the cuarion view. I also cannot see from the error which feature of the layer causes the problem.

Maybe someone has any idea, if there is a solution to my problem. I have many files, which I cannot curate due to the error.

Thanks in advance,

Aleks

-----
ERROR:

ConstraintsServiceImpl - Read constraints set [barriere_constraints_projekt2 (1).txt] in project [Barriere_NO_Dupl_Part2](22)
2021-06-22 17:38:22 ERROR [aleksandra] CurationPage - Error: Cannot invoke "org.apache.uima.cas.Feature.getRange()" because "f" is null
java.lang.NullPointerException: Cannot invoke "org.apache.uima.cas.Feature.getRange()" because "f" is null
at de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter.TypeAdapter_ImplBase.getValue(TypeAdapter_ImplBase.java:139) ~[inception-api-annotation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.api.annotation.adapter.TypeAdapter_ImplBase.setFeatureValue(TypeAdapter_ImplBase.java:121) ~[inception-api-annotation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.CasMerge.copyFeatures(CasMerge.java:456) ~[inception-curation-legacy-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.CasMerge.mergeSpanAnnotation(CasMerge.java:505) ~[inception-curation-legacy-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.curation.casmerge.CasMerge.reMergeCas(CasMerge.java:264) ~[inception-curation-legacy-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.ui.curation.page.CurationPage.initializeEditorCas(CurationPage.java:832) ~[inception-ui-curation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.ui.curation.page.CurationPage.readCurationCas(CurationPage.java:795) ~[inception-ui-curation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.ui.curation.page.CurationPage.readOrCreateMergeCas(CurationPage.java:561) ~[inception-ui-curation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.ui.curation.page.CurationPage.actionLoadDocument(CurationPage.java:503) ~[inception-ui-curation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.ui.curation.page.CurationPage.actionLoadDocument(CurationPage.java:468) ~[inception-ui-curation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.api.annotation.actionbar.docnav.DocumentNavigator.actionShowNextDocument(DocumentNavigator.java:100) ~[inception-api-annotation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.api.annotation.actionbar.docnav.DocumentNavigator.lambda$new$9689a5c8$2(DocumentNavigator.java:60) ~[inception-api-annotation-0.19.7.jar!/:?]
at de.tudarmstadt.ukp.clarin.webanno.support.lambda.LambdaAjaxLink.onClick(LambdaAjaxLink.java:67) [inception-support-0.19.7.jar!/:?]

Richard Eckart de Castilho

unread,
Jun 22, 2021, 2:21:41 PM6/22/21
to incepti...@googlegroups.com
Hi,

thanks for the report and sorry for the inconvenience!

> On 22. Jun 2021, at 19:56, alek...@gmail.com wrote:
>
> I suppose, the problem is caused by me somehow (changes to annotation scheme? However, the inspected problematic files are annotated with features and values, that never changed.) And it is strange to me, that the problem occurs only in the cuarion view. I also cannot see from the error which feature of the layer causes the problem.
>
> Maybe someone has any idea, if there is a solution to my problem. I have many files, which I cannot curate due to the error.

Please try going to the layers page in the project setting and creating a new layer (any type, any name) and then deleting the layer again. This procedure should force-update all of your annotation documents to the latest schema and then hopefully the error you reported should not occur anymore.

Also, it would be great if you could copy the information about the problem into our bug report template:

https://github.com/inception-project/inception/issues/new?assignees=&labels=&template=bug_report.md

Best,

-- Richard

alek...@gmail.com

unread,
Jun 22, 2021, 4:05:24 PM6/22/21
to incepti...@googlegroups.com
Hi Richard,

your solution worked like magic :-) Thank you very much for the quick support, and overall for the annotation tool!
I already reported the bug in github.

Best, Aleksandra



 

--
You received this message because you are subscribed to the Google Groups "inception-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inception-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inception-users/2459A2E3-6C7D-498C-A39D-FFF003E70E71%40gmail.com.

Richard Eckart de Castilho

unread,
Jun 22, 2021, 5:02:49 PM6/22/21
to inception-users
Hi Aleksandra

> On 22. Jun 2021, at 22:05, alek...@gmail.com wrote:
>
> your solution worked like magic :-) Thank you very much for the quick support, and overall for the annotation tool!
> I already reported the bug in github.

Thanks for reporting :) I am already looking into fixing it.

Best,

-- Richard
Reply all
Reply to author
Forward
0 new messages