Hello,<div><br></div><div>we are playing with the udp exchange and found some problem.</div><div><br></div><div>On the receiving side, both with pika and ruby amqp we were</div><div>having problems, for instance, with ruby:</div>

<div><br></div><div><div>/Library/Ruby/Gems/1.8/gems/amq-protocol-0.9.0/lib/amq/protocol/table.rb:88:in `decode&#39;: NotImplementedError (NotImplementedError)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-protocol-0.9.0/lib/amq/protocol/client.rb:1482:in `decode_properties&#39;</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-protocol-0.9.0/lib/amq/protocol/client.rb:1465:in `each&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-protocol-0.9.0/lib/amq/protocol/client.rb:1465:in `decode_properties&#39;</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-protocol-0.9.0/lib/amq/protocol/frame.rb:142:in `decode_payload&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-protocol-0.9.0/lib/amq/protocol/frame.rb:115:in `body_size&#39;</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-client-0.9.2/lib/amq/client/async/adapter.rb:675:in `content_complete?&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-client-0.9.2/lib/amq/client/async/adapter.rb:667:in `frameset_complete?&#39;</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-client-0.9.2/lib/amq/client/async/adapter.rb:518:in `receive_frame&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/amq-client-0.9.2/lib/amq/client/async/adapters/event_machine.rb:327:in `receive_data&#39;</div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine&#39;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run&#39;</div>

</div><div><br></div><div>with pika it gives a similar error on pika/data.py:128</div><div><br></div><div>The error obviously comes from the headers set by the udp plugin:</div><div><div>Headers = [{&lt;&lt;&quot;source_ip&quot;&gt;&gt;, longstr, IpStr},</div>

<div>� � � � � � � {&lt;&lt;&quot;source_port&quot;&gt;&gt;, short, Port}],</div></div><div><br></div><div>Changing it to signedint fixed the problem:</div><div><span style>Headers = [{&lt;&lt;&quot;source_ip&quot;&gt;&gt;, longstr, IpStr},</span><br style>

<span style>� � � � � � � {&lt;&lt;&quot;source_port&quot;&gt;&gt;, signedint, Port}],</span></div><div><span style><br></span></div><div><font color="#222222" face="arial, sans-serif">In the ruby client the type short int is explicitly rejected (</font>amq/protocol/table.rb:88<span style="color:rgb(34,34,34);font-family:arial,sans-serif">)</span></div>

<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Is this a problem in pika and amqp ruby clients or in the java one?</font></div><div><font color="#222222" face="arial, sans-serif"><br>

</font></div><div>Cheers,</div><div>---<br>Massimo Paladin<br><br>email:�<a href="mailto:massimo.paladin@gmail.com" target="_blank">massimo.paladin@gmail.com</a><br>website:�<a href="http://www.mpaladin.com/" target="_blank">http://www.mpaladin.com</a><br>

flickr&#39;s page:�<a href="http://flickr.com/photos/massimop" target="_blank">http://flickr.com/photos/massimop</a><br>
</div>