uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Klügl <pklu...@ki.informatik.uni-wuerzburg.de>
Subject Valid Descriptor causes InvalidXMLException/DOMException
Date Fri, 09 Nov 2007 12:40:17 GMT
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 <unknown 
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


Mime
View raw message