Hi,

I am using the REST sandbox component in order to publish a UIMA
annotator as a Web Service. Nevertheless, when I am trying to set the
spans for a jCas the Web Service returns a nasty exception (index out
of bounds for a string, which is actually thrown from the
getCoveredText() of the Annotation class).

Now, I do make explicitly sure that the Begin and End that I give to
the annotation are not bigger than the underlying CAS's text, and my
code runs smoothly if I run it normally (without being a Web Service).
In addition, the Web Service runs smoothly as well if leave the spans
alone, but in this case the start and end are 0, unfortunately.

Has anybody else experienced the same kind of problem? Is this a bug
on the REST sandbox component or maybe I have entirely missed
something important?

Thanks in advance,
Stergos.

Reply via email to