Erlang/OTP Forums

Author Message

<  RabbitMQ mailing list  ~  .NET Client Library Shared Queue Closed Error on Subscriptio

Guest
Posted: Sun Mar 30, 2008 11:24 am Reply with quote
Guest
Bill,

BillC wrote:
> Please can you help me with the following error. Using the examples
> that come with the .NET Cllient Library I have written a small
> program that creates a subscription and reads any published messages
> in the queue. The code works and reads any messages in the queue,
> however when there are no more messages left to read in the Queue or
> when you run the program without any messages in the queue (i.e. when
> the queue is empty) the connection simply closes and throws the
> following EndOfStreamException:
>
> System.IO.EndOfStreamException: SharedQueue closed at
> RabbitMQ.Util.SharedQueue.EnsureIsOpen() at
> RabbitMQ.Util.SharedQueue.Dequeue() at
> ConsoleApplication2.Program.Main(String[] args) in
> C:\rabbitmqdotnet\testw
> indowsapp\ConsoleApplication2\ConsoleApplication2\Program.cs:line 47

Your program looks fine; the Dequeue() call should block when there are
no more messages available.

To track down the problem it would be useful to get a trace of the
client/server communication with, e.g., the tracer program that ships
with the RabbitMQ Java client. See
http://stage.rabbitmq.com/examples.html#tracer


Matthias.

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist
0x6e6562
Posted: Sun Mar 30, 2008 12:10 pm Reply with quote
User Joined: 12 Jul 2007 Posts: 250
Matthias,

> http://stage.rabbitmq.com/examples.html#tracer

Might just be me, but I don't think that this URL is visible externally.

Ben

_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist
View user's profile Send private message
tonyg
Posted: Sun Mar 30, 2008 5:55 pm Reply with quote
User Joined: 07 Nov 2006 Posts: 199
Hi Bill,

BillC wrote:
> Please can you help me with the following error. Using the examples
> that come with the .NET Cllient Library I have written a small program
> that creates a subscription and reads any published messages in the
> queue. The code works and reads any messages in the queue, however when
> there are no more messages left to read in the Queue or when you run the
> program without any messages in the queue (i.e. when the queue is empty)
> the connection simply closes and throws the following EndOfStreamException:
> [...]

That's a strange behaviour. I've just compiled your source code (with a
few minor changes for my .NET installation, and using localhost etc
instead of your 10.* IP) and tried it, and I can't seem to make it do
anything besides quietly receive and print messages Smile

Could you provide step-by-step instructions on how to reproduce the
fault, perhaps?

I've attached the C# file I used to try to reproduce the fault.

Regards,
Tony



Post recived 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