[rabbitmq-discuss] rabbitmq erlang client connection issue

joe lee codewalkerjoe at gmail.com
Mon Mar 10 17:06:17 GMT 2008


Hi,

I just checked out rabbitmq client, using rabbitmq-server 1.2.0 with
cotton-0.2.3.tar.gz which supports hessian 2.0.

I was following this blog tutorial:
http://hopper.squarespace.com/blog/2008/1/12/introducing-the-erlang-amqp-client.htmland
for whatever reason, rabbitmq-server is not accepting the client
connection.

My rabbitmq-server uses all default values for user "guest" and password
"guest".  I haven't made any changes.  I started the rabbitmq server with
/usr/sbin/rabbitmq-server and aborted the erlang node to stop the rabbitmq
server.  This causes problem during restart.  I get an error such as mnesia
table timeout.  More likely this is occuring during mnesia trying to recover
the tables.

Back to erlang client connection problem:

1> blog_example_1:amqp_lifecycle().
Connection: {<0.190.0>,direct}

=ERROR REPORT==== 9-Mar-2008::21:56:53 ===
** Generic server <0.190.0> terminating
** Last message in was {direct,none,<<>>}
** When Server state == {connection_state,"guest","guest",undefined,
                            undefined,<<"/">>,undefined,undefined,undefined,
                            undefined,undefined,
                            {dict,0,16,16,8,80,48,

{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                 []},
                                {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                  [],[]}}}}
** Reason for termination ==
** {'function not exported',
       [{rabbit_channel,start_link,
            [<0.191.0>,<0.191.0>,<<"guest">>,<<"/">>]},
        {amqp_direct_driver,open_channel,3},
        {amqp_connection,handle_start,5},
        {gen_server,handle_msg,5},
        {proc_lib,init_p,5}]}

=CRASH REPORT==== 9-Mar-2008::21:56:53 ===
  crasher:
    pid: <0.190.0>
    registered_name: []
    exception exit: {undef,
                        [{rabbit_channel,start_link,
                             [<0.191.0>,<0.191.0>,<<"guest">>,<<"/">>]},
                         {amqp_direct_driver,open_channel,3},
                         {amqp_connection,handle_start,5},
                         {gen_server,handle_msg,5},
                         {proc_lib,init_p,5}]}
      in function  gen_server:terminate/6
    initial call: gen:init_it(gen_server,<0.40.0>,<0.40.0>,amqp_connection,
                              [{connection_state,"guest","guest",undefined,
                                   undefined,<<"/">>,undefined,undefined,
                                   undefined,undefined,undefined,
                                   {dict,0,16,16,8,80,48,
                                       {[],[],[],[],[],[],[],[],[],[],[],[],
                                        [],[],[],[]},

{{[],[],[],[],[],[],[],[],[],[],[],[],
                                         [],[],[],[]}}}},
                               #Fun<amqp_direct_driver.handshake.1>],
                              [])
    ancestors: [<0.40.0>]
    messages: []
    links: [<0.40.0>,<0.191.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 377
    stack_size: 23
    reductions: 451
  neighbours:
    neighbour: [{pid,<0.191.0>},
                  {registered_name,[]},
                  {initial_call,
                      {gen,init_it,
                          [gen_server,<0.190.0>,<0.190.0>,amqp_channel,
                           [{channel_state,1,<0.190.0>,undefined,undefined,
                                #Fun<amqp_direct_driver.do.2>,
                                #Fun<amqp_direct_driver.do.3>,undefined,
                                undefined,false,undefined,
                                {dict,0,16,16,8,80,48,
                                    {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                     [],[],[]},

{{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]}}}}],
                           []]}},
                  {current_function,{gen_server,loop,6}},
                  {ancestors,[<0.190.0>,<0.40.0>]},
                  {messages,[]},
                  {links,[<0.190.0>]},
                  {dictionary,[]},
                  {trap_exit,false},
                  {status,waiting},
                  {heap_size,233},
                  {stack_size,12},
                  {reductions,39}]
    neighbour: [{pid,<0.40.0>},
                  {registered_name,[]},
                  {initial_call,{erlang,apply,2}},
                  {current_function,{gen,wait_resp_mon,3}},
                  {ancestors,[]},
                  {messages,[]},
                  {links,[<0.25.0>,<0.190.0>]},
                  {dictionary,[]},
                  {trap_exit,false},
                  {status,waiting},
                  {heap_size,1597},
                  {stack_size,38},
                  {reductions,1282}]
** exception exit: undef
     in function  rabbit_channel:start_link/4
        called as rabbit_channel:start_link(<0.191.0>,<0.191.0>,<<"guest">>,
                                            <<"/">>)
     in call from amqp_direct_driver:open_channel/3
     in call from amqp_connection:handle_start/5
     in call from gen_server:handle_msg/5
     in call from proc_lib:init_p/5


any help greatly appreciated,
joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20080310/69c6005d/attachment.htm 


More information about the rabbitmq-discuss mailing list