uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Dearing <ddear...@stottlerhenke.com>
Subject Re: InvalidXMLException when processing Eclipse-Plguin-generated AE Descriptor File
Date Thu, 10 Sep 2009 22:50:46 GMT

I recently encountered what appears to be the same problem when setting
up a new UIMA project.  As you seem to have noticed, the error occurred
because a dependency conflict.  A library we were dependent upon
(jsr305) was loading an older version of xalan and xerces.  The old
versions caused the "DOMException: NAMESPACE_ERR ..." that you are

I was able to correct this by adding xalan version 2.7.0 (or greater) as
a direct dependency of my project.

For additional info, see this mailing list thread that pointed me in the
right direction:

Hope that helps!

Александър Димитров wrote:
> Hi list,
> I'm getting this strange (and reproducible error) when trying to read in a AE
> descriptor through the CVD or otherwise:
> 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.
> (I'll attach the complete uima.log) The XML file has no obvious mistakes
> whatsoever and couldn't be simpler. So I'm left puzzled. I *think* one of my
> classpath dependencies is interfering with whatever loads and parses the XML
> descriptor (unfortunately, I'm relying on them…) Probably XOM is the culprit…
> Does any of this sound strange?
> xom, xmlParserAPIs, xercesImpl, icu4j, xalan, xml-apis, jaxen (1.1-beta-4),
> dom4j, jaxme-api, jdom. (These all get pulled in by maven if I add XOM)
> If I remove the XOM dependency (i.e. remove it & the transient deps from the
> classpath) everything works again as expected. The error is reproducible, i.e.
> when I re-load the XOM dependency, it fails again. Judging from the uima.log,
> it's probably xerces that interferes. The version I'm currently depending on is
> xercesImpl-2.6.2
> Any idea about further steps? Is this a bug in UIMA or one of the libs I pulled?
> Thanks for help,
> Aleks
> PS: here's the uima.log:
> 9/10/09 5:30:08 PM - 10: org.apache.uima.tools.cvd.MainFrame.handleException(575): SEVERE:
Invalid descriptor at file:/home/adimit/src/rte/desc/StanfordAnalyser.xml.
> org.apache.uima.util.InvalidXMLException: Invalid descriptor at file:/home/adimit/src/rte/desc/StanfordAnalyser.xml.
> 	at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:193)
> 	at org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier(XMLParser_impl.java:365)
> 	at org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier(XMLParser_impl.java:346)
> 	at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1520)
> 	at org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:524)
> 	at org.apache.uima.tools.cvd.control.AnnotatorOpenEventHandler.actionPerformed(AnnotatorOpenEventHandler.java:52)
> 	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
> 	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
> 	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
> 	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
> 	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
> 	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1225)
> 	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1266)
> 	at java.awt.Component.processMouseEvent(Component.java:6263)
> 	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
> 	at java.awt.Component.processEvent(Component.java:6028)
> 	at java.awt.Container.processEvent(Container.java:2041)
> 	at java.awt.Component.dispatchEventImpl(Component.java:4630)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2099)
> 	at java.awt.Component.dispatchEvent(Component.java:4460)
> 	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
> 	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
> 	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
> 	at java.awt.Container.dispatchEventImpl(Container.java:2085)
> 	at java.awt.Window.dispatchEventImpl(Window.java:2475)
> 	at java.awt.Component.dispatchEvent(Component.java:4460)
> 	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
> 	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
> 	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
> 	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
> 	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
> 	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
> 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:322)
> 	at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1020)
> 	at org.apache.uima.util.impl.SaxDeserializer_impl.startElement(SaxDeserializer_impl.java:201)
> 	at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
> 	at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> 	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
> 	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> 	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
> 	at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:176)
> 	... 32 more
> 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.xerces.dom.AttrNSImpl.setName(Unknown Source)
> 	at org.apache.xerces.dom.AttrNSImpl.<init>(Unknown Source)
> 	at org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(Unknown Source)
> 	at org.apache.xerces.dom.ElementImpl.setAttributeNS(Unknown Source)
> 	at org.apache.xml.utils.DOMBuilder.startElement(DOMBuilder.java:307)
> 	... 44 more

View raw message