Or to put it more simple:<br>If you already have a queue, and you try to declare it again (which is ok), you will have to make sure that you declare it with the same parameters. As your stack trace shows, and as Mark mentions, in your case the x-message-ttl is the parameter that differs.<br>
<br>I want to take to use the occasion to ask a question in this context:<br>For most of the parameters this is a good approach, but for some parameters this can be a bit annoying, especially for the HA feature, where you specify over which servers a queue is distributed. For the TTL it&#39;s a bit similar<br>
At least I feel sometimes that it would be good if the queue parameters could be adjusted at runtime, that the mirroring could be changed at runtime, without clients requiring an update.<br>The current approach we have taken is that clients don&#39;t define the queues anymore, but they are managed externally. Which is not ideal either :-( If anyone has a good recommendation, ideas, ... I would be interested to hear them<br>
<br>Cheers<br>Maze<br><br><br><div class="gmail_quote">On Fri, Aug 31, 2012 at 7:15 PM, Mark Fisher <span dir="ltr">&lt;<a href="mailto:markfisher@vmware.com" target="_blank">markfisher@vmware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">The error message is showing that you are trying to declare a Queue where the value for &#39;x-message-ttl&#39; does not match that of an existing Queue with the same name (&#39;<span style="font-family:Helvetica,Arial,sans-serif">ml2gos_events&#39;)</span>.<br>
<br><hr><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)"><b>From: </b>&quot;Nadeem M Nayeck&quot; &lt;<a href="mailto:nadeem.m.nayeck@gmail.com" target="_blank">nadeem.m.nayeck@gmail.com</a>&gt;<br>
<b>To: </b>&quot;Discussions about RabbitMQ&quot; &lt;<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a>&gt;<br><b>Sent: </b>Friday, August 31, 2012 12:57:51 PM<br>
<b>Subject: </b>[rabbitmq-discuss] �rabbitmq - simple message sending error<div><div class="h5"><br><br>hi guys<br>I wrote a simple java client� sending a message to a queue on Rabbit<br>I get this:<br><br><br>org.springframework.amqp.rabbit.connection.CachingConnectionFactory$CachedChannelInvocationHandler.invoke(CachingConnectionFactory.java:331)<br>

��� at $Proxy9.queueDeclare(Unknown Source)<br>��� at org.springframework.amqp.rabbit.core.RabbitAdmin.declareQueues(RabbitAdmin.java:342)<br>��� at org.springframework.amqp.rabbit.core.RabbitAdmin.access$200(RabbitAdmin.java:46)<br>

��� at org.springframework.amqp.rabbit.core.RabbitAdmin$11.doInRabbit(RabbitAdmin.java:312)<br>��� at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:600)<br>��� ... 41 more<br>Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; reason: {#method&lt;channel.close&gt;(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg &#39;x-message-ttl&#39;for queue &#39;ml2gos_events&#39; in vhost &#39;OPLCPMED00&#39;: received none but current is the value &#39;86400000&#39; of type &#39;long&#39;, class-id=50, method-id=10), null, &quot;&quot;}<br>

��� at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)<br>��� at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)<br>��� at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:343)<br>

��� at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:216)<br>��� at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:118)<br>��� ... 53 more<br>Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; reason: {#method&lt;channel.close&gt;(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg &#39;x-message-ttl&#39;for queue &#39;ml2gos_events&#39; in vhost &#39;OPLCPMED00&#39;: received none but current is the value &#39;86400000&#39; of type &#39;long&#39;, class-id=50, method-id=10), null, &quot;&quot;}<br>

��� at com.rabbitmq.client.impl.ChannelN.asyncShutdown(ChannelN.java:454)<br>��� at com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:294)<br>��� at com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChannel.java:144)<br>

��� at com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:91)<br>��� at com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:519)<br><br><br><br>Any pointers?<br><br>regards,<br>Nadeem<br>
<br></div></div>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote><br></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br>