[
https://issues.apache.org/jira/browse/UIMA-904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12579465#action_12579465
]
Marshall Schor commented on UIMA-904:
-------------------------------------
The diagnosis is that the cpm descriptor has an import (in a CasProcessor) for
a vinci deployment descriptor. When the main CPE is "parsed" , it follows the
import links, and tries to parse those things.
The CPM implementation has a separate parser for the vinci deployment
descriptor - with separate SAX callbacks, etc. However, that parser is not
used here (it is used later); instead, here, the main one is used. The
factoryConfig.xml (which sets up what the main parser recognizes) doesn't have
any entries for <deployment ...> so that xml parse fails.
It seems to me that either we have to add that to the factoryConfig (along with
the interface and impl classes???) or get the main parser to stop before it
imports the deployment descriptor.
Any guidance here appreciated...
> InvalidXMLException when running managed Deployment example for CPE
> -------------------------------------------------------------------
>
> Key: UIMA-904
> URL: https://issues.apache.org/jira/browse/UIMA-904
> Project: UIMA
> Issue Type: Bug
> Components: Collection Processing
> Affects Versions: 2.2.1
> Reporter: Michael Baessler
> Assignee: Adam Lally
> Fix For: 2.2.2
>
>
> Error loading CPE Descriptor
> C:\Programme\apache-uima\examples\descriptors\collection_processing_engine\MeetingFinderCPE_Managed_Windows.xml
> org.apache.uima.util.InvalidXMLException: Invalid descriptor at
> file:/C:/Programme/apache-uima/examples/deploy/vinci/Deploy_MeetingDetectorTAE.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.cpm.CpmPanel.openCpeDescriptor(CpmPanel.java:1783)
> at
> org.apache.uima.tools.cpm.CpmPanel.actionPerformed(CpmPanel.java:847)
> at
> javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
> at
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
> at
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> at
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
> at
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
> at
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
> at java.awt.Component.processMouseEvent(Component.java:5517)
> at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
> at java.awt.Component.processEvent(Component.java:5282)
> at java.awt.Container.processEvent(Container.java:1966)
> at java.awt.Component.dispatchEventImpl(Component.java:3984)
> at java.awt.Container.dispatchEventImpl(Container.java:2024)
> at java.awt.Component.dispatchEvent(Component.java:3819)
> at
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
> at java.awt.Container.dispatchEventImpl(Container.java:2010)
> at java.awt.Window.dispatchEventImpl(Window.java:1791)
> at java.awt.Component.dispatchEvent(Component.java:3819)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
> at
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
> Caused by: org.apache.uima.util.InvalidXMLException: The XML parser
> encounteredan unknown element type: deployment.
> at
> org.apache.uima.util.impl.XMLParser_impl.buildObject(XMLParser_impl.java:276)
> at
> org.apache.uima.util.impl.SaxDeserializer_impl.getObject(SaxDeserializer_impl.java:114)
> at
> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:184)
> ... 30 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.