Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 76690 invoked from network); 13 Jun 2006 17:20:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Jun 2006 17:20:44 -0000 Received: (qmail 9622 invoked by uid 500); 13 Jun 2006 17:20:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9598 invoked by uid 500); 13 Jun 2006 17:20: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 9587 invoked by uid 99); 13 Jun 2006 17:20:43 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 10:20:43 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jun 2006 10:20:42 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AC8757141FA for ; Tue, 13 Jun 2006 17:19:30 +0000 (GMT) Message-ID: <28761731.1150219170703.JavaMail.jira@brutus> Date: Tue, 13 Jun 2006 17:19:30 +0000 (GMT+00:00) From: "Olav Sandstaa (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-1399) DerbyNetAutoStart test fails on JDK 1.6 after introduction JDBC4 driver autoloading In-Reply-To: <11283835.1150201529859.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1399?page=comments#action_12416036 ] Olav Sandstaa commented on DERBY-1399: -------------------------------------- This problem is similar to the problem that caused the NIST tests to fail when running with JDK 1.6 (see DERBY-1379). The DerbyNetAutoStart test does the following during start up: 1. Explicitly load the DerbyNetClient by calling TestUtil.loadDriver(). Due to JDBC driver autoloading, this will also load the embedded JDBC driver and the Derby engine when running with JDK 1.6. 2. Set some properties for the embedded driver. In the first test case this property is: derby.drda.startNetworkServer=true to make the network server start as part of loading the embedded driver. 3. Explicitly load the embedded driver. But since the driver and engine are already loaded, not much is done here. As a consequence the properties set does not take effect, and the network server is not started. This makes the test fail. I plan to fix this problem by explicitly attempt to unload the embedded driver and engine in the start of each individual subtest. (This is already done after each sub test has run, but this does not help the first subtest). > DerbyNetAutoStart test fails on JDK 1.6 after introduction JDBC4 driver autoloading > ----------------------------------------------------------------------------------- > > Key: DERBY-1399 > URL: http://issues.apache.org/jira/browse/DERBY-1399 > Project: Derby > Type: Bug > Components: Test > Versions: 10.2.0.0 > Environment: Sun JDK 1.6 > Reporter: Olav Sandstaa > Assignee: Olav Sandstaa > Priority: Minor > > DerbyNetAutoStart.java fails when running on JDK 1.6 with DerbyNet and DerbyClient frameworks with the following error: > Starting test case 1. > Could not access database through the network server. > java.net.ConnectException : Error connecting to server localhost on port 152 > 7 with message Connection refused. > Starting test case 2. > Could not access database through the network server. > java.net.ConnectException : Error connecting to server localhost on port 314 > 15 with message Connection refused. > Starting test case 3. > Starting test case 4. > Starting test case 5. > FAILED. > This test seems to have failed consistently since JDBC4 driver autoloading was introduced (see DERBY-930). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira