I am connecting to postgres data base using java web services (apache axis) with JDBC connections to get the data.But suddenly in most of times
The real problem is:
Caused by: java.net.SocketException: Connection reset
at java.net.SocketInputStream.read
The connection was closed when Java tried to read from it. This can be caused by:
... and probably more. Check the PostgreSQL server logs to see if there's anything informative there; also consider doing some network tracing with a tool like Wireshark.