Thank you for posting the whole trace back.

I can see from that that you are running the CVD.  I'm guessing that you are
asking the CVD to load some annotators, including some aggregate, which, in turn
specifies the HMM annotator.  That annotator is written to find some resources
it uses, on the classpath. 

So, I think, the fix is to insure that you arrange to launch the CVD with a
classpath which includes the things the annotators need. 

For this particular item, try altering the launcher (an Eclipse thing) to
include the HMM annotator project.

-Marshall


On 9/20/2010 12:54 AM, Abhik Lahiri wrote:
> Hi Marshall,
> Thanks a lot for your reply! I had pasted the complete error message in my
> previous mail. However, I forgot to paste the output in the log file, which
> I am doing so below:
>
> 9/19/10 9:53:20 PM - 10: WhitespaceTokenizer.initialize: INFO: MESSAGE
> LOCALIZATION FAILED: Can't find bundle for base name
> org.apache.uima.annotator.whitespaceTokenizerMessages, locale en_US
> 9/19/10 9:53:20 PM - 10:
> org.apache.uima.tools.cvd.MainFrame.handleException(527): SEVERE: Error
> initializing "org.apache.uima.resource.impl.DataResource_impl" from
> descriptor file:/C:/Users/Abhik/workspace/Tagger/desc/HmmTagger.xml.
> org.apache.uima.resource.ResourceInitializationException: Error initializing
> "org.apache.uima.resource.impl.DataResource_impl" from descriptor
> file:/C:/Users/Abhik/workspace/Tagger/desc/HmmTagger.xml.
>     at
> org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:144)
>     at
> org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
>     at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:267)
>     at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:241)
>     at
> org.apache.uima.resource.impl.ResourceManager_impl.registerResource(ResourceManager_impl.java:546)
>     at
> org.apache.uima.resource.impl.ResourceManager_impl.initializeExternalResources(ResourceManager_impl.java:423)
>     at
> org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:146)
>     at
> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:157)
>     at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.initialize(PrimitiveAnalysisEngine_impl.java:125)
>     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:267)
>     at
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:361)
>     at
> org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:254)
>     at
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:431)
>     at
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:375)
>     at
> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:185)
>     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:267)
>     at
> org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:335)
>     at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1464)
>     at
> org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:477)
>     at
> org.apache.uima.tools.cvd.control.AnnotatorOpenEventHandler.actionPerformed(AnnotatorOpenEventHandler.java:52)
>     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
>     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
>     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
>     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
>     at javax.swing.AbstractButton.doClick(Unknown Source)
>     at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
>     at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
> Source)
>     at java.awt.Component.processMouseEvent(Unknown Source)
>     at javax.swing.JComponent.processMouseEvent(Unknown Source)
>     at java.awt.Component.processEvent(Unknown Source)
>     at java.awt.Container.processEvent(Unknown Source)
>     at java.awt.Component.dispatchEventImpl(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Window.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.EventQueue.dispatchEvent(Unknown Source)
>     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.run(Unknown Source)
> Caused by: org.apache.uima.resource.ResourceInitializationException: Could
> not access the resource data at file:english/BrownModel.dat.
>     at
> org.apache.uima.resource.impl.DataResource_impl.initialize(DataResource_impl.java:126)
>     at
> org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:123)
>     ... 50 more
>
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Hope this helps,
> Thanking you,
> Regards,
> Abhik
>
>
> On Sun, Sep 19, 2010 at 8:43 PM, Marshall Schor <[email protected]> wrote:
>
>>
>> On 9/19/2010 4:22 PM, Abhik Lahiri wrote:
>>> Hi all,
>>> I am a newbie at the UIMA framework, and I am facing problems with
>> running
>>> the aggregate AE in the HmmTagger project put up on the UIMA sandbox.
>> When I
>>> load HmmtaggerAggregate.xml as the AE in CVD, I get the following
>>> exception:  org.apache.resource.ResourceInitializationException: Error
>>> initializing "org.apache.uima.resource.impl.Data_Resource_impl" from the
>>> descriptor file:/C:Users/Abhik/workspace/Tagger/desc/HmmTagger.xml .
>>> I am running my project in Eclipse.
>> Can you please paste the rest of the exception messages?  Usually, the
>> error
>> will be followed by a stack trace, and then a line "Caused by ...." and
>> another
>> stack trace etc.
>>
>> It could be helpful to see what the cause of the above error was.
>>
>> -Marshall
>>
>>
>>

Reply via email to