Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 21479 invoked from network); 12 Mar 2008 12:02:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 12:02:38 -0000 Received: (qmail 7394 invoked by uid 500); 12 Mar 2008 12:02:35 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 7362 invoked by uid 500); 12 Mar 2008 12:02:35 -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 7353 invoked by uid 99); 12 Mar 2008 12:02:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 05:02:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of john.cabral@gmail.com designates 66.249.92.171 as permitted sender) Received: from [66.249.92.171] (HELO ug-out-1314.google.com) (66.249.92.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 12:01:58 +0000 Received: by ug-out-1314.google.com with SMTP id 30so200957ugs.15 for ; Wed, 12 Mar 2008 05:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=NNTKIQa1wfxWB5GzLF7MgUQvdE1tdqUFUvyiFzeUd7k=; b=OzLM5EM5f0E/+MR4NG3oJy6zN7u9Eeysy6aorks7ZsYQ2EtHymcki00fnFubAySRmYFwr388dj9b2ILlnZ+zGSltasQ2lDJ6nVwUPsTIRKS4E4s+u6bC3AIHZRW1RpRQ3RsXHCZSDLI6RSJGYhpDN/jUEQbuzHkfrZMBPcaBimY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FkKNwZeBkMAh+HOPwyIBz0W2mO2bxPZqdXXOnWQcwAIenUVZGW4K4EQx0N0dlyrIqjBY1+0vuR1kQ7xhlYdl5mpU3P3UwxSxfQ/yg9c9KY2gQUUP2G05RKNJCjXCbwV3MbbLBLsPz+Zrlbqwmybgx4X33WOxjXlV+PG0qWGkkpc= Received: by 10.66.220.17 with SMTP id s17mr737746ugg.20.1205323326553; Wed, 12 Mar 2008 05:02:06 -0700 (PDT) Received: by 10.67.98.2 with HTTP; Wed, 12 Mar 2008 05:02:06 -0700 (PDT) Message-ID: <91bc430d0803120502h5cf1e0bme3322c10dcb72392@mail.gmail.com> Date: Wed, 12 Mar 2008 08:02:06 -0400 From: "John Cabral" To: uima-user@incubator.apache.org Subject: Re: JCasGen - Feature not Defined for Type error In-Reply-To: <47D7B1BA.5080707@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <91bc430d0803112011p547f4e6cn649a4c05b2afde25@mail.gmail.com> <47D7B1BA.5080707@gmx.de> X-Virus-Checked: Checked by ClamAV on apache.org 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? Thank you for your help. On Wed, Mar 12, 2008 at 6:34 AM, Thilo Goetz wrote: > Sounds like a version mismatch between your > generated Java files and the xml descriptor. > The CAS is complaining that it doesn't know > about the feature "reason", although the setter > is defined in the Java class. Make sure you > load the right descriptor. In CVD, you can > look at the type system as it is defined in > the CAS. > > HTH, > Thilo > > > > John Cabral wrote: > > I've run into a very odd error that is being thrown by my code. I > > have used the Eclipse plugin to define a type system and then used the > > JCasGen tool to generate the .java files for the types. I added 18 > > features to one of the types. When I try to use the set*() methods > > for them, it works in 7 cases but in the other 11 cases I will get an > > error similar to this: > > > > [java] Exception in thread "main" > > org.apache.uima.cas.CASRuntimeException: Feature "reason" is not > > defined for type "amps.featurestructures.ddms.Security". > > [java] at > > org.apache.uima.jcas.impl.JCasImpl.throwFeatMissing(JCasImpl.java:996) > > [java] at > > amps.featurestructures.ddms.Security.setReason(Unknown Source) > > [java] at amps.test.Test.main(Unknown Source) > > > > Any ideas? I've been reviewing the code and so far cannot tell any > > difference between the methods that are working and those that are > > failing. > > > > Thank you. >