[rabbitmq-discuss] IOException when connecting, using Glassfish

everett everett at mailinator.com
Sun Jul 6 20:09:34 BST 2008



Ben Hood wrote:
> 
> Everett,
> 
> 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 0.0.0.0:5672 from 192.168.42.104:44453
>>
>> =ERROR REPORT==== 4-Jul-2008::16:40:04 ===
>> error on TCP connection from 192.168.42.104:44453
>> connection_closed_abruptly
>>
>> =INFO REPORT==== 4-Jul-2008::16:40:04 ===
>> closing TCP connection from 192.168.42.104:44453
> 
> Are you able to run a standalone client test on the 192.168.42.104
> 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.
> 
> HTH,
> 
> Ben
> 
> 

Hi Ben,

Thank you for your help. By running these test cases I was able to discover
that my IOException was caused because I did not include commons-io-1.2.jar
in my classpath. Previously I was only deploying rabbitmq-client.jar with my
web application.

Cheers,

--
Everett
-- 
View this message in context: http://www.nabble.com/IOException-when-connecting%2C-using-Glassfish-tp18288523p18304694.html
Sent from the RabbitMQ mailing list archive at Nabble.com.





More information about the rabbitmq-discuss mailing list