users@grizzly.java.net

grizzly bug ? : TCPConnectorHandler.connect doesn't throw exception

From: Survivant 00 <survivant00_at_gmail.com>
Date: Mon, 22 Dec 2008 16:01:17 -0500

I'm trying to do a little test. A simple client that connect to a server
and send data.. I try to connect to a server that isn't up.. and I didn't
receive a exception.. the program continue like everything is fine..

try {

            f_controller = new Controller();
            f_tcpConnectorHandler = new TCPConnectorHandler();

            f_tcpConnectorHandler.connect(new InetSocketAddress("localhost",
7803));

 .....

log4j:WARN No appenders could be found for logger
(com.gfbn.quotegw.client.QuoteClientGrizzly).
log4j:WARN Please initialize the log4j system properly.
2008-12-22 15:58:10 com.sun.grizzly.DefaultCallbackHandler onConnect
GRAVE: Connection refused: no further information


....

I was expecting a Exception at the line : f_tcpConnectorHandler.connect(new
InetSocketAddress("localhost", 7803));