Erlang Mailing Lists

Author Message

<  RabbitMQ mailing list  ~  Java Client library : RPCClient throws nullpointerexception

tonyg
Posted: Tue Jan 12, 2010 5:23 pm Reply with quote
User Joined: 07 Nov 2006 Posts: 199
Hi Rajesh,

Reddy, Rajesh (GPT EMEA) wrote:
> Iam getting the following EOF Exception when trying to cal the
> mapcall() on Rpcclient in java library. This is the same exception
> I get if trying to create a new instance of JsonRpcClient.

Your stacktrace indicates that the correlation ID of the reply message
does not match the correlation ID expected by the client.

Off the top of my head, this could happen because of a bug in the RPC
server program, or because there are stale reply messages in the reply
queue.

Do the bundled HelloClient and HelloServer examples work?

> There are no examples for java libraray.

Yes, there are: See classes HelloClient and HelloServer, which use
RpcClient and RpcServer, and classes HelloJsonClient and HelloJsonServer
which use JsonRpcClient and JsonRpcServer.

Regards,
Tony
--
[][][] Tony Garnock-Jones | Mob: +44 (0)7905 974 211
[][] LShift Ltd | Tel: +44 (0)20 7729 7060
[] [] http://www.lshift.net/ | Email: tonyg@lshift.net

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post received from mailinglist
View user's profile Send private message MSN Messenger

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum