[ http://issues.apache.org/jira/browse/DERBY-1399?page=comments#action_12416155 ]
Olav Sandstaa commented on DERBY-1399: -------------------------------------- Bryan, thanks for commenting on this issue. The call to TestUtil.loadDriver() needs to be in the test. This method loads the Derby client driver (or the JCC driver when running in the DerbyNet framework). The client driver is used in the test to establish connections to the network server. Without explicitly loading a client driver the test will fail with "No suitable driver" when attempting to connect (at least when running with a pre JDK 1.6 VM). The DerbyNetAutoStart test loads both a client driver (Derby client driver or JCC) and the embedded driver (with or without starting the network server). > 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
