CAS visual debugger works in eclipse but not in the binary

2017-04-18 Thread Benedict Holland
Hello All,

I am attempting to integrate the OpenNLP application with the UIMA
framework. I created the PEAR file successfully.

When I run the UIMA Pear Installer from eclipse, it works. When I attempt
to run the runPearInstaller.bat file, it fails.

When I run the CAS Visual Debugger from cvd.bat, I get the error below.
When I run it from eclipse, everything works.

Any idea about how to proceed?

Thanks,
~Ben

Error:

12:54:05.375 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper
12:54:05.410 - 16:
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.createRM:
CONFIG: UIMA pear runtime set classpath to
"F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/jwnl.jar;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-maxent.jar;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/bin;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-tools.jar;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-uima.jar"
for UIMA component opennlp.uima.OpenNlpTextAnalyzer.
12:54:05.410 - 16:
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.createRM:
CONFIG: UIMA pear runtime set datapath to
"F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/models" for UIMA
component opennlp.uima.OpenNlpTextAnalyzer.
12:54:05.411 - 16:
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.createRMmap:
CONFIG: UIMA pear runtime: creating a Map from class
"F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/jwnl.jar;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-maxent.jar;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/bin;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-tools.jar;F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-uima.jar"
and data path
"F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/models" to its
resource manager instance.
12:54:05.549 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:05.578 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:05.625 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:06.339 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:07.02 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:07.391 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:07.860 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:09.99 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:09.544 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:09.875 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:10.365 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:11.992 - 16:
org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: trying
Resource class org.apache.uima.resource.impl.DataResource_impl
12:54:37.527 - 16:
org.apache.uima.tools.cvd.MainFrame.handleException(526): SEVERE: Error
initializing
"org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from
descriptor
file:/F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/opennlp.uima.OpenNlpTextAnalyzer_pear.xml.
org.apache.uima.resource.ResourceInitializationException: Error
initializing
"org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from
descriptor
file:/F:/nlp/installed_pear/opennlp.uima.OpenNlpTextAnalyzer/opennlp.uima.OpenNlpTextAnalyzer_pear.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:279)
at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:331)
at
org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:448)
at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1486)
at org.apache.uima.tools.cvd.MainFrame.loadAEDescripto

Synchonizing Batches AE and StatusCallbackListener

2017-04-18 Thread Erik Fäßler
Hi all,

I have a use case where a consumer of mine sends CAS XMI data into a database 
in batchProcessComplete(). I also use a StatusCallbackListener that logs into 
the database whether a document has been completed processing, this is also 
done batch wise.
Now the issue is, if the pipeline crashes for any reason, I must start over 
because the “completion” flag from the CallbackListener and the data actually 
sent by the XMI consumer is not synchronised, i.e. I don’t know if the data has 
actually been sent for a document that has completed processing because 
everything is done batch-wise and not immediately for performance reasons. I 
also cannot just look into the database which XMI data is there because it only 
gets sent on a met condition.

I would like to somehow communicate between the consumer and the 
CallbackListener to send their data for the same documents in agreement. Is 
there anything I can do to achieve this?

Best,

Erik