On Thu, Jan 3, 2013 at 11:13 AM, Simon MacMullen <span dir="ltr">&lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 03/01/13 15:50, Murray Williams wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Everything compiles, and I can install and enable the plugin, but right<br>
now it looks like the supervisor keeps shutting down for some reason<br>
that I can&#39;t quite figure out yet.<br>
</blockquote>
<br></div>
If you point me at the source I might be able to help.</blockquote><div><br><br>Okay, I&#39;ve made some progress since this morning—but at this point I&#39;m completely gobsmacked as to what might be going on. I forked the github rabitmq/rmq-0mq repository and then remote-pulled and merged the commits from Luis Rascão&#39;s outstanding pull request (<a href="https://github.com/lrascao/rmq-0mq">https://github.com/lrascao/rmq-0mq</a>), and then re-did the work I&#39;d done before replacing the erlzmq (zmq:) API calls with erlzmq2 (erlzmq:) calls.<br>
<br>You can see my work at <a href="https://github.com/murraytodd/rmq-0mq">https://github.com/murraytodd/rmq-0mq</a><br><br>I can actually build and deploy the plugin, and things appear to be starting up, but I&#39;m getting an error in the strangest of places: not from the <i>zeromq</i> part but rather from the aqmp_client. Specifically, my r0mq_service.erl file at line 43 calls:<br>
<br> {ok, Connection} = amqp_connection:start(<b>#amqp_params_direct{}</b>)<br><br>and my RabbitMQ server crashes at amqp_connection_sup.erl line 34:<br><br>        case AmqpParams of<br>            <b>#amqp_params_direct{}</b>  -&gt; {direct,  amqp_direct_connection};<br>
            #amqp_params_network{} -&gt; {network, amqp_network_connection}<br>        end,<br><br>with a server response of<br><br>{{<b>badmatch</b>,<br>  {error,<br>    {&#39;EXIT&#39;,<br>      {{case_clause,<br>        {amqp_params_direct,&lt;&lt;&quot;guest&quot;&gt;&gt;,none, &lt;&lt;&quot;/&quot;&gt;&gt;,&#39;Thor@thor&#39;,none,[]}},<br>
          [{amqp_connection_sup,start_link,1,<br>           [{file,&quot;src/amqp_connection_sup.erl&quot;},{line,34}]},<br><br>My RabbitMQ installation (MacPorts) says it&#39;s v 2.8.7 and the plugins directory says it has amqp_client-2.8.7.ez in it. But it seems that the rabbit-public-unbrella repository, whether I use the &quot;default / stable&quot; branch or even the branch marked &quot;rabbitmq_v2_8_x&quot;, I find that the amqp_client.hrl include file has an extra &quot;password&quot; field for the amqp_params_direct record.<br>
<br>Do you have any idea what might be going on? Do you think it&#39;s my MacPorts version of RabbitMQ?<br><br>Cheers,<br><br>Murray<br></div></div>