uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kranok@t-online.de" <kra...@t-online.de>
Subject UIMA-AS with ActiveMQ VM Transport
Date Wed, 14 Oct 2020 16:55:15 GMT
Hi,

I'm using UIMA-AS in a single JVM process, with having the activemq broker, the uima-as client
and the as deployment in the same java process.
UimaAsynchronousEngine.sendAndReceiveCAS() is used to send and wait for the processed CAS.
This setups works with fine with brokerURL "tcp://localhost:61616".

If I change the brokerURL to "vm://localhost?broker.persistent=false" I get this NullPointerException
on reply and after successful processing of the CAS.

java.lang.NullPointerException: null
        at org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.sendVMMessage(AggregateAnalysisEngineController_impl.java:2351)
~[uimaj-as-core-2.10.3.jar!/:2.10.3]
        at org.apache.uima.aae.controller.AggregateAnalysisEngineController_impl.sendReplyToCollocatedClient(AggregateAnalysisEngineController_impl.java:2242)
~[uimaj-as-core-2.10.3.jar!/:2.10.3]

If I use "vm://localhost?marshal=false&broker.persistent=false" as brokerURL, there is
a similar NPE before processing at

java.lang.NullPointerException: null
        at org.apache.uima.aae.controller.BaseAnalysisEngineController.sendMetadata(BaseAnalysisEngineController.java:2952)
~[uimaj-as-core-2.10.3.jar!/:2.10.3]
        at org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.sendMetadata(PrimitiveAnalysisEngineController_impl.java:1337)
~[uimaj-as-core-2.10.3.jar!/:2.10.3]
        at org.apache.uima.aae.handler.input.MetadataRequestHandler_impl.handle(MetadataRequestHandler_impl.java:69)
~[uimaj-as-core-2.10.3.jar!/:2.10.3]
        at org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:745)
~[uimaj-as-activemq-2.10.3.jar!/:2.10.3]
        at org.apache.uima.adapter.jms.activemq.UimaDefaultMessageListenerContainer.doInvokeListener(UimaDefaultMessageListenerContainer.java:1180)
~[uimaj-as-activemq-2.10.3.jar!/:2.10.3]
		
Both are due to empty dispatchers in org.apache.uima.aae.spi.transport.vm.VmTransport for
the temp reply queue.

Are these bugs and/or is there any way to avoid tcp/http brokerURL?

Thank you very much,
John


Mime
View raw message