db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <Richard.Hille...@sun.com>
Subject Re: access denied test diffs in Rick's environment
Date Sat, 25 Mar 2006 00:53:10 GMT
Hi Bryan,

Sorry to not get back to you sooner. I have been at an offsite all day 
and am only now plowing through my email.

1) The Network server appears to be coming up with a security manager 
and policy file

2) I did a diff between that policy file and what's in the codeline, and 
they are identical.

3) I am running on cygwin/XP with the Java(TM) 2 Runtime Environment, 
Standard Edition (build 1.4.2_08-b03)

4) My classpath is wired together out of the classtree under 
trunk/classes and the jar files in trunk/tools/java. In gory detail, 
here it is:








I don't have any bright ideas about what might distinguish our 
environments and cause this problem. I'll give this some thought. Here's 
the command output echoed to my shell window:

console.encoding:null file.encoding:Cp1252 derby.ui.codeset: null
*** Start: sysinfo jdk1.4.2_08 DerbyNetClient 2006-03-24 16:22:55 ***
Initialize for framework: DerbyNetClient

-Djava.security.manager -
nk\classes -DderbyTesting.serverhost=localhost 
-DderbyTesting.clienthost=localhost -DderbyTesting.codejar=file://unused/
org.apache.derby.drda.NetworkServerControl start
-- SecurityManager not installed --

-Dframework=DerbyNetClient org.apache.derbyT
esting.functionTests.tests.derbynet.sysinfo -p 
The test should be running...
Attempt to shutdown framework: DerbyNetClient
About to execute: diff.exec( outName = 

= C:\cygwin\home\rh161140\derby\mainline\testRun\DerbyNetClient,pwDiff = 
java.io.PrintWriter@c53dce,testOutName = sysinf
o,frameworkMaster = DerbyNetClient,jvmName = jdk14,iminor = 4,useprocess 
= true,systemdiff = false,canondir = null,canon
path = null)

MasterFileName = master/DerbyNetClient/sysinfo.out
< Unable to analyze class path: access denied 
(java.util.PropertyPermission java.class.path read)
< Unable to analyze class path: access denied 
(java.util.PropertyPermission java.class.path read)
< Unable to analyze class path: access denied 
(java.util.PropertyPermission java.class.path read)
Test Failed.
*** End:   sysinfo jdk1.4.2_08 DerbyNetClient 2006-03-24 16:23:12 ***

Bryan Pendleton wrote:

>>>>> 15d14
>>>>> < Unable to analyze class path: access denied
>>>>> (java.util.PropertyPermission java.class.path read)
> Dan and/or Rick and/or anybody else who's seeing this problem:
> could you run
>   java -Dframework=DerbyNetClient -Dverbose=true 
> org.apache.derbyTesting.functionTests.harness.RunTest 
> derbynet/sysinfo.java
> And look in the output to confirm the following:
> 1) when the harness starts the Network Server, is it correctly
>    passing -Djava.security.manager and -Djava.security.policy?
> 2) Is the policy file that is pointed to by java.security.policy
>    the same contents as the derby_tests.policy that's under
>    functionTests/util in your source tree?
> If the above two questions are both answered "true", then maybe
> you could help me figure out why that policy file seems to deny
> me the permission to read java.class.path, but permits you that
> permission?
> thanks,
> bryan

View raw message