Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 46691 invoked from network); 12 Mar 2008 12:40:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 12:40:52 -0000 Received: (qmail 77500 invoked by uid 500); 12 Mar 2008 12:40:41 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 77484 invoked by uid 500); 12 Mar 2008 12:40:41 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 77465 invoked by uid 99); 12 Mar 2008 12:40:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 05:40:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of twgoetz@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 12 Mar 2008 12:39:53 +0000 Received: (qmail invoked by alias); 12 Mar 2008 12:40:13 -0000 Received: from blueice1n1.de.ibm.com (EHLO [9.152.14.84]) [195.212.29.163] by mail.gmx.net (mp011) with SMTP; 12 Mar 2008 13:40:14 +0100 X-Authenticated: #25330878 X-Provags-ID: V01U2FsdGVkX181dHQ5ZWs1GBGkbJG00lP+alNC5zdqO+xTAur2/1 9KYyyh4kvrr4xb Message-ID: <47D7CEB3.6080400@gmx.de> Date: Wed, 12 Mar 2008 13:38:11 +0100 From: Thilo Goetz User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: JCasGen - Feature not Defined for Type error References: <91bc430d0803112011p547f4e6cn649a4c05b2afde25@mail.gmail.com> <47D7B1BA.5080707@gmx.de> <91bc430d0803120502h5cf1e0bme3322c10dcb72392@mail.gmail.com> In-Reply-To: <91bc430d0803120502h5cf1e0bme3322c10dcb72392@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org John Cabral wrote: > I've tried out that theory. I had copied over the > element for that type into the type system descriptor file used by my > engine. All 18 components are there and I can't see anything else in > the file that would need to be copied over. Actually, I just realized > something. The code I am using is running outside of an annotator. > So, I just wired something together so that I can get a JCas create a > feature structure and then add them to the JCas for the purposes of > testing. Is there a background assumption that feature structures > should only be added only within an Annotator? No, that should work outside the annotator just as well. Try the following: on the JCas that you're working with (and that throws the error), grab the type system (with getTypeSystem()) and print it out. Something like System.out.println(jcas.getTypeSystem()); It's not the easiest format to read, but you should see all the features there. If you don't see the "reason" feature, you know that it's not been loaded from the descriptor for some reason. If you do see the feature and you still get the error, then maybe there's an issue with your extra-annotatorial code ;-) --Thilo