You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Dennis Geller <dg...@aptima.com> on 2008/03/31 21:20:00 UTC

Another instance of annotator processing failed

There was a question about a problem like this earlier in the month. I 
think this one is different because (a) The error message isn't quite 
the same; (b) I'm not using Ant (the eventual source of the earlier 
problem.) Also, I don't have multiple versions of UIMA -- just the one 
download of the example package.

But I also get"Caused by: org.apache.uima.cas.CASRuntimeException: 
Feature "keyword" is not defined for type 
"org.apache.uima.DDMS.Category"." although
keyword
Is defined in the type system file (as uima.cas.String)
--> <features>
        <featureDescription>
          <name>keyword</name>
          <description>Keyword for this category</description>
          <rangeTypeName>uima.cas.String</rangeTypeName>
        </featureDescription>
      </features>
Has a setter and getter properly defined in the foo.java and 
foo_Type.java files
Is listed (although grayed out) in the fooAnnotator.xml file

However
**it is not mentioned in the AE file ("Simplefoo Annotator", named to 
parallel the examples), where we have just
<capabilities>
      <capability>
        <inputs/>
        <outputs>
          <type 
allAnnotatorFeatures="true">org.apache.uima.DDMS.Category</type>
        </outputs>
        <languagesSupported>
          <language>en</language>
        </languagesSupported>
      </capability>
      <capability>
and
** When I look at the type system in VCD i see, under uima.tcas.Annotation
      |-uima.tcas.DocumentAnnotation
      |-org.apache.uima.DDMS.Category ('Category" is of course 'foo" above)

Thanks in advance for any pointers out of this thicket.

-- 
***********************************
Dennis Geller, Ph.D. Computer and Communication Science   
Senior Software Developer
Direct Dial: 781.496.2461   Main Number: 781.935.3966 ext. 261   
Fax Number:  781.496-2498
E-mail:  dgeller@aptima.com
Aptima, Inc.
12 Gill Street, Suite 1400
Woburn, MA 01801 USA
http://www.aptima.com
************************************


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

Re: Another instance of annotator processing failed

Posted by Thilo Goetz <tw...@gmx.de>.
Dennis Geller wrote:
[...]
> ** When I look at the type system in VCD i see, under uima.tcas.Annotation
>      |-uima.tcas.DocumentAnnotation
>      |-org.apache.uima.DDMS.Category ('Category" is of course 'foo" above)

The type system view in VCD also shows
you the features, on the right-hand
side.  Does the keyword feature show
up there?

--Thilo

Re: Another instance of annotator processing failed

Posted by Dennis Geller <dg...@aptima.com>.
IN the problem below, I get to
 public Category_Type(JCas jcas, Type casType) {
    super(jcas, casType);
    
casImpl.getFSClassRegistry().addGeneratorForType((TypeImpl)this.casType, 
getFSGenerator());

 
    casFeat_keyword = jcas.getRequiredFeatureDE(casType, "keyword", 
"uima.cas.String", featOkTst); //<<<======
    casFeatCode_keyword  = (null == casFeat_keyword) ? 
JCas.INVALID_FEATURE_CODE : ((FeatureImpl)casFeat_keyword).getCode();

In the indicated line, casFeat_keyword is set to null. I don't see any 
obvious errors, such as references to the wrong type system.
Hope this provides useful information.
Thanks
Dennis Geller wrote:
> There was a question about a problem like this earlier in the month. I 
> think this one is different because (a) The error message isn't quite 
> the same; (b) I'm not using Ant (the eventual source of the earlier 
> problem.) Also, I don't have multiple versions of UIMA -- just the one 
> download of the example package.
>
> But I also get"Caused by: org.apache.uima.cas.CASRuntimeException: 
> Feature "keyword" is not defined for type 
> "org.apache.uima.DDMS.Category"." although
> keyword
> Is defined in the type system file (as uima.cas.String)
> --> <features>
>        <featureDescription>
>          <name>keyword</name>
>          <description>Keyword for this category</description>
>          <rangeTypeName>uima.cas.String</rangeTypeName>
>        </featureDescription>
>      </features>
> Has a setter and getter properly defined in the foo.java and 
> foo_Type.java files
> Is listed (although grayed out) in the fooAnnotator.xml file
>
> However
> **it is not mentioned in the AE file ("Simplefoo Annotator", named to 
> parallel the examples), where we have just
> <capabilities>
>      <capability>
>        <inputs/>
>        <outputs>
>          <type 
> allAnnotatorFeatures="true">org.apache.uima.DDMS.Category</type>
>        </outputs>
>        <languagesSupported>
>          <language>en</language>
>        </languagesSupported>
>      </capability>
>      <capability>
> and
> ** When I look at the type system in VCD i see, under 
> uima.tcas.Annotation
>      |-uima.tcas.DocumentAnnotation
>      |-org.apache.uima.DDMS.Category ('Category" is of course 'foo" 
> above)
>
> Thanks in advance for any pointers out of this thicket.
>

-- 
***********************************
Dennis Geller, Ph.D. Computer and Communication Science   
Senior Software Developer
Direct Dial: 781.496.2461   Main Number: 781.935.3966 ext. 261   
Fax Number:  781.496-2498
E-mail:  dgeller@aptima.com
Aptima, Inc.
12 Gill Street, Suite 1400
Woburn, MA 01801 USA
http://www.aptima.com
************************************


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.