Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 74247 invoked from network); 9 Nov 2007 14:02:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2007 14:02:14 -0000 Received: (qmail 32907 invoked by uid 500); 9 Nov 2007 14:02:01 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 32889 invoked by uid 500); 9 Nov 2007 14:02:01 -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 32880 invoked by uid 99); 9 Nov 2007 14:02:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 06:02:01 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [69.93.223.26] (HELO gateway03.websitewelcome.com) (69.93.223.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Nov 2007 14:02:40 +0000 Received: (qmail 28904 invoked from network); 9 Nov 2007 14:01:55 -0000 Received: from gator74.hostgator.com (67.18.27.130) by gateway03.websitewelcome.com with ESMTPS (DHE-RSA-AES256-SHA encrypted); 9 Nov 2007 14:01:55 -0000 Received: from yktgi01e0-s5.watson.ibm.com ([129.34.20.19]:45462 helo=[9.2.34.86]) by gator74.hostgator.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IqUQU-000156-P1 for uima-user@incubator.apache.org; Fri, 09 Nov 2007 08:01:39 -0600 Message-ID: <47346811.5020504@schor.com> Date: Fri, 09 Nov 2007 09:00:49 -0500 From: Marshall Schor 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> In-Reply-To: <47345531.40801@ki.informatik.uni-wuerzburg.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - incubator.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-Virus-Checked: Checked by ClamAV on apache.org Hi Peter, The methods Java uses to find the XML parser are quite involved. It may be that it's not finding your latest Xerces impl. Could you try running this using this debug trace flag (found in the docs for Java 1.5 SAXParserFactory: -Djaxp.debug=1 If you can do this, please post what it says. Thanks. -Marshall 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 > . > 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 > >