Dear Rabbiters,<div><br></div><div><div>i'm running into a problem getting node.js to talk to scala over rabbitmq. i'm using the node-amqp package with node.js. i installed it using npm install amqp. i'm using the java client for rabbitmq 2.5.1 on the scala side. i've successfully gotten scala to talk to scala and node.js to talk to node.js. However, when i attempt to get node.js to talk to scala there appears to be a disagreement regarding queue declaration. Thus, if i fire up node.js first and look at the queue it creates with the rabbitmq management plugin i see</div>
</div><div><br></div><div><span class="Apple-style-span" style="color: rgb(72, 72, 72); font-family: Verdana, sans-serif; font-size: 12px; "><br class="Apple-interchange-newline"><table class="list" style="border-collapse: collapse; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(204, 204, 204); margin-bottom: 0px; ">
<tbody><tr class="alt2"></tr><tr class="alt1"><td class="r" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: right !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(240, 240, 240)), to(rgb(224, 224, 224))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
</td><td class="r" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: right !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(240, 240, 240)), to(rgb(224, 224, 224))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
</td></tr><tr class="alt2"><td style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
<a href="http://localhost:55672/mgmt/#/queues/%2F/node-simple-direct_queue" style="display: block; width: 236px; font-weight: bold; text-decoration: none; color: black; ">node-simple-direct_queue</a></td><td style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
</td><td class="c" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: center !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
<acronym title="auto-delete: true" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(170, 221, 221); color: rgb(34, 34, 34); padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-left-radius: 2px 2px; border-top-right-radius: 2px 2px; border-bottom-right-radius: 2px 2px; border-bottom-left-radius: 2px 2px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; cursor: default; background-position: initial initial; background-repeat: initial initial; ">AD</acronym></td>
<td class="c" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: center !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
<acronym title="Idle since 2011-10-24 16:32:7" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(170, 221, 221); color: rgb(34, 34, 34); padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-top-left-radius: 2px 2px; border-top-right-radius: 2px 2px; border-bottom-right-radius: 2px 2px; border-bottom-left-radius: 2px 2px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; cursor: default; background-position: initial initial; background-repeat: initial initial; ">Idle</acronym></td>
<td class="r" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: right !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
0</td><td class="r" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: right !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
0</td><td class="r" style="font: normal normal normal 12px/17px Verdana, sans-serif; padding-top: 4px; padding-right: 4px; padding-bottom: 4px; padding-left: 4px; text-align: right !important; vertical-align: top; min-width: 5em; width: auto; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); border-right-width: 1px; border-right-style: solid; border-right-color: rgb(204, 204, 204); background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(255, 255, 255))); background-attachment: initial; background-origin: initial; background-clip: initial; background-color: initial; background-position: initial initial; background-repeat: initial initial; ">
0<br><br></td></tr></tbody></table></span></div><div><br></div><div>i then attempt to accomplish a connection from the scala side (with code that works on scala-to-scala) and i see an exception when the code calls the queueDeclare method.</div>
<div><br></div><div><div> channel.exchangeDeclare( exQNameRoot, "direct" )</div><div> //channel.queueDeclare(qname, true, false, false, null);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> channel.queueDeclare(qname, true, false, true, null); // <-- here we throw an exception</div>
</div><div><br></div><div><div>java.io.IOException</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:107)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:131)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.ChannelN.queueDeclare(ChannelN.java:627)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.rabbitmq.client.impl.ChannelN.queueDeclare(ChannelN.java:59)</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>at com.biosimilarity.lift.lib.AMQPBrokerScope$StdMonadicAMQPSndrRcvr.sender(AMQPMnd.scala:53)</div></div><div><br></div><div>Any help would be most welcome!</div>
<div><br></div><div>Best wishes,</div><div><br></div><div>--greg<br clear="all"><div><br></div>-- <br>L.G. Meredith<br>Managing Partner<br>Biosimilarity LLC<br>7329 39th Ave SW<div>Seattle, WA 98136<br><br>+1 206.650.3740<br>
<br><a href="http://biosimilarity.blogspot.com" target="_blank">http://biosimilarity.blogspot.com</a></div><br>
</div>