[rabbitmq-discuss] RabbitMQ JSONRPC-CHANNEL Error

ALBERT HIDALGO BAREA abarea at tid.es
Fri Oct 15 09:36:23 BST 2010


Hello,

I'm trying to test the plugin jsonrpc-channel and it only gets errors.
I have search Google looking for solutions, but I didn't find any.

Configuration of the machine:
                Red Hat 5.3 EL
                RabbitMQ server 2.1.0
                Erlang R13B-03
                Project-umbrella latest release (compiled and running the broker through the plugin folder like says the README of the jsonrpc-channel plugin)

Post of the error:

test_main
{"installGenericProxy":{"name":"open","idempotent":false,"params":[{"name":"username","type":"str"},{"name":"password","type":"str"},{"name":"sessionTimeout","type":"num"},{"name":"virtualHost","type":"str"}]}}
open
JsonRPC error:
Service: "/rpc/rabbitmq"
Method: "open"
Params: ["guest","guest",5,null]
Response: {"version":"1.1","id":2,"error":{"name":"JSONRPCError","code":500,"message":"Internal error","error":"{{{badmatch,
      {error,
          {undef,
              [{rabbit_channel,start_link,
                   [rabbit_jsonrpc_channel,<0.17653.0>,<0.17653.0>,
                    <<\"guest\">>,<<\"/\">>,<0.17654.0>]},
               {rabbit_jsonrpc_channel,init,1},
               {gen_server,init_it,6},
               {proc_lib,init_p_do_apply,3}]}}},
  [{rabbit_jsonrpc_channel,open,1},
   {rabbit_jsonrpc_channel_factory,handle_call,3},
   {gen_server,handle_msg,5},
   {proc_lib,init_p_do_apply,3}]},
 {gen_server,call,
     [<0.2478.0>,
      {jsonrpc,<<\"open\">>,
          {obj,
              [{\"http_method\",<<\"POST\">>},
               {\"http_query_parameters\",{obj,[]}},
               {\"http_headers\",
                {obj,
                    [{\"accept\",<<\"*/*\">>},
                     {\"accept-charset\",<<\"ISO-8859-1,utf-8;q=0.7,*;q=0.7\">>},
                     {\"accept-encoding\",<<\"gzip,deflate\">>},
                     {\"accept-language\",<<\"en-us,en;q=0.5\">>},
                     {\"cache-control\",<<\"no-cache\">>},
                     {\"connection\",<<\"keep-alive\">>},
                     {\"content-length\",<<\"74\">>},
                     {\"content-type\",<<\"application/json; charset=UTF-8\">>},
                     {\"host\",<<\"localhost:55672\">>},
                     {\"keep-alive\",<<\"115\">>},
                     {\"pragma\",<<\"no-cache\">>},
                     {\"referer\",
                      <<\"http://localhost:55672/rpc-examples/test/index.html\">>},
                     {\"user-agent\",
                      <<\"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)\">>},
                     {\"x-json-rpc-timeout\",<<\"30000\">>},
                     {\"x-requested-with\",<<\"XMLHttpRequest\">>}]}},
               {\"remote_peername\",<<\"10.95.110.157\">>},
               {\"scheme\",<<\"http\">>}]},
          [<<\"guest\">>,<<\"guest\">>,5,null]},
      30000]}}"}}

Thank you for the help.
Regards,
---
Albert

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20101015/ecb5468d/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list