Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 62019 invoked from network); 5 Mar 2008 07:00:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 07:00:28 -0000 Received: (qmail 95788 invoked by uid 500); 5 Mar 2008 07:00:18 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 95750 invoked by uid 500); 5 Mar 2008 07:00:18 -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 95707 invoked by uid 99); 5 Mar 2008 07:00:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2008 23:00:17 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.19.6] (HELO sineb-mail-1.sun.com) (192.18.19.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 06:59:29 +0000 Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m256xqVd018487 for ; Wed, 5 Mar 2008 06:59:53 GMT Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JX800801WPCQT00@mail-apac.sun.com> (original mail from V.Narayanan@Sun.COM) for derby-user@db.apache.org; Wed, 05 Mar 2008 14:59:47 +0800 (SGT) Received: from [129.158.228.35] by mail-apac.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JX8006ETWRIKKII@mail-apac.sun.com> for derby-user@db.apache.org; Wed, 05 Mar 2008 14:59:47 +0800 (SGT) Date: Wed, 05 Mar 2008 12:29:42 +0530 From: Narayanan Subject: Re: NPE getting length of Blob In-reply-to: <47CE29AF.5060106@apache.org> Sender: V.Narayanan@Sun.COM To: Derby Discussion Message-id: <47CE44DE.7020509@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=UTF-8 Content-transfer-encoding: 7BIT References: <200803041607.55832.daniel@nuix.com> <200803051252.37302.daniel@nuix.com> <200803051412.15847.daniel@nuix.com> <47CE29AF.5060106@apache.org> User-Agent: Thunderbird 2.0.0.6 (X11/20071022) X-Virus-Checked: Checked by ClamAV on apache.org Daniel John Debrunner wrote: > Daniel Noll wrote: >> On Wednesday 05 March 2008 13:54:19 Raymond Kroeker wrote: >>> Hi Daniel, >>> >>> What appears to be happening is that the same connection is being >>> returned by getConnection2(). Basically the implementation of the >>> pool is >>> not thread safe. >> >> I thought reusing the connection was the entire point of connection >> pooling. Correct me if I'm wrong. >> >> I can't see how getConnection2() could return the same object to two >> separate requestors, given that: >> - the method is synchronized >> - it only reuses a connection if it's in the recycledConnections stack >> - connections can only get into the stack after a connectionClosed >> event. >> >> Unless Derby is sending connectionClosed before the connection is >> actually closed, I don't see how it could happen. > > That sounds similar to DERBY-2142 ... > > https://issues.apache.org/jira/browse/DERBY-2142 > > Dan. https://issues.apache.org/jira/browse/DERBY-3379 for the client. Guess this issue is the reason for the failure. I agree with the analysis by Raymond. It works for embedded because DERBY-2142 has been fixed for embedded. DERBY-3379 has been opened afresh for client. Looks like the issue is being actively worked on. Guess we would expect a resolution soon. Thank you for the effort taken to analyze the issue Daniel and Raymond. Thanks for the pointer to the JIRA Dan. Narayanan