[rabbitmq-discuss] IOException when connecting, using Glassfish

Ben Hood 0x6e6562 at gmail.com
Sat Jul 5 18:59:09 BST 2008


On Sat, Jul 5, 2008 at 5:19 PM, everett <everett at mailinator.com> wrote:
> I am using the 1.3.0 release of RabbitMQ (on Debian Sid) along with the Java
> client. When the newConnection method on the ConnectionFactory instance is
> called within my web  application (deployed in Glassfish V2 UR2; running on
> the same machine as RabbitMQ), it throws an IOException and I get the
> following message in the rabbit.log file:
> =INFO REPORT==== 4-Jul-2008::16:40:02 ===
> accepted TCP connection on from
> =ERROR REPORT==== 4-Jul-2008::16:40:04 ===
> error on TCP connection from
> connection_closed_abruptly
> =INFO REPORT==== 4-Jul-2008::16:40:04 ===
> closing TCP connection from

Are you able to run a standalone client test on the
host to try and isolate where the problem might lie? For example, the
Java client ships with some test cases that can be used to test
connectivity - look for the ProducerMain and ConsumerMain classes that
have simple main methods.

I suspect that you may be having some network related issues, so it
would be good to be able to rule this out.



More information about the rabbitmq-discuss mailing list