db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olav Sandstaa (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1379) NIST tests fail on jdk16 after introduction of JDBC4 driver autoloading
Date Thu, 08 Jun 2006 08:02:30 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1379?page=all ]

Olav Sandstaa updated DERBY-1379:
---------------------------------

    Attachment: autoload.diff

This patch solves the problem with running the Nist tests under jdk
1.6 by unloading the embedded driver before the nist suite is started. 

This is implemented in the RunList.runSuites method in the test
harness. Before a new test suite is started and the suite
is defined to run as part of the same JVM (useprocess=false) the
embedded driver and Derby engine is unloaded. The purpose of this is
that when the suite start running it will (re-)load an embedded driver
that will use the properties defined by the suite (in the case of the
Nist test the problem was that defined derby.system.home was not
used). 

The patch is ready for review and commit. I would like to get feedback
on:

 1. The selected approach for solving this problem (by explicitly
    unload the embedded driver).

 2. If the code for unload the driver is included in the test harness
    on the most appropriate place.

svn status reports:

M      java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java

Derbyall has been run with jdk1.5 and jdk1.6 on Solaris 10. The
unloading and reloading of the driver does not seem to make any other
test fail.

If there are no objections to the selected approach for solving this
problem, the patch is ready for being committed.



> NIST tests fail on jdk16 after introduction of JDBC4 driver autoloading
> -----------------------------------------------------------------------
>
>          Key: DERBY-1379
>          URL: http://issues.apache.org/jira/browse/DERBY-1379
>      Project: Derby
>         Type: Bug

>   Components: Tools
>     Versions: 10.2.0.0
>  Environment: Sun JDK 1.6
>     Reporter: Olav Sandstaa
>     Assignee: Olav Sandstaa
>     Priority: Minor
>  Attachments: autoload.diff
>
> When running derbyall on jdk16 the Nist tests fails with the following exception:
>   java.security.AccessControlException: access denied
>   (java.util.PropertyPermission user.dir read)
> The tests started to fail after autoloading of JDBC drivers was added to the embedded
driver (see DERBY-930). 
> To reproduce the problem you need (a) to run from jar files (not class files) and (b)
have the DB2 driver in the class path.

-- 
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


Mime
View raw message