You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Adam Lally <al...@alum.rpi.edu> on 2007/01/15 16:30:12 UTC
Re: Problems with XCasAnnotationViewer
Hi Katrin,
Does any error message get printed to the console when this happens?
I have seen a similar behavior due to a bug in the Annotation Viewer
having to do with the new primitive types we introduced in v2.0 (byte,
short, long, double, boolean). Do the annotations that won't display
have features of any of these types? If so, this has been fixed in
the Apache UIMA codebase and the fix will be out in v2.1, expected
next month.
-Adam
P.S. I'm replying on uima-user@incubator.apache.org list, which is the
preferred place for questions from users.
On 1/15/07, Katrin Tomanek <to...@coling-uni-jena.de> wrote:
> Hi,
>
> I am using the XCasAnnotationViewer (uima SDK 2.0.2). Normally, it works
> fine. However, some of my annotations it doesn't show for some reason.
>
> In detail, when I open an annotated document (xmi-format) within the
> viewer, I get a list of annotations below the document which I can
> select. When I then click in the text on the colored annotations I can
> see the annotation detail on the right.
>
> But there are some of my annotations, which I -- though I can click on
> them in the text -- cannot see in the right side of the window
> (annotation details).
>
> Does anybody know why this is ? Or what could be the error ?
>
>
>
> Thanks in advance,
> Katrin
>
> --
> Katrin Tomanek
> Jena University Language and Information Engineering (JULIE) Lab
> Phone: +49-3641-944307
> Fax: +49-3641-944321
> email: tomanek@coling-uni-jena.de
> URL: http://www.coling.uni-jena.de
>
Re: Problems with XCasAnnotationViewer
Posted by Adam Lally <al...@alum.rpi.edu>.
On 1/19/07, Katrin Tomanek <to...@coling-uni-jena.de> wrote:
> yes, I actually get an error message (see below).
> Here, the feature "truncated" is actually a Boolean.
>
> seems also to have to do with the primitive types. However, I don't know
> exactly what is the problem here...
> <snip/>
There is a known bug in the annotation viewer causing it to not
support the Boolean type and the other new primitive types (Byte,
Short, Long, Double). The error message you showed is exactly what I
would expect for this bug.
A fix will be out in v2.1, which we're hoping to release next month
(our first release from Apache). Until then, the only workaround is
to not use these primitive types (for example you could use an Integer
instead of a Boolean).
-Adam
Re: Problems with XCasAnnotationViewer
Posted by Katrin Tomanek <to...@coling-uni-jena.de>.
Dear Adam,
> Does any error message get printed to the console when this happens?
> I have seen a similar behavior due to a bug in the Annotation Viewer
> having to do with the new primitive types we introduced in v2.0 (byte,
> short, long, double, boolean). Do the annotations that won't display
> have features of any of these types? If so, this has been fixed in
> the Apache UIMA codebase and the fix will be out in v2.1, expected
> next month.
yes, I actually get an error message (see below).
Here, the feature "truncated" is actually a Boolean.
seems also to have to do with the primitive types. However, I don't know
exactly what is the problem here...
Do you have an idea ?
bye,
Katrin
--- snip ---
Exception occurred during event dispatching:
CASRuntimeException: Trying to access value of feature
"de.julielab.jules.types.Header:truncated" as feature structure, but is
primitive type.
at
com.ibm.uima.cas.impl.FeatureStructureImpl.getFeatureValue(Unknown Source)
at
com.ibm.uima.reference_impl.viewer.CasAnnotationViewer.addFeatureTreeNodes(Unknown
Source)
at
com.ibm.uima.reference_impl.viewer.CasAnnotationViewer.addAnnotationToTree(Unknown
Source)
at
com.ibm.uima.reference_impl.viewer.CasAnnotationViewer.updateSelectedAnnotationTree(Unknown
Source)
at
com.ibm.uima.reference_impl.viewer.CasAnnotationViewer.mouseClicked(Unknown
Source)
at
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:241)
at java.awt.Component.processMouseEvent(Component.java:5199)
at java.awt.Component.processEvent(Component.java:4993)
at java.awt.Container.processEvent(Container.java:1607)
at java.awt.Component.dispatchEventImpl(Component.java:3712)
at java.awt.Container.dispatchEventImpl(Container.java(Compiled
Code))
at java.awt.Component.dispatchEvent(Component.java(Inlined
Compiled Code))
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java(Compiled
Code))
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3245)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3166)
at java.awt.Container.dispatchEventImpl(Container.java(Compiled
Code))
at java.awt.Window.dispatchEventImpl(Window.java:1653)
at java.awt.Component.dispatchEvent(Component.java:3574)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:536)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:237)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:187)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:598)
at java.awt.Dialog.show(Dialog.java:619)
at java.awt.Component.show(Component.java:1176)
at java.awt.Component.setVisible(Component.java:1131)
at
com.ibm.uima.reference_impl.application.XCasAnnotationViewerMain.viewDocuments(Unknown
Source)
at
com.ibm.uima.reference_impl.application.XCasAnnotationViewerMain$4.actionPerformed(Unknown
Source)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1815)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1868)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:449)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:287)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:274)
at java.awt.Component.processMouseEvent(Component.java:5196)
at java.awt.Component.processEvent(Component.java:4993)
at java.awt.Container.processEvent(Container.java:1607)
at java.awt.Component.dispatchEventImpl(Component.java:3712)
at java.awt.Container.dispatchEventImpl(Container.java:1665)
at java.awt.Component.dispatchEvent(Component.java:3574)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3521)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3236)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3166)
at java.awt.Container.dispatchEventImpl(Container.java:1651)
at java.awt.Window.dispatchEventImpl(Window.java:1653)
at java.awt.Component.dispatchEvent(Component.java:3574)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:536)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:237)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:187)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:181)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:136)
--- snap ---