Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 33833 invoked from network); 20 Jul 2010 14:02:02 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 14:02:02 -0000 Received: (qmail 82003 invoked by uid 500); 20 Jul 2010 14:02:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 81949 invoked by uid 500); 20 Jul 2010 14:02:01 -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 81942 invoked by uid 99); 20 Jul 2010 14:02:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 14:02:00 +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 (nike.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; Tue, 20 Jul 2010 14:01:51 +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 o6KE1SAs002453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 Jul 2010 14:01:29 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 o6KE1Ps5006193 for ; Tue, 20 Jul 2010 14:01:25 GMT Received: from abhmt001.oracle.com by acsmt354.oracle.com with ESMTP id 420080561279634474; Tue, 20 Jul 2010 07:01:14 -0700 Received: from richard-hillegas-computer.local (/10.159.216.165) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 20 Jul 2010 07:01:13 -0700 Message-ID: <4C45AC29.10603@oracle.com> Date: Tue, 20 Jul 2010 07:01:13 -0700 From: Rick Hillegas User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: No suitable driver found for ... References: <87946.37658.qm@web29112.mail.ird.yahoo.com> <4C45A5DF.4080908@oracle.com> In-Reply-To: <4C45A5DF.4080908@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4C45AC37.0198:SCFMA4539814,ss=1,fgs=0 X-Virus-Checked: Checked by ClamAV on apache.org Kristian Waagan wrote: > On 20.07.10 14:55, Tiago Espinha wrote: >> Hello all, >> >> I'm doing some old client testing for DERBY-4746 and I've ran into a >> problem >> that I can't seem to be able to solve. Basically, I tested my trunk >> server >> against a 10.5 client and everything was fine. But then when I test >> it against a >> 10.1.1.0 client, I get the following: >> >> No suitable driver found for >> jdbc:derby://localhost:1527/client1011;create=true >> >> I'm using eclipse and I simply add all the external jars (inside the >> bin folder) >> into the project. This procedure worked with 10.5 but 10.1.1.0 isn't >> liking it >> for some reason. Does anyone know what might be the cause of this? I >> get this >> exception just as I do: >> >> Connection conn = >> DriverManager.getConnection("jdbc:derby://localhost:1527/client1011;create=true"); >> >> > > Hi Tiago, > > I don't know why it would be special for 10.1.1.0, but have you done > Class.forName("org.apache.derby.jdbc.ClientDriver")? > Does your test code work with 10.5 if you run with Java 1.4 or 5.0? > > Not sure when we added the driver auto-loading.... Was it in Derby 10.3? Driver autoloading was part of JDBC4 so we added it with the other Java 6 support in 10.2. Cheers, -Rick > > > Regards,