[ 
https://issues.apache.org/jira/browse/DERBY-2788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12503995
 ] 

Rick Hillegas commented on DERBY-2788:
--------------------------------------

Dan asked:

>When Derby is shutdown the autoloaded driver does not remove itself from the 
>driver manager, even though it seems it will not honour any connection request 
>until the embedded driver is explicitly loaded. >What is the purpose of 
>keeping Derby code running once the application has explicitly asked for it to 
>be removed?

I don't know what, if anything, would break if the AutoloadedDriver 
unregistered itself. The embedded driver reference should be nulled out if the 
engine is shut down. Is that not happening? What Derby code do you see running?

> Another minor issue is that the javadoc for the class is incorrect, it is not 
> only used in JDBC 4/JDK 6, it seems to be an integral part of the embedded 
> driver boot process. 

You are right. The AutoloadedDriver is loaded regardless of your JDBC level. 
The javadoc should be corrected.



> Authentication tests fails with 'org.apache.derby.jdbc.EmbeddedDriver is not 
> registered with the JDBC driver manager'
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2788
>                 URL: https://issues.apache.org/jira/browse/DERBY-2788
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>    Affects Versions: 10.3.0.0
>         Environment: OS: Solaris 10 6/06 s10x_u2wos_09a X86 64bits - SunOS 
> 5.10 Generic_118855-14
> JVM: Sun Microsystems Inc. 1.6.0_01-b06
>            Reporter: Ole Solberg
>             Fix For: 10.3.0.0
>
>
> See 
> http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/Limited/testSummary-545337.html
> http://dbtg.thresher.com/derby/test/tinderbox_trunk16/jvm1.6/testing/Limited/testSummary-545380.html
> There were 46 errors:
> 1) 
> testConnectShutdownAuthentication(org.apache.derbyTesting.functionTests.tests.jdbcapi.AuthenticationTest)java.sql.SQLException:
>  org.apache.derby.jdbc.EmbeddedDriver is not registered with the JDBC driver 
> manager
>       at org.apache.derby.jdbc.AutoloadedDriver.getDriverModule(Unknown 
> Source)
>       at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
>       at java.sql.DriverManager.getConnection(DriverManager.java:582)
>       at java.sql.DriverManager.getConnection(DriverManager.java:185)
>       at 
> org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:76)
>       at 
> org.apache.derbyTesting.junit.DriverManagerConnector.openConnection(DriverManagerConnector.java:51)
>       at 
> org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:968)
>       at 
> org.apache.derbyTesting.junit.BaseJDBCTestCase.openDefaultConnection(BaseJDBCTestCase.java:277)
>       at 
> org.apache.derbyTesting.functionTests.tests.jdbcapi.AuthenticationTest.testConnectShutdownAuthentication(AuthenticationTest.java:260)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:88)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)
>       at 
> org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
>       at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
>       at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
>       at junit.extensions.TestSetup.run(TestSetup.java:25)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to