activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gilesD <>
Subject Re: ActiveMQ 5.8 FailoverTransport - Invalid connect parameters
Date Thu, 20 Mar 2014 20:05:23 GMT
Caused by: java.lang.IllegalArgumentException: Invalid connect parameters:
{initialReconnectDelay=100} "

I had a similar issue, the URI is perfectly valid, after looking into the
activemq source I found that when it was trying to set the failover
transport properties it was throwing an exception because it could not find
the converter from the TypeConversionSupport converters list in
activemq-client and as a result the properties were not set and you would
get the "Invalid connect parameters" error.

This issue was because of a missing TypeConverter, The converters were not
initializied properly, There are 25 converters but only 7 were loaded. The
converter that we needed was the String to Long but it was missing because
of an error when creating the converter for UTF8Buffer i.e.
CONVERSION_MAP.put(new ConversionKey(UTF8Buffer.class, String.class),

The UTF8Buffer class could not found in my project as a result the remaining
converters were not loaded, so I had to download and add the jar hawtbuf19
and this took care of the issue.
< >  

Greenbean wrote
> We are having problems with the failovertransport after upgrading to
> ActiveMQ 5.8.  Previously we could use a URL as shown below.  However,
> after upgrading to the 5.8 client libraries we get an Invalid connect
> parameters error.  I have tried various combinations (failover:// and
> failover: without the //) but nothing seems to work.  Has anyone else run
> in to this problem?
> failover://(tcp://myhost:61616)?initialReconnectDelay=100
> Caused by: java.lang.IllegalArgumentException: Invalid connect parameters:
> {initialReconnectDelay=100}
> 	at
> org.apache.activemq.transport.failover.FailoverTransportFactory.createTransport(
> 	at
> org.apache.activemq.transport.failover.FailoverTransportFactory.doConnect(
> 	at
> org.apache.activemq.transport.TransportFactory.connect(
> 	at
> org.apache.activemq.ActiveMQConnectionFactory.createTransport(

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message