Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 59578 invoked from network); 14 Mar 2008 16:54:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2008 16:54:40 -0000 Received: (qmail 35338 invoked by uid 500); 14 Mar 2008 16:54:37 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 35307 invoked by uid 500); 14 Mar 2008 16:54:36 -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 35298 invoked by uid 99); 14 Mar 2008 16:54:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 09:54:36 -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; Fri, 14 Mar 2008 16:53:48 +0000 Received: (qmail invoked by alias); 14 Mar 2008 16:52:12 -0000 Received: from blueice1n1.de.ibm.com (EHLO [9.152.14.84]) [195.212.29.163] by mail.gmx.net (mp025) with SMTP; 14 Mar 2008 17:52:13 +0100 X-Authenticated: #25330878 X-Provags-ID: V01U2FsdGVkX1+idi0xAHCiIq/qaNoAUhKDsMdsPsJPmqoV93CDWQ 7hnx7wIQablwax Message-ID: <47DAACC2.10808@gmx.de> Date: Fri, 14 Mar 2008 17:50:10 +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: CpeDescriptrion: Invalid References: <47DA9DCB.4000001@uni-jena.de> In-Reply-To: <47DA9DCB.4000001@uni-jena.de> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org Do you have the uima-cpe.jar file on the classpath? --Thilo Matthias M�hlhausen wrote: > Hello, > > I have a problem if I try to create a CpeDescritpion form a descriptor > file. > > > This is a short form of the stack trace: > > org.apache.uima.util.InvalidXMLException: Invalid descriptor at ... > at > org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:193) > at > org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:232) > at > org.apache.uima.util.impl.XMLParser_impl.parseCpeDescription(XMLParser_impl.java:645) > > at > de.julielab.jules.dopp.DocumentParallelProcessorTest.createCpeDescription(DocumentParallelProcessorTest.java:58) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ... > Caused by: org.apache.uima.util.InvalidXMLException: The XML parser > encountered an unknown element type: cpeDescription. > at > org.apache.uima.util.impl.XMLParser_impl.buildObject(XMLParser_impl.java:276) > > at > org.apache.uima.util.impl.SaxDeserializer_impl.getObject(SaxDeserializer_impl.java:114) > > at > org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:184) > ... 16 more > > > The code I use is: > > XMLInputSource source = new XMLInputSource(DESC_CPE); > System.out.println("source.getURL()="+source.getURL()); > cpeDescription = UIMAFramework.getXMLParser().parseCpeDescription(source); > > > This is the descriptor I use: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -1 > immediate > > > > > > > I use UIMA 2.2.1 and Java6 (also tried Java5 without success). > > Any ideas? > Matthias >