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

Adam Lally commented on UIMA-904:
---------------------------------

The CPE GUI never really supported the managed and non-managed deployment 
options.  This isn't a problem with parsing the main CPE descriptor, which 
works fine.  It's a problem in the CPE GUI code, which loops over all the CAS 
Processors and tries to populate the tabs in the GUI.  (CpmFrame.java line 
1783).

What's the right thing to do here?  Should it put up an empty tab in the GUI?  
Probably, the code in CpmFrame could be updated to check if deployment was set 
to "local", and bypass the usual call to parseResourceSpecifier.

> 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.

Reply via email to