Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2255B9FB56B for ; Tue, 6 Mar 2007 19:35:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 64009-10 for ; Tue, 6 Mar 2007 19:35:16 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mx1.progress.com (mx1.progress.com [192.77.186.16]) by postgresql.org (Postfix) with ESMTP id 621519FB552 for ; Tue, 6 Mar 2007 19:35:16 -0400 (AST) Received: from mx1.progress.com (127.0.0.1) by mx1.progress.com (MlfMTA v3.2r1b3) id htntb80171su for ; Tue, 6 Mar 2007 18:35:15 -0500 (envelope-from ) Received: from progress.com ([192.233.92.16]) by mx1.progress.com (SonicWALL 5.0.2.8415) with ESMTP; Tue, 06 Mar 2007 18:35:15 -0500 Received: from NTEXFE02.bedford.progress.com (ntexfe02 [172.16.2.62]) by progress.com (8.13.8/8.13.8) with ESMTP id l26NZEtg002730; Tue, 6 Mar 2007 18:35:14 -0500 (EST) Received: from MAIL03.bedford.progress.com ([172.16.2.59]) by NTEXFE02.bedford.progress.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6 Mar 2007 18:35:14 -0500 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Fetching generated keys Date: Tue, 6 Mar 2007 18:35:10 -0500 Message-ID: <626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JDBC] Fetching generated keys Thread-Index: AcdgQLcUHAh8IlfWR3i82IgZOu+zNQABx+Ww From: "Mike Clements" To: "Kris Jurka" Cc: "PostgreSQL JDBC List" X-OriginalArrivalTime: 06 Mar 2007 23:35:14.0977 (UTC) FILETIME=[17653910:01C76048] X-Mlf-Version: 5.0.2.8415 X-Mlf-UniqueId: o200703062335150062706 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/64 X-Sequence-Number: 16778 Kris, I wrote a simple test program and schema but I can't reliably reproduce the problem. The problem I'm seeing is intermittent. When calling next() on the result set, it sometimes throws an exception saying the DB connection has been closed. Of course it hasn't been closed, but the problem is now so intermittent I can't reliably reproduce it. If I end up being able to reproduce it consistently I'll post the sample code. Regards, -----Original Message----- From: Kris Jurka [mailto:books@ejurka.com]=20 Sent: Tuesday, March 06, 2007 5:42 PM To: Mike Clements Cc: PostgreSQL JDBC List Subject: Re: [JDBC] Fetching generated keys On Tue, 6 Mar 2007, Mike Clements wrote: > 2. call executeQuery() and use the result set. > > If I call statement.executeQuery(), it throws an exception saying the=20 > connection is already closed ?!?! > I have no idea what you're testing, but the attached works fine for me.=20 Could you provide individual test cases for any and all problems you are seeing? Kris Jurka