Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 35007 invoked from network); 5 Jul 2006 07:09:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2006 07:09:48 -0000 Received: (qmail 77546 invoked by uid 500); 5 Jul 2006 07:09:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 77439 invoked by uid 500); 5 Jul 2006 07:09:43 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 77401 invoked by uid 99); 5 Jul 2006 07:09:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 00:09:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.1.36] (HELO gmpea-pix-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2006 00:09:41 -0700 Received: from d1-emea-02.sun.com (d1-emea-02.sun.com [192.18.2.112] (may be forged)) by gmpea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k6579H9v006486 for ; Wed, 5 Jul 2006 08:09:20 +0100 (BST) Received: from conversion-daemon.d1-emea-02.sun.com by d1-emea-02.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J1X00601457OC00@d1-emea-02.sun.com> (original mail from John.Embretsen@Sun.COM) for derby-dev@db.apache.org; Wed, 05 Jul 2006 08:09:17 +0100 (BST) Received: from [129.159.112.236] by d1-emea-02.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J1X006A257DPWEB@d1-emea-02.sun.com> for derby-dev@db.apache.org; Wed, 05 Jul 2006 08:09:17 +0100 (BST) Date: Wed, 05 Jul 2006 09:08:43 +0200 From: John Embretsen Subject: Re: [jira] Commented: (DERBY-1471) Implement layer B streaming for new methods defined in JDBC4.0 In-reply-to: <44AA9943.5020508@amberpoint.com> Sender: John.Embretsen@Sun.COM To: derby-dev@db.apache.org Reply-to: derby-dev@db.apache.org Message-id: <44AB657B.6070609@Sun.COM> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7BIT References: <8441619.1152026370681.JavaMail.jira@brutus> <44AA9943.5020508@amberpoint.com> User-Agent: Thunderbird 1.5.0.2 (X11/20060427) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Bryan Pendleton wrote: > > Kristian Waagan commented on DERBY-1471: > > ---------------------------------------- > > > > The approach is to exhaust the application stream and copy it into > > memory to determine the length. If the data is too big to fit in memory, > > the client will fail with an out-of-memory exception. > > That seems fine to me. This is already the case with the current > API and implementation, I believe, so we aren't making anything worse. Hi Kristian and Bryan, I am assuming that there is no out-of-memory specific exception implemented in Derby, and that you by "out-of-memory exception" mean java.lang.OutOfMemoryError. Please give me a hint if my assumption is wrong... I believe it is important to distinguish between java Errors and Exceptions, since an Error "indicates serious problems that a reasonable application should not try to catch" [1]. -- John [1] http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Error.html