-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException during export in WebAnno format #3679
Comments
The stack trace from the initial description is from an export via the export dialog on the annotation page. Unfortunately, that trace does not go deep enough into the code to see where the NPE is happening. Could you please post a stack trace from the project export so we can check if there is more to be seen? |
Also, have you tried running the CAS Doctor from the project settings over your project to check for inconsistencies? |
I run the CAS Doctor: no issues shown. |
Here's the log when exporting the whole project.
|
Are there no more "... at " lines below the |
Nope, |
Hm :( Can you export the project without any secondary format and privately share it with me for debugging? |
Sure. How can I share it with you? |
I'll send you an email. |
got it :) |
Good, I got a better stack trace (using INCEpTION 27.0-SNAPSHOT):
|
This seems a good news, except that I can't solve the issue by upgrading INCEpTION :( |
Well, not yet :) Once I found a fix and released a new version, you could do that - or possibly I find a workaround... |
Thank you very much for your help! |
Ok, so the problem here is that you are using a multi-value string feature in at least one of your layers. WebAnno TSV 3 is a legacy feature in INCEpTION. The format is no longer updated to support new things in INCEpTION and that includes support for multi-value features. So the bad news is that this is expected behavior (although the error message is not helpful) and there are actually no plans to fix that. Can I motivate you to switch to the preferred |
How do you export without arcs? |
Thank you for your answer, this is a bad news since we have some python post-processing tools that read WebAnno format. Anyway, if you think that in the future the WebAnno format won't be updated any more it's better to move to XML, I guess... |
I manually removed them. |
We have a nice and convenient Python library to work with the XMI CAS (XML 1.0) format: https://github.com/dkpro/dkpro-cassis |
Ok, thank you, I'll try it! |
Any idea about the presence of |
The named entity layer is a built-in layer. My guess would be that you originally had named entity annotations in the project and then deleted the layer. When a custom layer is deleted, the layer definition is removed and after that, all files are updated to the new type system - which as a side-effect removes all annotations of the deleted layer. My guess is that the type definition for built-in layers remains active even if they are no longer shown in the project configuration - hence their annotations are not removed if the layer definition is removed. If you use the dropdown next to the "create layer" button in the project settings to add back the named entity layer, you'll probably see those annotations again. |
Ok, thank you! I'll investigate it. |
I'll add a "fix" to this in the sense that the WebAnno TSV 3 export won't crash anymore on such projects, but it will also not include the multi-value features. |
- Avoid error when trying to export layers with multi-value string features - Update documentation saying that WebAnno TSV is now considered legacy and doesn't support everything
…erException-during-export-in-WebAnno-format #3679 - NullPointerException during export in WebAnno format
* main: #3610 - Minimizing icon in document level feature is wrong after updating feature #3656 - The color of the existing layers changes after adding another layer #3679 - NullPointerException during export in WebAnno format #283 - Resize span #283 - Resize span #283 - Resize span #3675 - Clean up more brat code #3675 - Clean up more brat code #3675 - Clean up more brat code #3676 - Error when rejecting annotation suggestion #3675 - Clean up more brat code #1535 - Keyboard shortcuts do not work when focus is in certain editors #3571 - Update dependencies #3670 - Remove LIF support #3670 - Remove LIF support [maven-release-plugin] prepare for next development iteration [maven-release-plugin] prepare release inception-26.3 #3650 - Link label shows layer name instead of label
* main: (64 commits) #3610 - Minimizing icon in document level feature is wrong after updating feature #3656 - The color of the existing layers changes after adding another layer #3679 - NullPointerException during export in WebAnno format #283 - Resize span #283 - Resize span #283 - Resize span #3675 - Clean up more brat code #3675 - Clean up more brat code #3675 - Clean up more brat code #3676 - Error when rejecting annotation suggestion #3675 - Clean up more brat code #1535 - Keyboard shortcuts do not work when focus is in certain editors #3571 - Update dependencies #3670 - Remove LIF support #3670 - Remove LIF support #3668 - Disable tutorial for now #3664 - Avoid server-side HTML composition not using Wicket #3664 - Avoid server-side HTML composition not using Wicket #283 - Resize span #3660 - Option to disable span clipping ...
Describe the bug
I got a NullPointerException error when exporting one or more files having one relation between entities.
To Reproduce
Unfortunately I cannot reproduce the problem from scratch. I set up my annotation task with 7 layers and a lot of rules, and when I try to export in WebAnno format a document containing a relation between spans I got an error.
The problem does not appear when exporting in other formats nor exporting in WebAnno when the document does not contain relations (only spans).
Screenshots
Please complete the following information:
Additional context
The error:
The text was updated successfully, but these errors were encountered: