Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 70767 invoked from network); 29 Oct 2010 03:26:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Oct 2010 03:26:02 -0000 Received: (qmail 89832 invoked by uid 500); 29 Oct 2010 03:26:01 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 89752 invoked by uid 500); 29 Oct 2010 03:26:00 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 89740 invoked by uid 99); 29 Oct 2010 03:25:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 03:25:59 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.121] (HELO rcsinet10.oracle.com) (148.87.113.121) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 03:25:50 +0000 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o9T3PRVk018903 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Oct 2010 03:25:28 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o9SMpGYv032134 for ; Fri, 29 Oct 2010 03:25:27 GMT Received: from abhmt014.oracle.com by acsmt354.oracle.com with ESMTP id 728890431288322692; Thu, 28 Oct 2010 20:24:52 -0700 Received: from localhost (/129.159.112.235) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 28 Oct 2010 20:24:52 -0700 From: dag.wanvik@oracle.com (Dag H. Wanvik) To: Derby Discussion Subject: Re: java.lang.RuntimeException: java.sql.SQLException: ResultSet not open References: Date: Fri, 29 Oct 2010 05:24:49 +0200 In-Reply-To: (Veresh Jain's message of "Thu, 28 Oct 2010 16:51:45 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (usg-unix-v) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Veresh Jain writes: Hi Veresh, this questions belongs on the Derby user's list. This list if for development issue. As to your question, the fact that other databases work, doesn't mean Derby is wrong, please provide som more detail about what you are doing. For example if you are using autocommit and have two open result sets in that transaction, when the first one is drained it is automaticaly closed leading the the transaction to commit as well, somewhat surprisingly, perhaps. In such cases, run with autocommit off for best results. Dag > Hi, > > We are using Apache Derby latest version in our project and is getting error > "java.lang.RuntimeException: java.sql.SQLException: ResultSet not open. > Verify that autocommit is OFF." > Same SQL statement works properly with MySQL and Oracle but DErby it fails. > > Please provide any pointers as what could be wrong. > > Thanks a lot. > > Regards > Veresh --