Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1F4946331AC for ; Thu, 19 Feb 2009 20:43:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41871-04 for ; Thu, 19 Feb 2009 20:42:59 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.61.230.242]) by mail.postgresql.org (Postfix) with ESMTP id A0F44632608 for ; Thu, 19 Feb 2009 20:42:59 -0400 (AST) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id 9D0DE5C12C; Fri, 20 Feb 2009 09:42:53 +0900 (WST) Received: from [10.0.0.53] (wallace.localnet [10.0.0.53]) by mail.postnewspapers.com.au (Postfix) with ESMTP id 6BA711E0436; Fri, 20 Feb 2009 09:42:53 +0900 (WST) Message-ID: <499DFC8D.5060307@postnewspapers.com.au> Date: Fri, 20 Feb 2009 09:42:53 +0900 From: Craig Ringer User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: zxcv@infoweb.cz Cc: pgsql-jdbc@postgresql.org Subject: Re: SocketException: Connection reset References: <20090219164640.0DBAE5881E0@arachne.itcomputers.cz> In-Reply-To: <20090219164640.0DBAE5881E0@arachne.itcomputers.cz> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/30 X-Sequence-Number: 19305 zxcv@infoweb.cz wrote: > \"jdbc:postgresql://localhost:5432/my\", propsDB); > attempt number 69 > Exception in thread \"main\" > org.postgresql.util.PSQLException: The connection > attempt failed. > Caused by: java.net.SocketException: Connection > reset > at > java.net.SocketInputStream.read(SocketInputStream.java:168) > org.postgresql.core.PGStream.ReceiveChar(PGStream.java:259) > at > org.postgresql.core.v2.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:207) Does anything appear in the PostgreSQL server logs? Try turning up logging verbosity and see if you get anything informative when logging is set to debug level. Do you have a virus scanner or firewall product installed on the machine? If so, does the problem go away if you UNINSTALL (not merely disable) the product then run "netsh interface ip reset c:\resetlog.txt" in cmd.exe ? I repeat, in many cases disabling firewall/AV products is NOT sufficient, they must often be UNINSTALLED to get rid of the filter drivers that cause problems. -- Craig Ringer