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

Daniel John Debrunner commented on DERBY-2788:
----------------------------------------------

I have a quick fix for this committed (545553) but I'm confused by the 
behaviour of the AutoloadedDriver.

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?

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.



> 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