incubator-river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Firmstone <j...@zeus.net.au>
Subject Re: Debugging River (Was: Re: new release?)
Date Mon, 15 Nov 2010 10:25:13 GMT
Peter Firmstone wrote:
> Patricia Shanahan wrote:
>> On 11/14/2010 5:43 PM, Peter Firmstone wrote:
>>> In Pepe the test passes when using the concurrent policy provider and
>>> the original DynamicPolicyProvider.
>>>
>>> I wonder if we've made a regression somewhere?
>>>
>>> Be nice to know what the original bug was?
>> ....
>>> [java] ENVIRONMENT PROPERTIES:
>>> [java]
>>> [java] JVM information:
>>> [java] Java HotSpot(TM) Server VM, 10.0-b23, 32 bit VM mode
>>> [java] Sun Microsystems Inc.
>>> [java] OS information:
>>> [java] SunOS, 5.10, sparc
>> ...
>>
>> Are your 1.6 failures all on Sun SPARC? My 1.6 successful runs are 
>> all on a Ubuntu VirtualBox in an Intel Windows XP machine. Maybe that 
>> is part of the difference?
>>
>> Patricia
>>
> Yes, I suspect it's something to do with platform optimisation 
> bringing out the bug.
>
> Peter.
>
The JDK1.5 ProtectionDomain, during call to DynamicPolicyProvider.implies.

Note that this domain has AllPermission and this Permission check passes.


Step completed: "thread=main", 
net.jini.security.policy.DynamicPolicyProvider.implies(), line=170 bci=5

main[1] print domain
 domain = "ProtectionDomain  (file:/opt/src/river/trunk/lib/mercury.jar 
<no signer certificates>)
 com.sun.jini.start.ActivateWrapper$ExportClassLoader[importURLs=[file:/opt/src/river/trunk/lib/mercury.jar],exportURLs=[http://bluto:8080/mercury-dl_bogus.jar,

http://bluto:8080/jsk-dl.jar],parent=sun.misc.Launcher$AppClassLoader@1855af5,id=0f3e143d-f30e-44e8-920c-ca800373d1f0]
 <no principals>
 java.security.Permissions@1bbbafc (
 (java.security.AllPermission <all permissions> <all actions>)
 (java.io.FilePermission /opt/src/river/trunk/lib/mercury.jar read)
 (java.lang.RuntimePermission stopThread)
 (java.net.SocketPermission localhost:1024- listen,resolve)
 (java.util.PropertyPermission java.version read)
 (java.util.PropertyPermission java.vm.name read)
 (java.util.PropertyPermission java.vm.vendor read)
 (java.util.PropertyPermission os.name read)
 (java.util.PropertyPermission java.vendor.url read)
 (java.util.PropertyPermission java.vm.specification.vendor read)
 (java.util.PropertyPermission java.specification.vendor read)
 (java.util.PropertyPermission os.version read)
 (java.util.PropertyPermission java.specification.name read)
 (java.util.PropertyPermission java.class.version read)
 (java.util.PropertyPermission file.separator read)
 (java.util.PropertyPermission java.vm.version read)
 (java.util.PropertyPermission os.arch read)
 (java.util.PropertyPermission java.vm.specification.name read)
 (java.util.PropertyPermission java.vm.specification.version read)
 (java.util.PropertyPermission java.specification.version read)
 (java.util.PropertyPermission java.vendor read)
 (java.util.PropertyPermission path.separator read)
 (java.util.PropertyPermission line.separator read)
 (net.jini.security.GrantPermission java.security.AllPermission "<all 
permissions>", "<all actions>"; java.io.FilePermission 
"/opt/src/river/trunk/lib/mercury.jar", "read"; 
java.lang.RuntimePermission "stopThread", ""; java.net.SocketPermission 
"localhost:1024-", "listen,resolve"; java.util.PropertyPermission 
"java.version", "read"; java.util.PropertyPermission "java.vm.name", 
"read"; java.util.PropertyPermission "java.vm.vendor", "read"; 
java.util.PropertyPermission "os.name", "read"; 
java.util.PropertyPermission "java.vendor.url", "read"; 
java.util.PropertyPermission "java.vm.specification.vendor", "read"; 
java.util.PropertyPermission "java.specification.vendor", "read"; 
java.util.PropertyPermission "os.version", "read"; 
java.util.PropertyPermission "java.specification.name", "read"; 
java.util.PropertyPermission "java.class.version", "read"; 
java.util.PropertyPermission "file.separator", "read"; 
java.util.PropertyPermission "java.vm.version", "read"; 
java.util.PropertyPermission "os.arch", "read"; 
java.util.PropertyPermission "java.vm.specification.name", "read"; 
java.util.PropertyPermission "java.vm.specification.version", "read"; 
java.util.PropertyPermission "java.specification.version", "read"; 
java.util.PropertyPermission "java.vendor", "read"; 
java.util.PropertyPermission "path.separator", "read"; 
java.util.PropertyPermission "line.separator", "read";)
)

"
main[1] print permission
 permission = "(java.io.FilePermission /var/tmp/Mercury28107.config read)"
main[1]


     [java] access: access allowed (java.io.FilePermission 
/opt/src/river/trunk/qa/lib/jinitests.jar read)
     [java] access: access allowed (java.io.FilePermission 
/opt/src/river/trunk/qa/lib/jinitests.jar read)
     [java] access: access allowed (java.io.FilePermission 
/var/tmp/Mercury28107.config read)


Mime
View raw message