[rabbitmq-discuss] Java Client library : RPCClient throws nullpointerexception

Reddy, Rajesh (GPT EMEA) rajesh.reddy at baml.com
Mon Jan 11 16:56:15 GMT 2010

> Hi
> 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.
> Similar call() in .net library works. Iam basically using the same
> example as in .net. There are no examples for java libraray.
> Consumer com.rabbitmq.client.RpcClient$1 at 1ae9aaa method handleDelivery
> for channel
> AMQChannel(amqp://guest@GBWMAPPROPC01.emea.win.ml.com:5672/,1) threw
> an exception:
> java.lang.NullPointerException
> 	at
> com.rabbitmq.client.RpcClient$1.handleDelivery(RpcClient.java:153)
> 	at
> com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:223)
> 	at
> com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQCh
> annel.java:159)
> 	at
> com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:110)
> 	at
> com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java
> :456)
> Following is the sample code which is raising the exception
	Connection _conn =
	Channel _channel= _conn.createChannel();

	RpcClient _rpcClient = 
	            new RpcClient(_channel,"amq.direct","Admin");

	Map<String, Object> request = createRequest(requestType);

	// this line throws the exception
	Map<String, Object> reply = _rpcClient.mapCall(request); 

> Thanks
> Rajesh

This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. The information contained in this e-mail was obtained from sources believed to be reliable; however, the accuracy or completeness of this information is not guaranteed. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to "Merrill Lynch" are references to any company in the Merrill Lynch & Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Past performance is no guarantee of future results. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100111/70221201/attachment.htm 

More information about the rabbitmq-discuss mailing list