[rabbitmq-discuss] deadlock in example??

Adam Kaminiecki adamka at dgt.com.pl
Fri Nov 5 10:13:25 GMT 2010


Hi,

I'm just testing example "Subscriber" but have strange problem....

when code reach metod
private static string ensureQueue(IModel ch)

and inside try to declare queue

string queueName = ch.QueueDeclare();

doesnt go forward like in deadlock....


Server log:

=INFO REPORT==== 5-Nov-2010::11:06:05 ===
accepted TCP connection on 0.0.0.0:5672 from 192.168.44.130:49866

=INFO REPORT==== 5-Nov-2010::11:06:05 ===
starting TCP connection <0.6531.0> from 192.168.44.130:49866

=ERROR REPORT==== 5-Nov-2010::11:06:15 ===
** Generic server <0.6549.0> terminating
** Last message in was {init,false}
** When Server state == {q,{amqqueue,
                                {resource,<<"/">>,queue,
<<"amq.gen-8l5NzzAMZ+9yV1qSZPtW7g==">>},
                                false,true,<0.6531.0>,[],<0.6549.0>},
                            none,false,rabbit_variable_queue,undefined,
                            {[],[]},
                            {[],[]},
                            undefined,undefined,undefined,undefined,
                            {state,none,undefined}}
** Reason for termination ==
** {bad_return_value,
        {error,
            {{badmatch,{error,exchange_not_found}},
             [{rabbit_amqqueue,'-internal_declare/2-fun-0-',3},
              {mnesia_tm,apply_fun,3},
              {mnesia_tm,execute_transaction,5},
              {worker_pool_worker,handle_call,3},
              {gen_server2,handle_msg,7},
              {proc_lib,wake_up,3}]}}}

=ERROR REPORT==== 5-Nov-2010::11:06:15 ===
** Generic server <0.6534.0> terminating
** Last message in was {'$gen_cast',
                            {method,
                                
{'queue.declare',0,<<>>,false,false,true,true,
                                    false,[]},
                                none}}
** When Server state == {ch,running,1,<0.6531.0>,<0.6533.0>,undefined,
                             #Fun<rabbit_channel_sup.0.58069862>,none,
                             {sets,0,16,16,8,80,48,
                                   
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                    [],[]},
                                   
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[]}}},
                             1,
                             {[],[]},
                             {[],[]},
<<"guest">>,<<"/">>,<<>>,
                             {dict,0,16,16,8,80,48,
                                   
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                    [],[]},
                                   
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[]}}},
                             {dict,0,16,16,8,80,48,
                                   
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                    [],[]},
                                   
{{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[]}}},
<0.6530.0>,
                             {state,none,undefined}}
** Reason for termination ==
** {{{bad_return_value,
          {error,
              {{badmatch,{error,exchange_not_found}},
               [{rabbit_amqqueue,'-internal_declare/2-fun-0-',3},
                {mnesia_tm,apply_fun,3},
                {mnesia_tm,execute_transaction,5},
                {worker_pool_worker,handle_call,3},
                {gen_server2,handle_msg,7},
                {proc_lib,wake_up,3}]}}},
      {gen_server2,call,[<0.6549.0>,{init,false}]}},
     [{gen_server2,call,2},
      {rabbit_amqqueue,declare,5},
      {rabbit_channel,handle_method,3},
      {rabbit_channel,handle_cast,2},
      {gen_server2,handle_msg,7},
      {proc_lib,wake_up,3}]}


dont know whats goint on...



Regards

Adam

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the rabbitmq-discuss mailing list