Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 59548 invoked from network); 9 Nov 2007 13:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 13:03:16 -0000 Received: (qmail 58497 invoked by uid 500); 9 Nov 2007 13:03:04 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 58475 invoked by uid 500); 9 Nov 2007 13:03:04 -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 58466 invoked by uid 99); 9 Nov 2007 13:03:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 05:03:04 -0800 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: local policy) Received: from [132.187.3.28] (HELO mailrelay.rz.uni-wuerzburg.de) (132.187.3.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 13:03:04 +0000 Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 7E65BCD7D for ; Fri, 9 Nov 2007 14:02:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 710A4D589 for ; Fri, 9 Nov 2007 14:02:43 +0100 (CET) Received: from [132.187.15.179] (win6179.informatik.uni-wuerzburg.de [132.187.15.179]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 4F447CD7D for ; Fri, 9 Nov 2007 14:02:43 +0100 (CET) Message-ID: <47345A72.9070706@ki.informatik.uni-wuerzburg.de> Date: Fri, 09 Nov 2007 14:02:42 +0100 From: =?UTF-8?B?UGV0ZXIgS2zDvGds?= Reply-To: pkluegl@ki.informatik.uni-wuerzburg.de User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: uima-user@incubator.apache.org Subject: Re: Valid Descriptor causes InvalidXMLException/DOMException References: <47345531.40801@ki.informatik.uni-wuerzburg.de> <4734591C.50404@gmx.de> In-Reply-To: <4734591C.50404@gmx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de X-Virus-Checked: Checked by ClamAV on apache.org Thank you for the fast answer. Here is the descriptor (with inlined type system): org.apache.uima.java true de.uniwue.pie.tae.ProjectInformationAnnotator PIE_TAE 1.0 de.uniwue.pie.type.Project uima.tcas.Annotation Period de.uniwue.pie.type.Period Title de.uniwue.pie.type.Title Client de.uniwue.pie.type.Client Content de.uniwue.pie.type.Content Skills uima.cas.FSArray de.uniwue.pie.type.Skill false Dato uima.cas.Integer de.uniwue.pie.type.Title uima.tcas.Annotation de.uniwue.pie.type.Client uima.tcas.Annotation de.uniwue.pie.type.Content uima.tcas.Annotation de.uniwue.pie.type.Skill uima.tcas.Annotation de.uniwue.pie.type.CalendarDate uima.tcas.Annotation Year de.uniwue.pie.type.Year Month de.uniwue.pie.type.Month Week de.uniwue.pie.type.Week Day de.uniwue.pie.type.Day Hour de.uniwue.pie.type.Hour Minute de.uniwue.pie.type.Minute Second de.uniwue.pie.type.Second de.uniwue.pie.type.Year uima.tcas.Annotation de.uniwue.pie.type.Month uima.tcas.Annotation de.uniwue.pie.type.Week uima.tcas.Annotation de.uniwue.pie.type.Day uima.tcas.Annotation de.uniwue.pie.type.Hour uima.tcas.Annotation de.uniwue.pie.type.Minute uima.tcas.Annotation de.uniwue.pie.type.Second uima.tcas.Annotation de.uniwue.pie.type.Period uima.tcas.Annotation StartCalendarDate de.uniwue.pie.type.CalendarDate EndCalendarDate de.uniwue.pie.type.CalendarDate de.uniwue.pie.type.Project true true false TextMarkerRuleFile de.uniwue.tm.resource.TextMarkerRuleResource false TextMarkerRuleFile file:de/uniwue/tm/resource/PIE.rules de.uniwue.tm.resource.TextMarkerRuleResource_impl TextMarkerRuleFile TextMarkerRuleFile Thilo Goetz schrieb: > Can you post the descriptor? > > Peter Klügl wrote: > >> Hello, >> >> To cut a long story short: >> >> I created an (valid) annotator with the component descriptor and get an >> InvalidXMLException when I try to run it for instance with the Document >> Analyzer in eclipse. >> >> My configuration is currently: >> Eclipse 3.3.1.1 >> Java 1.5.0_13 (also tried it with Java 1.6.0_03) >> Apache UIMA 2.2.0 >> >> A short online search told me that this might be not an UIMA specific >> but an xml problem. So I downloaded the newest Xalan/Xerces and >> integrated it in any place, in any combination (started with the >> classpath of the eclipse-plugin, uima classpath, ended with the endorsed >> folder). >> >> The example annotators work just fine. But I can’t see any difference >> between their environments or basic structure/namespaces of their xml >> descriptor. >> >> Any help, hint or advice will be greatly appreciated. >> >> Best regards >> >> Peter Klügl >> >> org.apache.uima.util.InvalidXMLException: Invalid descriptor at > source>. >> at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:193) >> at >> org.apache.uima.util.impl.XMLParser_impl.parseCollectionReaderDescription(XMLParser_impl.java:629) >> >> at >> org.apache.uima.util.impl.XMLParser_impl.parseCollectionReaderDescription(XMLParser_impl.java:622) >> >> at >> org.apache.uima.tools.components.FileSystemCollectionReader.getDescription(FileSystemCollectionReader.java:243) >> >> at >> org.apache.uima.tools.docanalyzer.DocumentAnalyzer.runProcessingThread(DocumentAnalyzer.java:1060) >> >> at >> org.apache.uima.tools.docanalyzer.DocumentAnalyzer$ProcessingThread.run(DocumentAnalyzer.java:1267) >> >> Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made >> to create or change an object in a way which is incorrect with regard to >> namespaces. >> at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:351) >> at >> org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1020) >> >> at >> org.apache.uima.util.impl.SaxDeserializer_impl.startElement(SaxDeserializer_impl.java:201) >> >> at >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown >> Source) >> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown >> Source) >> at >> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown >> Source) >> at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:176) >> ... 5 more >> >> >> -- Peter Klügl mailto:pkluegl@ki.informatik.uni-wuerzburg.de http://ki.informatik.uni-wuerzburg.de/~pkluegl Applied Informatics and Artificial Intelligence University of Würzburg