[rabbitmq-discuss] Possible bug in .NET library, with IConnection
inforser.analytics at gmail.com
inforser.analytics at gmail.com
Wed Jul 31 12:54:24 BST 2013
I guess the problem in m_continuationQueue.Next() which returns null,
And this is wront usage of Next() acroding to RpcContinuationQueue.Next()
/// <summary>
/// Retrieve the next waiting continuation.
/// </summary>
///
/// <remarks>
///
/// <para>
/// It is an error to call this method when there are no
/// waiting continuations. In the current implementation,
if
/// this happens, null will be returned (which will usually
/// result in an immediate NullPointerException in the
/// caller). Correct code will always arrange for a
/// continuation to have been Enqueue()d before calling
this
/// method.
///
/// </para>
///
/// </remarks>
public IRpcContinuation Next()
{
lock (this.m_outstandingRpcLock)
{
IRpcContinuation local_0 = this.m_outstandingRpc;
this.m_outstandingRpc = (IRpcContinuation) null;
return local_0;
}
}
среда, 31 июля 2013 г., 15:38:42 UTC+4 пользователь inforser.... at gmail.com
написал:
>
> {AMQP close-reason, initiated by Library, code=541, text="Unexpected
> Exception", classId=0, methodId=0, cause=System.NullReferenceException:
> Object reference not set to an instance of an object.
> at RabbitMQ.Client.Impl.ModelBase.HandleBasicGetEmpty()
> at
> RabbitMQ.Client.Framing.Impl.v0_9_1.Model.DispatchAsynchronous(Command cmd)
> at RabbitMQ.Client.Impl.ModelBase.HandleCommand(ISession session,
> Command cmd)
> at RabbitMQ.Client.Impl.SessionBase.OnCommandReceived(Command cmd)
> at RabbitMQ.Client.Impl.Session.HandleFrame(Frame frame)
> at RabbitMQ.Client.Impl.ConnectionBase.MainLoopIteration()
> at RabbitMQ.Client.Impl.ConnectionBase.MainLoop()}
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130731/b8efa1ad/attachment.htm>
More information about the rabbitmq-discuss
mailing list