Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D381A2E0101 for ; Mon, 18 Feb 2008 21:18:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 28018-01-7 for ; Mon, 18 Feb 2008 21:18:56 -0400 (AST) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id 3BD5C2E0069 for ; Mon, 18 Feb 2008 21:17:45 -0400 (AST) Received: by py-out-1112.google.com with SMTP id d37so3414926pye.29 for ; Mon, 18 Feb 2008 17:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; bh=35DMTJJFYRxJ7KmRRwPIDZaQA6OySMYGyeALWQN8Y6k=; b=slE5auDvzr0VjjlsekxMaPCWV5ZiUY0jYO8lw0E68kvLdOo5ayGCwJSLpCqofsVgdlEcIonnqlkjC6x70SEyVBvFGTJY9+oXSUM5BQVTznXY1edbA3U5PcI437bAJz7xie5a3hIPr0uqe8zwH+lf+YZuSEZrflICfVBejFngvlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=BAVpJRTp3F4nSrAAtxcrGLlFB7dNALHedRAfdcIx+nlFljI8m7uTu1HiIBDyeUIcvGGsyA4VtkgGHDHvTXmrqEWgdYvJDOupSmwLLCHx9klfX8y5ZQ0AGELuheGL+ZogEat/C6YLNz4gdEk3ygrLUDYJZBxhw2AisXmHGYcta5I= Received: by 10.35.102.1 with SMTP id e1mr7576204pym.32.1203383864174; Mon, 18 Feb 2008 17:17:44 -0800 (PST) Received: from waterloo.local ( [99.234.98.167]) by mx.google.com with ESMTPS id u2sm19084755pyb.27.2008.02.18.17.17.43 (version=SSLv3 cipher=OTHER); Mon, 18 Feb 2008 17:17:43 -0800 (PST) From: Jan de Visser To: pgsql-jdbc@postgresql.org Subject: Re: Getting "This ResultSet is closed" exceptions Date: Mon, 18 Feb 2008 20:17:58 -0500 User-Agent: KMail/1.9.6 (enterprise 0.20080118.763038) Cc: "Paul Tomblin" References: <8efd35820802180619l352d9b0eta35788642a5fc4eb@mail.gmail.com> <200802181708.07111.jdevisser@digitalfairway.com> <8efd35820802181507i3dace145t9b67bda4f07cd0fa@mail.gmail.com> In-Reply-To: <8efd35820802181507i3dace145t9b67bda4f07cd0fa@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200802182017.58477.jdevisser@digitalfairway.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/130 X-Sequence-Number: 18337 On Monday 18 February 2008 18:07:59 Paul Tomblin wrote: > =A0I've turned off autocommit, and am > running around the code trying to figure out where is the best place > to put "conn.commit();" calls. Come again? You are using a single connection and are calling commit and=20 seemingly random spots? That means that thread A will call commit while=20 thread B is in the middle of doing things. You are applying liberal amounts of lipstick on an animal that to everybody= =20 looks conspicuously like a porcine. Do yourself a favour. Introduce a=20 connection pool before you (or worse, your customers) go insane. jan =2D-=20 =2D------------------------------------------------------------- Jan de Visser =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 jdevisser@digitalfair= way.com =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Baruk Khazad! Khazad ai-menu! =2D-------------------------------------------------------------