You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2013/11/04 22:08:17 UTC

[jira] [Commented] (UIMA-2155) XALAN 2.6.0 overriding normal Java transformer factory in some JVMs causes UIMA XML parser failures

    [ https://issues.apache.org/jira/browse/UIMA-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13813269#comment-13813269 ] 

Richard Eckart de Castilho commented on UIMA-2155:
--------------------------------------------------

before your commit: adding a Xalan 2.6.0 to the latest uimaj-core as a dependency: 

- UIMA-3404 shows up
- many tests fail

after your commit: adding a Xalan 2.6.0 to the latest uimaj-core as a dependency: 

- UIMA-3404 doesn't show up
- one failing test in XMLSerializerTest (XML 1.1 test) which writes version 1.0 to output file. Not critical I guess.

On tapestry VM:

- UIMA-3404 doesn't show up
- one failing test in XMLSerializerTest (XML 1.1 test) which writes version 1.0 to output file. Not critical I guess.

Looks good now, I think.


> XALAN 2.6.0 overriding normal Java transformer factory in some JVMs causes UIMA XML parser failures
> ---------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-2155
>                 URL: https://issues.apache.org/jira/browse/UIMA-2155
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>            Reporter: deprecated (use "rec")
>            Assignee: Marshall Schor
>             Fix For: 2.4.0SDK, 2.5.0SDK
>
>         Attachments: testcase-UIMA-2155.zip
>
>
> Several people in our group that run Linux with the Sun JDK have run into problems that UIMA fails to parse descriptors unless Xerces 2.9.1 and Xalan 2.7.1. are on the classpath. 
> It might be a good idea to add these two as standard dependencies to uimaj-core. 
> {noformat}
> org.apache.uima.util.InvalidXMLException: Invalid descriptor at Chunks.xml.
>     at org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:194)
>     at org.apache.uima.util.impl.XMLParser_impl.parseTypeSystemDescription(XMLParser_impl.java:708)
>     at org.apache.uima.util.impl.XMLParser_impl.parseTypeSystemDescription(XMLParser_impl.java:695)
>     at org.uimafit.factory.TypeSystemDescriptionFactory.createTypeSystemDescription(TypeSystemDescriptionFactory.java:145)
>     at org.uimafit.factory.AnalysisEngineFactory.createPrimitiveDescription(AnalysisEngineFactory.java:229)
>     at wikicounts.RunCountExperiment.run(RunCountExperiment.java:66)
>     at wikicounts.RunCountExperiment.main(RunCountExperiment.java:27)
> 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:202)
>     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 Source)
>     at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
>     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:177)
>     ... 6 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)
>     ... 18 more
> {noformat}
>     



--
This message was sent by Atlassian JIRA
(v6.1#6144)