[ 
https://issues.apache.org/jira/browse/UIMA-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marshall Schor updated UIMA-1289:
---------------------------------

    Affects Version/s: 2.3

defer past 2.3.0

> If an aggregate uses the unsupported "include" instead of "import" a very 
> very very obscure error message results
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: UIMA-1289
>                 URL: https://issues.apache.org/jira/browse/UIMA-1289
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.2.2, 2.3
>            Reporter: Burn Lewis
>            Priority: Minor
>
> In converting a CPE descriptor to an aggregate descriptor I forgot to change 
> one "<include ..." to "<import ...".
> The docs indicate that include is not supported but the CDE error message was:
> "ResourceInitializationException: The CasCreationUtils.createCas method was 
> passed a collection containing an object of class 
> org.apache.uima.collection.impl.metadata.cpe.CpeIncludeImpl, which is not 
> supported."
> Not very helpful!  
> The cvd reported a stack trace but still no clue as to what part of what file 
> was in error:
> org.apache.uima.tools.cvd.MainFrame.handleException(575): SEVERE: 
> org.apache.uima.collection.impl.metadata.cpe.CpeIncludeImpl incompatible with 
> org.apache.uima.resource.ResourceSpecifier
> java.lang.ClassCastException: 
> org.apache.uima.collection.impl.metadata.cpe.CpeIncludeImpl incompatible with 
> org.apache.uima.resource.ResourceSpecifier
>       at 
> org.apache.uima.analysis_engine.impl.AnalysisEngineDescription_impl.getComponentSpecifier(AnalysisEngineDescription_impl.java:439)
>       at 
> org.apache.uima.analysis_engine.impl.AnalysisEngineDescription_impl.checkForInvalidParameterOverrides(AnalysisEngineDescription_impl.java:380)
>       at 
> org.apache.uima.resource.impl.ResourceCreationSpecifier_impl.validateConfigurationParameters(ResourceCreationSpecifier_impl.java:246)
>       at 
> org.apache.uima.resource.impl.ResourceCreationSpecifier_impl.validate(ResourceCreationSpecifier_impl.java:219)
>       at 
> org.apache.uima.analysis_engine.impl.AnalysisEngineDescription_impl.validate(AnalysisEngineDescription_impl.java:304)
>       at 
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:163)
>       at 
> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
>       at 
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>       at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
>       at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
>       at 
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)
>       at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1529)
>       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:2006)
>       at 
> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2329)
>       at 
> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:398)
>       at 
> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:253)
>       at javax.swing.AbstractButton.doClick(AbstractButton.java:368)
>       at 
> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1231)
>       at 
> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1272)
>       at java.awt.Component.processMouseEvent(Component.java:6052)
>       at javax.swing.JComponent.processMouseEvent(JComponent.java:3276)
>       at java.awt.Component.processEvent(Component.java:5817)
>       at java.awt.Container.processEvent(Container.java:2069)
>       at java.awt.Component.dispatchEventImpl(Component.java:4424)
>       at java.awt.Container.dispatchEventImpl(Container.java:2127)
>       at java.awt.Component.dispatchEvent(Component.java:4254)
>       at 
> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4333)
>       at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3997)
>       at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3927)
>       at java.awt.Container.dispatchEventImpl(Container.java:2113)
>       at java.awt.Window.dispatchEventImpl(Window.java:2451)
>       at java.awt.Component.dispatchEvent(Component.java:4254)
>       at java.awt.EventQueue.dispatchEvent(EventQueue.java:610)
>       at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:284)
>       at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)
>       at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:184)
>       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:179)
>       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:171)
>       at java.awt.EventDispatchThread.run(EventDispatchThread.java:132)

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