[rabbitmq-discuss] NPE in RpcClient
Matthias Radestock
matthias at lshift.net
Fri Apr 4 20:03:57 BST 2008
Neil,
Neil Ellis wrote:
> 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);
> }
Why would you call publish() on the RpcClient? You are meant to be using
one of
byte[] primitiveCall(byte[] message)
String stringCall(String message)
Map mapCall(Map message)
Map mapCall(Object[] keyValuePairs)
to perform an RPC.
Matthias.
More information about the rabbitmq-discuss
mailing list