|
|
Archives of the TeradataForum
Message Posted: Fri, 16 May 2003 @ 13:16:52 GMT
Subj: | | Re: Trying to Connect to TDATA using JDBC |
|
From: | | Bazzi, Abdul (A.H.) |
Sam, what's up?
This basically means that a network error occurred while the client was receiving data from the server. But what is really happening is
that the server actually accepts the connection, processes the request, and sends a reply to the client. However, when the server closes
the socket, the client believes that the connection has been terminated abnormally because the socket implementation sends a TCP reset
segment telling the client to throw away the data and report an error.
Sometimes, this problem is caused by not properly closing the input/output streams and the socket connection. Make sure you close the
input/output streams and socket connection properly. If everything is closed properly, however, and the problem persists, you can work
around it by adding Thread.sleep(1000) before closing the streams and the socket. This technique, however, is not reliable and may not work
on all systems.
| |