uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject UIMA AS Client with failover broker url which contains randomize option
Date Tue, 10 Nov 2009 01:09:28 GMT
Hi,

I tried to configure the client with a broker failover url and
got the following exception over at a worker node:
11/10/09 1:39:24 AM - 43: 
org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.openChannel: 
INFO: Controller: XXXX Establishing New Shared Connection To Endpoint: 
ID:XXXXXXX-42012-1257420872886-0:0:2 Managed By Broker: 
tcp://XXX2:61616)?randomize=false
11/10/09 1:39:24 AM - 43: 
org.apache.uima.adapter.jms.activemq.JmsEndpointConnection_impl.handleJmsException: 
INFO: Thread: XXXX Exception:javax.jms.JMSException: Could not create 
Transport. Reason: java.lang.IllegalArgumentException: Invalid connect 
parameters: {randomize=false}

the client then times out on initializing and throws an exception:

Caused by: org.apache.uima.resource.ResourceInitializationException
    at 
org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngine_impl.initialize(BaseUIMAAsynchronousEngine_impl.java:637)
    at org.apache.uima.camel.UimaAsProducer.<init>(UimaAsProducer.java:142)
    at 
org.apache.uima.camel.UimaAsEndpoint.createProducer(UimaAsEndpoint.java:89)
    at 
org.apache.camel.processor.SendProcessor.doStart(SendProcessor.java:93)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
    at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
    at 
org.apache.camel.processor.DelegateProcessor.doStart(DelegateProcessor.java:68)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
    at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
    at 
org.apache.camel.processor.DelegateProcessor.doStart(DelegateProcessor.java:68)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
    at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
    at 
org.apache.camel.processor.DelegateProcessor.doStart(DelegateProcessor.java:68)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
    at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
    at 
org.apache.camel.processor.DelegateAsyncProcessor.doStart(DelegateAsyncProcessor.java:54)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:42)
    at 
org.apache.camel.util.ServiceHelper.startServices(ServiceHelper.java:53)
    at 
org.apache.camel.impl.DefaultConsumer.doStart(DefaultConsumer.java:85)
    at 
org.apache.camel.component.jms.JmsConsumer.doStart(JmsConsumer.java:58)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:422)
    at 
org.apache.camel.impl.DefaultCamelContext.startRoutes(DefaultCamelContext.java:664)
    at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:635)
    at 
org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:166)
    at 
org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:161)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:49)
    at 
org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:96)
    at 
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:115)
    ... 12 more
Caused by: org.apache.uima.aae.error.UimaASMetaRequestTimeout
    ... 46 more

BTW, I think a simple exception message would help here a little to 
bring the error up to the begin of
the stack trace.

The brokerUrl is:
failover:(tcp://XXX1:61616,tcp://XXX2:61616)?randomize=false

Not sure whats going wrong, but I checked that is correctly placed in the
initial param map which is passed to initialize.

The default 4.x activemq was replaced with the 5.3 release version 
through modifying
the ACTIVEMQ_HOME env variable (which just works :-) ).

Jörn


Mime
View raw message