[rabbitmq-discuss] NPE in RpcClient

Alexis Richardson alexis.richardson at cohesiveft.com
Sat Mar 15 12:16:27 GMT 2008


Neil

Thank-you very much.  That sounds like a really interesting demo.
Please let us know how you get on.  Also - will you be at MuleCon?  I
am going and would love to show anything you have to folks at the
conference.

alexis


On Thu, Mar 13, 2008 at 5:48 PM, Neil Ellis <neil.ellis at mangala.co.uk> wrote:
> Hi Folks
>
>  Not sure if this has already been reported; in version 1.2.0 of lib-
>  rabbitmq there is a NPE if the publish() method has been called on
>  RpcClient because the temp queue picks it up and attempts to call
>  setBody() on the blocker. Trivially chaning blocker.set(body) to have
>  a NP check fixes this:
>
>                     if(blocker != null) {
>                             blocker.set(body);
>                      }
>
>  This was line 150 of RpcClient. I've cc-ed the list for the mule
>  transport as it is the mule transport using publish() that caused my
>  problem.
>
>  Btw. The website for the work I'm doing is http://mule4newton.codecauldron.org/mule4newton-examples/mule4newton-rabbitmq/index.html
>   and the src is at http://svn.codecauldron.org/mule4newton/trunk/examples/rabbitmq/
>   - basically we're combining Newton, Mule and RabbitMQ as an
>  illustration of a flexible open-source based messaging system.
>
>  Kind regards
>  Neil
>
>
> _______________________________________________
>  rabbitmq-discuss mailing list
>  rabbitmq-discuss at lists.rabbitmq.com
>  http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>



-- 
Alexis Richardson
+44 20 7617 7339 (UK)
+44 77 9865 2911 (cell)
+1 650 206 2517 (US)




More information about the rabbitmq-discuss mailing list