Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 9F7FA633BF3 for ; Mon, 17 Aug 2009 13:00:56 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 75240-07 for ; Mon, 17 Aug 2009 16:00:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from n79.bullet.mail.sp1.yahoo.com (n79.bullet.mail.sp1.yahoo.com [98.136.44.39]) by mail.postgresql.org (Postfix) with SMTP id A36596326BE for ; Mon, 17 Aug 2009 13:00:44 -0300 (ADT) Received: from [216.252.122.217] by n79.bullet.mail.sp1.yahoo.com with NNFMP; 17 Aug 2009 16:00:42 -0000 Received: from [69.147.84.100] by t2.bullet.sp1.yahoo.com with NNFMP; 17 Aug 2009 16:00:42 -0000 Received: from [127.0.0.1] by omp201.mail.sp1.yahoo.com with NNFMP; 17 Aug 2009 16:00:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 559861.5973.bm@omp201.mail.sp1.yahoo.com Received: (qmail 63705 invoked by uid 60001); 17 Aug 2009 16:00:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250524842; bh=fydw8joighK1TIww+0ZroX4MHGtoThLjmfFBT1ZcEGE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=pJIIUKFxzPW0J0fI9M4Ssg7CpCA14tNFYr6tgb/NZpDS1DxAyPbREDUQcL66szix3qjl3tpm0/YM3A/ouKH7ZBQMTXaEHaB2S9EIJS8k+qTbLVOnV37EpIP4xMrJchVXUG0sFl52vgBYm1B/uPxYZ59JAXtUdM+IRGEcuEdghgQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=wVPNSqjnpGDPwDHLoJpdqzsZn4T6HDCgfsB42LR93cqluvxqZP7duXEWZjwJQP9s9O6dPjyHdqhDayjUAFf9Ld51EuF0Vk9+7/cUO90s0jBdKayJKBFqFMiv/Bxwgq3V2tdEzFc+AeEPbC9+ZfnzBhXJ9/CC6e+J5DLyLxlsy2U=; Message-ID: <417177.39237.qm@web43135.mail.sp1.yahoo.com> X-YMail-OSG: l37NEp4VM1mpS2GhqXh.984eds9.71asIQF1CiJBjzesxC.w4mV_sEBRR3UHci_kJgQ6oi57JJCZZ_tsiiiPe88oqqdzEVG88deu3wu9WtpRa6ndtjy9HFvIZd7_ikvNiDKIDBQ04Bhpm2RiGmgsRCet8GrsnB1GalFWoWSlVGYiBRUxvZ.eLQVKY7Rg0U112OT22AiSnFI0TlP7F0vrJ8y_BvkAK8qKzsK_iKYr9j3fJ55LMRcK3elLipq34mAZulckadtUUuFFcBpndBSc5yfcA69BXy6CSlvgGYXbIxn5XGcC8le6CQHGBe0.BZuXnwws03W7BEteRl.fukeWlnN1OcW63_4- Received: from [64.142.36.76] by web43135.mail.sp1.yahoo.com via HTTP; Mon, 17 Aug 2009 09:00:42 PDT X-Mailer: YahooMailRC/1358.27 YahooMailWebService/0.7.338.2 References: <750530.72887.qm@web43140.mail.sp1.yahoo.com> <4A892E50.6080402@postnewspapers.com.au> Date: Mon, 17 Aug 2009 09:00:42 -0700 (PDT) From: Michael Bell Subject: Re: JDBC Connection broken (followup) To: Craig Ringer , pgsql-jdbc@postgresql.org In-Reply-To: <4A892E50.6080402@postnewspapers.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.134 tagged_above=-10 required=5 tests=AWL=0.465, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/24 X-Sequence-Number: 19873 Thanks for replying. I changed the pg_hba.conf to trust (I don't care about the password, this is just a test system, installed from scratch). However, unfortunately WinPCap cannot capture loopback traffic, so that doesn't help us much :) Other side notes: tried LSPFix - it found no problems. And I use this box to test MS SQL, MySQL regularly with no issues. ----- Original Message ---- From: Craig Ringer To: pgsql-jdbc@postgresql.org Sent: Monday, August 17, 2009 3:17:52 AM Subject: Re: [JDBC] JDBC Connection broken (followup) On 17/08/2009 4:00 PM, Michael Bell wrote: > Oh, tried this with Windows firewall off, and AV off too. Here's the logging of the last few successful, and then the unsuccessful.... It might be useful if you could: - in pg_hba.conf, set 127.0.0.1 to "trust" or change the password of the user you'll be testing with to something generic; then - use Wireshark (http://wireshark.org/) to capture traffic on the loopback interface during a failed login attempt that results in the "incomplete startup packet" error. - Change pg_hba.conf back / reset the password you changed - Post the packet trace (libpcap format) or, if it's too big, put it up somewhere people can download it and post a link to it. Doing so may or may not help - but if the results look normal you at least know the client is sending the right startup packet and it's a server side problem. "An operation was attempted on something that is not a socket" makes you wonder if the socket was closed, the backend is getting FDs (handles) mixed up, or something. I was about to suggest trying to get a log with Process Monitor (from Sysinternals) but it doesn't look like Process Monitor records TCP/IP socket activity, so it won't be much use. Sigh. Maybe the wireshark trace will be informative... -- Craig Ringer > 2009-08-17 00:56:58 PDTLOCATION: BackendInitialize, .\src\backend\postmaster\postmaster.c:3205 > 2009-08-17 00:56:58 PDTLOG: XX000: could not receive data from client: An operation was attempted on something that is not a socket. > 2009-08-17 00:56:58 PDTLOCATION: pq_recvbuf, .\src\backend\libpq\pqcomm.c:769 > 2009-08-17 00:56:59 PDTLOG: 08P01: incomplete startup packet > 2009-08-17 00:56:59 PDTLOCATION: ProcessStartupPacket, .\src\backend\postmaster\postmaster.c:1469 > > > > > -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc