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:

c:/cygwin/home/rh161140/derby/mainline/trunk/classes;c:/cygwin/home/rh161140/derby/mainline/trunk/tools/java/empty.jar;c


:/cygwin/home/rh161140/derby/mainline/trunk/tools/java/geronimo-spec-jta-1.0.1B-rc4.jar;c:/cygwin/home/rh161140/derby/ma


inline/trunk/tools/java/geronimo-spec-servlet-2.4-rc4.jar;c:/cygwin/home/rh161140/derby/mainline/trunk/tools/java/jakart


a-oro-2.0.8.jar;c:/cygwin/home/rh161140/derby/mainline/trunk/tools/java/javacc.jar;c:/cygwin/home/rh161140/derby/mainlin


e/trunk/tools/java/jce1_2_2.jar;c:/cygwin/home/rh161140/derby/mainline/trunk/tools/java/jdbc2_0-stdext.jar;c:/cygwin/hom


e/rh161140/derby/mainline/trunk/tools/java/junit.jar;c:/cygwin/home/rh161140/derby/mainline/trunk/tools/java/osgi.jar;c:


/cygwin/home/rh161140/sw/db2jcc/lib/db2jcc.jar;c:/cygwin/home/rh161140/sw/db2jcc/lib/db2jcc_license_c.jar



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
java 
-Dderby.system.home=C:\cygwin\home\rh161140\derby\mainline\testRun\DerbyNetClient\sysinfo

-Djava.security.manager -
Djava.security.policy=C:\cygwin\home\rh161140\derby\mainline\testRun\derby_tests.policy 
-DderbyTesting.codeclasses=file:
/C:/cygwin/home/rh161140/derby/mainline/trunk/classes/ 
-DderbyTesting.codedir=C:\cygwin\home\rh161140\derby\mainline\tru
nk\classes -DderbyTesting.serverhost=localhost 
-DderbyTesting.clienthost=localhost -DderbyTesting.codejar=file://unused/
org.apache.derby.drda.NetworkServerControl start
-- SecurityManager not installed --
java 
-Dderby.system.home=C:\cygwin\home\rh161140\derby\mainline\testRun\DerbyNetClient\sysinfo

-Dderby.infolog.append=tr
ue 
-Duser.dir=C:\cygwin\home\rh161140\derby\mainline\testRun\DerbyNetClient 
-Dframework=DerbyNetClient org.apache.derbyT
esting.functionTests.tests.derbynet.sysinfo -p 
C:\cygwin\home\rh161140\derby\mainline\testRun\DerbyNetClient\sysinfo\sys
info_app.properties
The test should be running...
Attempt to shutdown framework: DerbyNetClient
About to execute: diff.exec( outName = 
C:\cygwin\home\rh161140\derby\mainline\testRun\DerbyNetClient\sysinfo.out,outDir 

= 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
15d14
< Unable to analyze class path: access denied 
(java.util.PropertyPermission java.class.path read)
43d41
< Unable to analyze class path: access denied 
(java.util.PropertyPermission java.class.path read)
72d69
< 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
>
>


Mime
View raw message