RabbitMQ inequivalent arg 'x-max-length-bytes' Exception











up vote
0
down vote

favorite












I try to send some message in RabbitMQ with spring, but everytime on the first message I got an Exception of this type:



    com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: 
#method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED -
inequivalent arg 'x-max-length-bytes' for queue
'queue1'
in vhost 'f46b51d8-0750-4e7e-9288-3bdb3c5dac01':
received none but current is the value '1073741824' of type 'long', class
id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at
com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:229)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117) ... 68 moreCaused by:


I don't set x-max-length-bytes in my configuration



spring.rabbitmq.host= xxxxxx
spring.rabbitmq.port= 5671
spring.rabbitmq.username= xxxxxx
spring.rabbitmq.password= xxxxxx
spring.rabbitmq.virtual-host= f46b51d8-0750-4e7e-9288-3bdb3c5dac01
spring.rabbitmq.ssl.enabled= true
rabbimq.exchange.name= ex1
rabbimq.queue.name= queue1
rabbimq.routing.key= route1


the other messages are sent correctly but only the first message causes this exception



Can anyone help me?










share|improve this question






















  • It appears to me that queue1 is expecting the arg x-max-length-bytes.
    – user10527814
    Nov 7 at 10:08















up vote
0
down vote

favorite












I try to send some message in RabbitMQ with spring, but everytime on the first message I got an Exception of this type:



    com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: 
#method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED -
inequivalent arg 'x-max-length-bytes' for queue
'queue1'
in vhost 'f46b51d8-0750-4e7e-9288-3bdb3c5dac01':
received none but current is the value '1073741824' of type 'long', class
id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at
com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:229)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117) ... 68 moreCaused by:


I don't set x-max-length-bytes in my configuration



spring.rabbitmq.host= xxxxxx
spring.rabbitmq.port= 5671
spring.rabbitmq.username= xxxxxx
spring.rabbitmq.password= xxxxxx
spring.rabbitmq.virtual-host= f46b51d8-0750-4e7e-9288-3bdb3c5dac01
spring.rabbitmq.ssl.enabled= true
rabbimq.exchange.name= ex1
rabbimq.queue.name= queue1
rabbimq.routing.key= route1


the other messages are sent correctly but only the first message causes this exception



Can anyone help me?










share|improve this question






















  • It appears to me that queue1 is expecting the arg x-max-length-bytes.
    – user10527814
    Nov 7 at 10:08













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I try to send some message in RabbitMQ with spring, but everytime on the first message I got an Exception of this type:



    com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: 
#method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED -
inequivalent arg 'x-max-length-bytes' for queue
'queue1'
in vhost 'f46b51d8-0750-4e7e-9288-3bdb3c5dac01':
received none but current is the value '1073741824' of type 'long', class
id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at
com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:229)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117) ... 68 moreCaused by:


I don't set x-max-length-bytes in my configuration



spring.rabbitmq.host= xxxxxx
spring.rabbitmq.port= 5671
spring.rabbitmq.username= xxxxxx
spring.rabbitmq.password= xxxxxx
spring.rabbitmq.virtual-host= f46b51d8-0750-4e7e-9288-3bdb3c5dac01
spring.rabbitmq.ssl.enabled= true
rabbimq.exchange.name= ex1
rabbimq.queue.name= queue1
rabbimq.routing.key= route1


the other messages are sent correctly but only the first message causes this exception



Can anyone help me?










share|improve this question













I try to send some message in RabbitMQ with spring, but everytime on the first message I got an Exception of this type:



    com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: 
#method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED -
inequivalent arg 'x-max-length-bytes' for queue
'queue1'
in vhost 'f46b51d8-0750-4e7e-9288-3bdb3c5dac01':
received none but current is the value '1073741824' of type 'long', class
id=50, method-id=10)
at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66)
at
com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32)
at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366)
at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:229)
at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117) ... 68 moreCaused by:


I don't set x-max-length-bytes in my configuration



spring.rabbitmq.host= xxxxxx
spring.rabbitmq.port= 5671
spring.rabbitmq.username= xxxxxx
spring.rabbitmq.password= xxxxxx
spring.rabbitmq.virtual-host= f46b51d8-0750-4e7e-9288-3bdb3c5dac01
spring.rabbitmq.ssl.enabled= true
rabbimq.exchange.name= ex1
rabbimq.queue.name= queue1
rabbimq.routing.key= route1


the other messages are sent correctly but only the first message causes this exception



Can anyone help me?







java spring spring-boot rabbitmq






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 7 at 9:07









dargui

12




12












  • It appears to me that queue1 is expecting the arg x-max-length-bytes.
    – user10527814
    Nov 7 at 10:08


















  • It appears to me that queue1 is expecting the arg x-max-length-bytes.
    – user10527814
    Nov 7 at 10:08
















It appears to me that queue1 is expecting the arg x-max-length-bytes.
– user10527814
Nov 7 at 10:08




It appears to me that queue1 is expecting the arg x-max-length-bytes.
– user10527814
Nov 7 at 10:08












1 Answer
1






active

oldest

votes

















up vote
0
down vote













PRECONDITION_FAILED means that you have a queue already declared, and you are trying to redeclare the same queue with different paramenters.



check the queue using the management UI or the command line:



rabbitmqctl list_queues





share|improve this answer





















  • Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
    – dargui
    Nov 8 at 13:05











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186343%2frabbitmq-inequivalent-arg-x-max-length-bytes-exception%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













PRECONDITION_FAILED means that you have a queue already declared, and you are trying to redeclare the same queue with different paramenters.



check the queue using the management UI or the command line:



rabbitmqctl list_queues





share|improve this answer





















  • Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
    – dargui
    Nov 8 at 13:05















up vote
0
down vote













PRECONDITION_FAILED means that you have a queue already declared, and you are trying to redeclare the same queue with different paramenters.



check the queue using the management UI or the command line:



rabbitmqctl list_queues





share|improve this answer





















  • Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
    – dargui
    Nov 8 at 13:05













up vote
0
down vote










up vote
0
down vote









PRECONDITION_FAILED means that you have a queue already declared, and you are trying to redeclare the same queue with different paramenters.



check the queue using the management UI or the command line:



rabbitmqctl list_queues





share|improve this answer












PRECONDITION_FAILED means that you have a queue already declared, and you are trying to redeclare the same queue with different paramenters.



check the queue using the management UI or the command line:



rabbitmqctl list_queues






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 7 at 15:52









Gabriele

14.2k42133




14.2k42133












  • Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
    – dargui
    Nov 8 at 13:05


















  • Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
    – dargui
    Nov 8 at 13:05
















Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
– dargui
Nov 8 at 13:05




Yes tha't right...the queue exists and I want to use the queue that already exists...How can I say to Spring Boot that I want only to use the exchange and the queue and I don't want to redeclare them?
– dargui
Nov 8 at 13:05


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53186343%2frabbitmq-inequivalent-arg-x-max-length-bytes-exception%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini