On 1/27/06, Manjula G Kutty <[EMAIL PROTECTED]> wrote:
Myrna van Lunteren wrote:

> Hi,
>
> When I run the test jdbcapi/getCurConnJdbc20 with db2jcc.jar (and
> db2jcc_license_c.jar) in my classpath, like so:
>   java -Duseprocess=false
> org.apache.derbyTesting.functionTests.harness.RunTest
> jdbcapi/getCurConnJdbc20.sql
> I get the following diff:
> -------------------
> 14a15,20
> > ERROR 38000: The exception 'java.lang.ExceptionInInitializerError'
> was thrown
> while evaluating an _expression_.
> > ERROR XJ001: Java exception: ': java.lang.ExceptionInInitializerError'.
> > ERROR XJ001: Java exception: 'access denied (
> java.lang.RuntimePermission loadLibrary.db2jcct2):
> java.security.AccessControlException'.
> > ij> ------------------------------------------------------------
> > -- drop the table
> > drop table T;
> 16,19d21
> < ij> ------------------------------------------------------------
> < -- drop the table
> < drop table T;
> < 0 rows inserted/updated/deleted
> ---------------
> (more fun and entertainment in the derby.log).
>
> I don't understand why the call to the method
> (...)util.Jdbc20Test.newJdbc20Method would attempt to load the jcc
> driver? I'm not running networkserver here - just embedded...
> Does this maybe mean that
> driverManager.getConnection("jdbc:default:connection") goes through
> all available drivers in the classpath?
>
> Thx,
> Myrna

Hi Myrna ,

You are seeing this problem because of the property you set
useproperty=false. Please see the Jira entry

http://issues.apache.org/jira/browse/DERBY-885

Thanks
Manjula




Hi Manjula,
 
No, this is not at all the same thing. If I run the same test without the db2jcc*.jars in my classpath, I get no errors.
Setting useprocess=false is a valid setting which should not cause trouble.
I've been trying very hard to make things work again after the security check-ins for useprocess messed up the RemoteHost functionality, and this was one of the surprises I saw on the way.
 
Myrna
 

Reply via email to