with qpid library 0.61. It was working till RabbitMQ was updated to version 3.11.0 (i think it was 28 September). From this point it began to fail with internal amqp error and after receiving all the messages from the JMS Server and queue was empty, instead of null at the end there is an exception. Here is the error message:
{function_clause,[{rabbit_channel,'-handle_queue_actions/2-inlined-0-',
[{send_drained,[{<<99,116,97,103,45,0,0,0,0>>,999}]},
{ch,{conf,running,rabbit_framing_amqp_0_9_1,1,<0.1016.0>,
<0.1016.0>,<0.1008.0>,<<49,55,50,46,49,55,46,48,46,49,58,52,57,53,51,52,32,45,62,32,49,55,50,46,49,55,46,48,46,50,49,58,53,54,55,50>>,
undefined,{user,<<117,115,101,114,49>>,[administrator],[{rabbit_auth_backend_internal,
#Fun<rabbit_auth_backend_internal.2.31211176>}]},
<<47>>,<<>>,<0.1013.0>,
[{<<112,117,98,108,105,115,104,101,114,95,99,111,110,102,105,114,109,115>>,bool,true},
{<<101,120,99,104,97,110,103,101,95,101,120,99,104,97,110,103,101,95,98,105,110,100,105,110,103,115>>,bool,true},
{<<98,97,115,105,99,46,110,97,99,107>>,bool,true},
{<<99,111,110,115,117,109,101,114,95,99,97,110,99,101,108,95,110,111,116,105,102,121>>,bool,true},
{<<99,111,110,110,101,99,116,105,111,110,46,98,108,111,99,107,101,100>>,bool,true},
{<<97,117,116,104,101,110,116,105,99,97,116,105,111,110,95,102,97,105,108,117,114,101,95,99,108,111,115,101>>,bool,true}],
none,65535,134217728,1800000,#null,1000000000},{lstate,<0.1019.0>,false},none,2,{0,[],[]},{state,#null,erlang},
#{<<99,116,97,103,45,0,0,0,0>> =>
{{amqqueue,{resource,<<47>>,queue,<<114,97,98,98,105,116,77,81,81,117,101,117,101,49>>},false,false,none,[],<0.962.0>,[],[],[],undefined,undefined,[],[],live,0,[],<<47>>,
#{user => <<117,115,101,114,49>>},rabbit_classic_queue,#{}},
{false,65535,false,[{<<120,45,99,114,101,100,105,116>>,table,[{<<99,114,101,100,105,116>>,long,0},
{<<100,114,97,105,110>>,bool,false}]}]}}},#{{resource,<<47>>,queue,<<114,97,98,98,105,116,77,81,81,117,101,117,101,49>>} =>
{1,{<<99,116,97,103,45,0,0,0,0>>,nil,nil}}},{state,fine,5000,#Ref<0.2267999963.1369178113.102299>},
false,1,{rabbit_confirms,undefined,#{}},[],[],none,flow,[],{rabbit_queue_type,#{{resource,<<47>>,queue,<<114,97,98,98,105,116,77,81,81,117,101,117,101,49>>} =>
{ctx,rabbit_classic_queue,{resource,<<47>>,queue,<<114,97,98,98,105,116,77,81,81,117,101,117,101,49>>},{rabbit_classic_queue,<0.962.0>,
{resource,<<47>>,queue,<<114,97,98,98,105,116,77,81,81,117,101,117,101,49>>},#{}}}},#{<0.962.0> =>
{resource,<<47>>,queue,<<114,97,98,98,105,116,77,81,81,117,101,117,101,49>>}}},
#Ref<0.
2267999963.1369178113.102298>,false}],[{file,[114,97,98,98,105,116,95,99,104,97,110,110,101,108,46,101,114,108]},
{line,2860}]},{lists,foldl,3,[{file,[108,105,115,116,115,46,101,114,108]},{line,1350}]},{rabbit_channel,handle_cast,2,
[{file,[114,97,98,98,105,116,95,99,104,97,110,110,101,108,46,101,114,108]},{line,772}]},
{gen_server2,handle_msg,2,[{file,[103,101,110,95,115,101,114,118,101,114,50,46,101,114,108]},{line,1067}]},
{proc_lib,wake_up,3,[{file,[112,114,111,99,95,108,105,98,46,101,114,108]},{line,250}]}]} [condition = amqp:internal-error]
Regards,