|
|
| Author |
Message |
< RabbitMQ mailing list ~ .NET Client Library Shared Queue Closed Error on Subscriptio |
| Guest |
Posted: Sun Mar 30, 2008 11:24 am |
|
|
|
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 |
|
|
| Back to top |
|
| 0x6e6562 |
Posted: Sun Mar 30, 2008 12:10 pm |
|
|
|
User
Joined: 12 Jul 2007
Posts: 250
|
|
| Back to top |
|
| tonyg |
Posted: Sun Mar 30, 2008 5:55 pm |
|
|
|
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
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 |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
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
|
|
|