[ 
https://issues.apache.org/jira/browse/UIMA-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12737147#action_12737147
 ] 

Jörn Kottmann commented on UIMA-1468:
-------------------------------------

>From the log file I assume you are using 2.3.0.incubating-SNAPSHOT, is that 
>correct ?

There is one exception which seems to me likely its causing the behavior:
java.lang.IllegalArgumentException: Argument not valid
        at org.eclipse.swt.SWT.error(SWT.java:3865)
        at org.eclipse.swt.SWT.error(SWT.java:3799)
        at org.eclipse.swt.SWT.error(SWT.java:3770)
        at 
org.eclipse.swt.custom.StyledText.setCaretOffset(StyledText.java:7882)
        at 
org.apache.uima.caseditor.editor.AnnotationEditor.selectionChanged(AnnotationEditor.java:950)
        at 
org.apache.uima.caseditor.editor.AnnotationEditor$DocumentListener.updatedAnnotation(AnnotationEditor.java:301)
        at 
org.apache.uima.caseditor.editor.AbstractAnnotationDocumentListener.updated(AbstractAnnotationDocumentListener.java:75)
        at 
org.apache.uima.caseditor.editor.AbstractDocumentListener.updated(AbstractDocumentListener.java:62)
        at 
org.apache.uima.caseditor.editor.AbstractDocument.fireUpdatedFeatureStructure(AbstractDocument.java:114)
        at 
org.apache.uima.caseditor.editor.DocumentUimaImpl.update(DocumentUimaImpl.java:145)
        at 
org.apache.uima.caseditor.editor.AnnotationDocument.update(AnnotationDocument.java:132)
        at 
org.apache.uima.caseditor.editor.action.WideRightAnnotationSideAction.wideRightAnnotationSide(WideRightAnnotationSideAction.java:65)
        at 
org.apache.uima.caseditor.editor.action.WideRightAnnotationSideAction.run(WideRightAnnotationSideAction.java:77)
        at 
org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
        at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
        at 
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
        at 
org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
        at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
        at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

The exception indicates a problem in the Cas Editor which is either caused by 
an off by one error in the code which positions
the cursor after an annotation on selection or by an annotation which has 
offsets which are lying outside of the text.

> Saving of annotations and relations does not always work properly
> -----------------------------------------------------------------
>
>                 Key: UIMA-1468
>                 URL: https://issues.apache.org/jira/browse/UIMA-1468
>             Project: UIMA
>          Issue Type: Bug
>          Components: CasEditor
>    Affects Versions: 2.2.2
>            Reporter: Peter Prettenhofer
>         Attachments: caseditor.log
>
>
> We have encountered a problem concerning saving manually annotated documents 
> with the Apache UIMA CasEditor.
> In short, not all annotations and relations are always saved when saving an 
> xmi file. That is, oftentimes we save an annotated document and reopen it 
> with the annotation editor, some of the annotations and all relations are 
> missing.
> We are not quite sure what the underlying problem is and we even didn't 
> manage to always reproduce it, but this is what we've done and observed:
> After importing a text file (.txt) and opening its corresponding xmi file 
> with the annotation editor we annotated some entities and created relations 
> among them afterwards. We then saved and closed that file. Reopening it 
> again, in most cases the first couple of annotations still existed. However, 
> subsequent annotations and, especially, all relations were missing.
> An interesting observation that might help to find the actual problem is the 
> following: When we annotated and saved the same previously edited document 
> again, everything worked fine, i.e. all annotations and relations had 
> actually been saved.

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

Reply via email to