[rabbitmq-discuss] Java Client not able to create channel

Rob Harrop rob at rabbitmq.com
Wed Nov 24 10:59:20 GMT 2010


Abishek,

There is a deadlock bug in the 2.1.0 client that causes the problem you
are seeing. I fixed this in the 2.1.1 client, so upgrading should do the
trick.

Regards,

Rob

On Wed, 24 Nov 2010 16:01:06 +0530, Abhishek Kona
<abhishek.kona at gmail.com>
wrote:
> Hi
> 
> I am using the Java API 2.1.0 with RabbitMQ 2.1.0
> 
> My code is :
>   if ((this.channel == null) || this.channel.isOpen() == false)
>          {
>              try
>              {
> 
>                  this.channel = connection.createChannel();
> 
>              }
>              catch (final IOException e)
>              {
>                  logger.error("While refreshing channel" + e);
> 
>              }
>         }
> 
> 
> There is a single instance of this class which has a connection object 
> which is created only once.
> A channel is created before every operation on RabbitMQ.
> I have observed that after some time the program waits at 
> connection.createChannel() (It waits does not throw and exception).
> Is there something wrong in what I am doing or is it an issue with the 
> 2.1.0 library.
> 
> Thanks and Regards
> -Abhishek Kona
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss


More information about the rabbitmq-discuss mailing list