Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 48080 invoked from network); 21 Sep 2005 16:01:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Sep 2005 16:01:29 -0000 Received: (qmail 62938 invoked by uid 500); 21 Sep 2005 16:01:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62690 invoked by uid 500); 21 Sep 2005 16:01:27 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 62679 invoked by uid 99); 21 Sep 2005 16:01:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 09:01:27 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of dremesh@gmail.com designates 64.233.162.196 as permitted sender) Received: from [64.233.162.196] (HELO zproxy.gmail.com) (64.233.162.196) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2005 09:01:36 -0700 Received: by zproxy.gmail.com with SMTP id 12so1350749nzp for ; Wed, 21 Sep 2005 09:01:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FJ/+AnT2Q+i/qD50d6QGKjhsoQrA4iW5D2vn01wuk2z1g9Zbxl9p6d10viAvr/7v2quczwnzDPaHllfBjOeIjE6dl99dyyyH/JHBvJeI9idNL2NH5T3KK+0Tpjv+IzYnxFU7OwTQgUI+NSXBZLpNNvYHhoupdrAMXX3OSjI6tqI= Received: by 10.54.79.17 with SMTP id c17mr2574281wrb; Wed, 21 Sep 2005 09:01:06 -0700 (PDT) Received: by 10.54.11.37 with HTTP; Wed, 21 Sep 2005 09:01:06 -0700 (PDT) Message-ID: <58ed70f505092109015606ec25@mail.gmail.com> Date: Wed, 21 Sep 2005 09:01:06 -0700 From: Deepa Remesh Reply-To: Deepa Remesh To: Derby Development Subject: Re: [jira] Updated: (DERBY-374) Invalid URL with Derby Client when connecting to Network Server causes protocol exception. In-Reply-To: <43303A4D.9050906@sbcglobal.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <468024357.1127142629464.JavaMail.jira@ajax.apache.org> <432EF50E.7070008@sbcglobal.net> <432F129D.7070400@sbcglobal.net> <58ed70f505092009143e77b951@mail.gmail.com> <43303A4D.9050906@sbcglobal.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/20/05, Kathey Marsden wrote: > I think that is the best we can do from the server side as we cannot > send a full SQLCARD in this case. > I am not sure what message the client reports when this is returned by > the server. If it does not seem informative enough, we could always add > additional checking to the client to have it made clear and make the > message match the embedded driver. But I think you are right in taking > the first step of fixing the NPE in the server and returning RDBAFLRM > when the server cannot make a connection. > I am doing the following. In network server, check if a null connection is returned by InternalDriver. If so, throw "new SQLException("No suitable driver","08001");" to match behaviour with embedded driver. The server will use this SQLException to build RDBAFLRM and SQLCARD and send it to client. When using embedded driver, this exception gets thrown by DriverManager.getConnection method. Output in ij: //Embedded ij> connect 'jdbc:derby:/sample:create=3Dtrue;'; ERROR 08001: No suitable driver //Network Server with Derby Client ij> connect 'jdbc:derby://localhost:1527/sample:create=3Dtrue;'; ERROR 08001: DERBY SQL error: SQLCODE: -1, SQLSTATE: 08001, SQLERRMC: No suitable driver Please let me know if there are any comments. Thanks, Deepa