Huh. I wonder if this was just something done to assist with the debugger and never fully tested as a standalone application. It worked in eclipse, so that was where development stopped. If I have time, I will look into that.
Unfortunately I come from the python world where this just doesn't happen so I am a bit rusty on my Java GC and Memory allocation parameters. Thank you Thilo. I appreciate the feedback. Hopefully the UIMA Folks will know what to do. Thanks, ~Ben On Wed, Apr 19, 2017 at 6:23 AM, Thilo Goetz <twgo...@gmx.de> wrote: > I forget how the pear stuff works, it's been such a long time that I used > it. Is it possible that the JVM that is started in this batch file actually > starts another JVM for the UIMA processing, without passing along the > parameters? The fact that your pear file works when you start CVD > differently would seem to suggest something along those lines... > > --Thilo > > > > On 18.04.17 18:47, Benedict Holland wrote: > >> As an update, it appears that when I run the Eclipse UIMA CAS Visual >> Debugger tool with the pear file, it works. I will post this to the UIMA >> message group but I am curious if anyone has run into this before? >> >> Thanks, >> ~Ben >> >> On Tue, Apr 18, 2017 at 11:16 AM, Benedict Holland < >> benedict.m.holl...@gmail.com> wrote: >> >> Hi Thilo, >>> >>> It should have been and I changed it and still receive an identical >>> error. >>> >>> Thanks, >>> ~Ben >>> >>> On Tue, Apr 18, 2017 at 8:06 AM, Thilo Goetz <twgo...@gmx.de> wrote: >>> >>> The second -Xms should be -Xmx instead? >>>> >>>> >>>> >>>> On 18.04.17 00:06, Benedict Holland wrote: >>>> >>>> I create the pear file and everything compiles. I call java with >>>>> -Xms10000M >>>>> -Xms10000M where >>>>> >>>>> where the last line in runUimaClass.bat is >>>>> >>>>> @"%UIMA_JAVA_CALL%" -Xms10000M -Xms10000M -DVNS_HOST=%VNS_HOST% >>>>> -DVNS_PORT=%VNS_PORT% "-Duima.home=%UIMA_HOME%" >>>>> "-Duima.datapath=%UIMA_DATAPATH%" >>>>> "-Djava.util.logging.config.file=%UIMA_LOGGER_CONFIG_FILE%" >>>>> "%UIMA_CVDMAN%" >>>>> %UIMA_JVM_OPTS% "%LOG4J_CONFIG_FILE%" >>>>> -DUimaBootstrapSuppressClassPathDisplay >>>>> -Dorg.apache.uima.jarpath="%UIMA_CLASSPATH%" -jar >>>>> "%UIMA_HOME%\lib\uimaj-bootstrap.jar" %* >>>>> >>>>> I don't really know what to do. Any help is appreciated. >>>>> >>>>> Thanks, >>>>> ~Ben >>>>> >>>>> >>>>> 06:03:12.965 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class >>>>> org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper >>>>> 06:03:13.02 - 16: >>>>> org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapp >>>>> er.createRM: >>>>> CONFIG: UIMA pear runtime set classpath to >>>>> "F:/nlp/opennlp.uima.OpenNlpTextAnalyzer/lib/jwnl.jar;F:/nlp >>>>> /opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-maxent.jar;F:/ >>>>> nlp/opennlp.uima.OpenNlpTextAnalyzer/bin;F:/nlp/opennlp.uima >>>>> .OpenNlpTextAnalyzer/lib/opennlp-tools.jar;F:/nlp/opennlp. >>>>> uima.OpenNlpTextAnalyzer/lib/opennlp-uima.jar" >>>>> for UIMA component opennlp.uima.OpenNlpTextAnalyzer. >>>>> 06:03:13.02 - 16: >>>>> org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapp >>>>> er.createRM: >>>>> CONFIG: UIMA pear runtime set datapath to >>>>> "F:/nlp/opennlp.uima.OpenNlpTextAnalyzer/models" for UIMA component >>>>> opennlp.uima.OpenNlpTextAnalyzer. >>>>> 06:03:13.03 - 16: >>>>> org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapp >>>>> er.createRMmap: >>>>> CONFIG: UIMA pear runtime: creating a Map from class >>>>> "F:/nlp/opennlp.uima.OpenNlpTextAnalyzer/lib/jwnl.jar;F:/nlp >>>>> /opennlp.uima.OpenNlpTextAnalyzer/lib/opennlp-maxent.jar;F:/ >>>>> nlp/opennlp.uima.OpenNlpTextAnalyzer/bin;F:/nlp/opennlp.uima >>>>> .OpenNlpTextAnalyzer/lib/opennlp-tools.jar;F:/nlp/opennlp. >>>>> uima.OpenNlpTextAnalyzer/lib/opennlp-uima.jar" >>>>> and data path "F:/nlp/opennlp.uima.OpenNlpTextAnalyzer/models" to its >>>>> resource manager instance. >>>>> 06:03:13.130 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:13.194 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:13.243 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:14.70 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:14.851 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:15.262 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:15.705 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:16.154 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:17.367 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:17.815 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:18.278 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:18.421 - 16: >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource: CONFIG: >>>>> trying >>>>> Resource class org.apache.uima.resource.impl.DataResource_impl >>>>> 06:03:43.21 - 16: org.apache.uima.tools.cvd.Main >>>>> Frame.handleException(526): >>>>> SEVERE: Error initializing >>>>> "org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from >>>>> descriptor >>>>> file:/F:/nlp/opennlp.uima.OpenNlpTextAnalyzer/opennlp.uima.O >>>>> penNlpTextAnalyzer_pear.xml. >>>>> org.apache.uima.resource.ResourceInitializationException: Error >>>>> initializing >>>>> "org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from >>>>> descriptor >>>>> file:/F:/nlp/opennlp.uima.OpenNlpTextAnalyzer/opennlp.uima.O >>>>> penNlpTextAnalyzer_pear.xml. >>>>> at >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource(S >>>>> impleResourceFactory.java:144) >>>>> at >>>>> org.apache.uima.impl.CompositeResourceFactory_impl.produceRe >>>>> source(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(UIMAFram >>>>> ework.java:448) >>>>> at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1486) >>>>> at org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFra >>>>> me.java:476) >>>>> 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.dispatchEventImpl(Unknown Source) >>>>> at java.awt.EventQueue.access$500(Unknown Source) >>>>> at java.awt.EventQueue$3.run(Unknown Source) >>>>> at java.awt.EventQueue$3.run(Unknown Source) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at >>>>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte >>>>> rsectionPrivilege(Unknown >>>>> Source) >>>>> at >>>>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte >>>>> rsectionPrivilege(Unknown >>>>> Source) >>>>> at java.awt.EventQueue$4.run(Unknown Source) >>>>> at java.awt.EventQueue$4.run(Unknown Source) >>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>> at >>>>> java.security.ProtectionDomain$JavaSecurityAccessImpl.doInte >>>>> rsectionPrivilege(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: java.lang.OutOfMemoryError: GC overhead limit exceeded >>>>> at java.io.DataInputStream.readUTF(Unknown Source) >>>>> at java.io.DataInputStream.readUTF(Unknown Source) >>>>> at >>>>> opennlp.tools.ml.model.BinaryFileDataReader.readUTF(BinaryFi >>>>> leDataReader.java:59) >>>>> at >>>>> opennlp.tools.ml.model.AbstractModelReader.readUTF(AbstractM >>>>> odelReader.java:80) >>>>> at >>>>> opennlp.tools.ml.model.AbstractModelReader.getPredicates(Abs >>>>> tractModelReader.java:117) >>>>> at >>>>> opennlp.tools.ml.maxent.io.GISModelReader.constructModel(GIS >>>>> ModelReader.java:77) >>>>> at >>>>> opennlp.tools.ml.model.GenericModelReader.constructModel(Gen >>>>> ericModelReader.java:62) >>>>> at >>>>> opennlp.tools.ml.model.AbstractModelReader.getModel(Abstract >>>>> ModelReader.java:85) >>>>> at >>>>> opennlp.tools.util.model.GenericModelSerializer.create(Gener >>>>> icModelSerializer.java:32) >>>>> at >>>>> opennlp.tools.util.model.GenericModelSerializer.create(Gener >>>>> icModelSerializer.java:29) >>>>> at >>>>> opennlp.tools.util.model.BaseModel.finishLoadingArtifacts(Ba >>>>> seModel.java:309) >>>>> at opennlp.tools.util.model.BaseModel.loadModel(BaseModel.java:239) >>>>> at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:173) >>>>> at opennlp.tools.parser.ParserModel.<init>(ParserModel.java:177) >>>>> at >>>>> opennlp.uima.parser.ParserModelResourceImpl.loadModel(Parser >>>>> ModelResourceImpl.java:35) >>>>> at >>>>> opennlp.uima.parser.ParserModelResourceImpl.loadModel(Parser >>>>> ModelResourceImpl.java:26) >>>>> at >>>>> opennlp.uima.util.AbstractModelResource.load(AbstractModelRe >>>>> source.java:35) >>>>> at >>>>> org.apache.uima.resource.impl.ResourceManager_impl.registerR >>>>> esource(ResourceManager_impl.java:750) >>>>> at >>>>> org.apache.uima.resource.impl.ResourceManager_impl.initializ >>>>> eExternalResources(ResourceManager_impl.java:594) >>>>> at >>>>> org.apache.uima.resource.Resource_ImplBase.initialize(Resour >>>>> ce_ImplBase.java:210) >>>>> at >>>>> org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase. >>>>> initialize(AnalysisEngineImplBase.java:157) >>>>> at >>>>> org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine >>>>> _impl.initialize(AggregateAnalysisEngine_impl.java:128) >>>>> at >>>>> org.apache.uima.impl.AnalysisEngineFactory_impl.produceResou >>>>> rce(AnalysisEngineFactory_impl.java:94) >>>>> at >>>>> org.apache.uima.impl.CompositeResourceFactory_impl.produceRe >>>>> source(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(UIMAFram >>>>> ework.java:448) >>>>> at >>>>> org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapp >>>>> er.initialize(PearAnalysisEngineWrapper.java:275) >>>>> at >>>>> org.apache.uima.util.SimpleResourceFactory.produceResource(S >>>>> impleResourceFactory.java:123) >>>>> at >>>>> org.apache.uima.impl.CompositeResourceFactory_impl.produceRe >>>>> source(CompositeResourceFactory_impl.java:62) >>>>> at org.apache.uima.UIMAFramework.produceResource(UIMAFramework. >>>>> java:279) >>>>> at org.apache.uima.UIMAFramework.produceResource(UIMAFramework. >>>>> java:331) >>>>> >>>>> >>>>> >