Alfred’s Computing Weblog

Alfred Java-cored Computing Weblog

Ant | Connection Reset

leave a comment »

error during FTP transfer: java.net.SocketException: Connection reset

The above is the latest collection of error I hit during my first touch with Mr. Ant, Apache 😛
From the error message, it hints that there must be something wrong with connection/network.
To troubleshoot network related problem, wireshark always is your best partner.
This is the trace I captured when I execute Ant-Ftp.

trace_ftp_reset_conn

Based on the trace on hand, I got the clearer picture now.
The trace shows that, the client (192.168.9.74) was sent a FTP handshake request to server (192.168.9.23).
The server replied with a RST flag. Generally, RST flag brings the meaning of ‘Reset’.
From a source I get from www,
The reset flag is used when a segment arrives that is not intended for the current connection.
That’s clear that the server rejected the FTP initial request from client.

By doing some checking on the services running in server, I found that the FTP service in server is not running 😦
That’s why the FTP initial request from client is rejected by the server.

When working in such internetworking environment, some times its not your code/configuration problem. This is another lesson learned..

Written by Alfred

February 18, 2009 at 12:42

Posted in ant, network

Tagged with , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: