[rabbitmq-discuss] AlreadyClosedException

Cao, Yican - 0661 - MITLL cao at ll.mit.edu
Wed Mar 2 15:25:53 GMT 2011


Hi, 

I am experiencing this exception occasionally/randomly.

13:54:37,014 ERROR [processor.Logger (248)] Failed delivery for exchangeId: ID-testvm-45688-1297943230354-0-225. Exhausted after delivery attempt: 1 caught: com.rabbitmq.client.AlreadyClosedException: clean connection shutdown; reason: Attempt to use closed channel
com.rabbitmq.client.AlreadyClosedException: clean connection shutdown; reason: Attempt to use closed channel
	at com.rabbitmq.client.impl.AMQChannel.ensureIsOpen(AMQChannel.java:195)
	at com.rabbitmq.client.impl.AMQChannel.transmit(AMQChannel.java:290)
	at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:470)
	at com.rabbitmq.client.impl.ChannelN.basicPublish(ChannelN.java:457)

RabbitMQ server and client version is 2.2.0.
I'm not sure how this channel is close. 
I did not see this in v.1.7.2. 

There is a thread on this mail-list showing a work-a-round:
http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2010-November/009759.html

I'm using similar channel.basicPublish

I would like to know what is root cause and prevent from there.

Thanks.


Yican



More information about the rabbitmq-discuss mailing list