river-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patricia Shanahan <p...@acm.org>
Subject Re: TaskManager progress
Date Tue, 10 Aug 2010 14:47:51 GMT
I tried checking out the latest revision in my VirtualBox Ubuntu 
environment, and it did not work well.

I get numerous errors of the form:

      [java] access: access allowed (java.util.PropertyPermission 
java.security.auth.policy read)
      [java] access: access allowed (java.security.SecurityPermission 
getProperty.auth.policy.url.1)
      [java] access: access allowed (java.io.FilePermission 
/home/pats/apache/river/jtsk/trunk/qa/lib/jiniharness.jar read)
      [java] access: access denied (java.util.logging.LoggingPermission 
control)
      [java] java.lang.Exception: Stack trace
      [java] 	at java.lang.Thread.dumpStack(Thread.java:1206)
      [java] 	at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:313)
      [java] 	at 
java.security.AccessController.checkPermission(AccessController.java:546)
      [java] 	at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      [java] 	at 
java.util.logging.LogManager.checkAccess(LogManager.java:919)
      [java] 	at java.util.logging.Handler.checkAccess(Handler.java:284)
      [java] 	at java.util.logging.Handler.setLevel(Handler.java:239)
      [java] 	at com.sun.jini.qa.harness.ReportHandler.configure(Unknown 
Source)
      [java] 	at com.sun.jini.qa.harness.ReportHandler.<init>(Unknown 
Source)
      [java] 	at com.sun.jini.qa.harness.QAConfig.<clinit>(Unknown Source)
      [java] 	at java.io.ObjectStreamClass.hasStaticInitializer(Native 
Method)
      [java] 	at 
java.io.ObjectStreamClass.computeDefaultSUID(ObjectStreamClass.java:1696)
      [java] 	at 
java.io.ObjectStreamClass.access$100(ObjectStreamClass.java:52)
      [java] 	at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:205)
      [java] 	at java.security.AccessController.doPrivileged(Native Method)
      [java] 	at 
java.io.ObjectStreamClass.getSerialVersionUID(ObjectStreamClass.java:202)
      [java] 	at 
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:558)
      [java] 	at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
      [java] 	at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      [java] 	at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      [java] 	at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      [java] 	at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      [java] 	at com.sun.jini.qa.harness.MasterTest.main(Unknown Source)
      [java] access: access allowed (java.security.SecurityPermission 
getPolicy)
      [java] access: access allowed (java.io.FilePermission 
/home/pats/apache/river/jtsk/trunk/qa/lib/jiniharness.jar read)
      [java] access: domain that failed ProtectionDomain 
(file:/home/pats/apache/river/jtsk/trunk/qa/lib/jiniharness.jar <no 
signer certificates>)
      [java]  sun.misc.Launcher$AppClassLoader@7d772e
      [java]  <no principals>
      [java]  java.security.Permissions@1bf216a (
      [java]  (java.net.SocketPermission localhost:1024- listen,resolve)
      [java]  (java.net.SocketPermission *:1024- connect,accept,resolve)
      [java]  (java.util.PropertyPermission line.separator read)
      [java]  (java.util.PropertyPermission java.vm.version read)
      [java]  (java.util.PropertyPermission 
java.vm.specification.version read)
      [java]  (java.util.PropertyPermission java.vm.specification.vendor 
read)
      [java]  (java.util.PropertyPermission java.vendor.url read)
      [java]  (java.util.PropertyPermission java.vm.name read)
      [java]  (java.util.PropertyPermission * read)
      [java]  (java.util.PropertyPermission os.name read)
      [java]  (java.util.PropertyPermission java.vm.vendor read)
      [java]  (java.util.PropertyPermission path.separator read)
      [java]  (java.util.PropertyPermission java.specification.name read)
      [java]  (java.util.PropertyPermission os.version read)
      [java]  (java.util.PropertyPermission os.arch read)
      [java]  (java.util.PropertyPermission 
com.sun.jini.qa.spec.io.util.FakeIntegrityVerifier.throwException write)
      [java]  (java.util.PropertyPermission java.class.version read)
      [java]  (java.util.PropertyPermission java.version read)
      [java]  (java.util.PropertyPermission file.separator read)
      [java]  (java.util.PropertyPermission java.vendor read)
      [java]  (java.util.PropertyPermission java.vm.specification.name read)
      [java]  (java.util.PropertyPermission java.specification.version read)
      [java]  (java.util.PropertyPermission java.specification.vendor read)
      [java]  (java.lang.RuntimePermission 
accessClassInPackage.sun.util.logging.resources)
      [java]  (java.lang.RuntimePermission setFactory)
      [java]  (java.lang.RuntimePermission stopThread)
      [java]  (java.lang.RuntimePermission exitVM)
      [java]  (java.io.FilePermission 
/home/pats/apache/river/jtsk/trunk/qa/lib/jiniharness.jar read)
      [java] )
      [java]
      [java]
      [java] access: access denied (java.util.logging.LoggingPermission 
control)
      [java] java.lang.Exception: Stack trace
      [java] 	at java.lang.Thread.dumpStack(Thread.java:1206)
      [java] 	at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:313)
      [java] 	at 
java.security.AccessController.checkPermission(AccessController.java:546)
      [java] 	at 
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
      [java] 	at 
java.util.logging.LogManager.checkAccess(LogManager.java:919)
      [java] 	at java.util.logging.Handler.checkAccess(Handler.java:284)
      [java] 	at java.util.logging.Handler.setFilter(Handler.java:161)
      [java] 	at com.sun.jini.qa.harness.ReportHandler.configure(Unknown 
Source)
      [java] 	at com.sun.jini.qa.harness.ReportHandler.<init>(Unknown 
Source)
      [java] 	at com.sun.jini.qa.harness.QAConfig.<clinit>(Unknown Source)
      [java] 	at java.io.ObjectStreamClass.hasStaticInitializer(Native 
Method)
      [java] 	at 
java.io.ObjectStreamClass.computeDefaultSUID(ObjectStreamClass.java:1696)
      [java] 	at 
java.io.ObjectStreamClass.access$100(ObjectStreamClass.java:52)
      [java] 	at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:205)
      [java] 	at java.security.AccessController.doPrivileged(Native Method)
      [java] 	at 
java.io.ObjectStreamClass.getSerialVersionUID(ObjectStreamClass.java:202)
      [java] 	at 
java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:558)
      [java] 	at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
      [java] 	at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
      [java] 	at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
      [java] 	at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
      [java] 	at 
java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
      [java] 	at com.sun.jini.qa.harness.MasterTest.main(Unknown Source)
      [java] access: access allowed (java.security.SecurityPermission 
getPolicy)
      [java] access: access allowed (java.io.FilePermission 
/home/pats/apache/river/jtsk/trunk/qa/lib/jiniharness.jar read)
      [java] access: domain that failed ProtectionDomain 
(file:/home/pats/apache/river/jtsk/trunk/qa/lib/jiniharness.jar <no 
signer certificates>)
      [java]  sun.misc.Launcher$AppClassLoader@7d772e
      [java]  <no principals>
      [java]  java.security.Permissions@12ac982 (
      [java]  (java.net.SocketPermission localhost:1024- listen,resolve)
      [java]  (java.net.SocketPermission *:1024- connect,accept,resolve)
      [java]  (java.util.PropertyPermission line.separator read)


Patricia


On 8/10/2010 4:22 AM, Peter Firmstone wrote:
> Yes,
>
> This is due to the JVM optimising the DynamicConcurrentPolicyProvider,
> the SecurityManager isn't instantiated at the time of the test, since
> the SecurityManager is null no security check is performed.. When I
> invoke the test with the SecurityManager installed from the command
> line, all executes and passes as expected.
>
> The DynamicConcurrentPolicyProvider passes all DynamicPolicy tests.
>
> I need to look into it further to decide how to handle it.
>
> Thanks,
>
> Peter.
>
> Patricia Shanahan wrote:
>> A re-run with a build.properties only got 9 failures. Here is the
>> first example:
>>
>> [java]
>> com/sun/jini/test/spec/loader/pref/preferredClassLoader/GetPermissionsSecurityException.td
>>
>> [java] Test Failed: Test Failed: com.sun.jini.qa.harness.TestException:
>> [java]
>> Class.forName(com.sun.jini.test.spec.loader.util.classes.Class01,
>> false, loader)
>> [java] returned:class com.sun.jini.test.spec.loader.util.classes.Class01
>> [java] expected:throws SecurityException
>>
>> The complaint seems to be a failure to throw an expected
>> SecurityException. Any ideas?
>>
>> Thanks,
>>
>> Patricia
>>
>>
>>
>> On 8/8/2010 9:27 PM, Patricia Shanahan wrote:
>>> I have installed Ubuntu in a VirtualBox, and built using the same files,
>>> except for renaming build.properties to get it out of the way for now.
>>> The build was successful. I got 13 QA test failures, for example:
>>>
>>> [java]
>>> com/sun/jini/test/spec/jrmp/jrmpexporter/Unexport_BehaviorTest4.td
>>> [java] Test Failed: Test Failed with an Unexpected Exception:
>>> java.rmi.server.ExportException: Port already in use: 5678; nested
>>> exception is:
>>> [java] java.net.BindException: Address already in use
>>>
>>> [java] # of tests started = 397
>>> [java] # of tests completed = 397
>>> [java] # of tests skipped = 18
>>> [java] # of tests passed = 384
>>> [java] # of tests failed = 13
>>>
>>> This means my really weird problems are definitely related to windows
>>> issues, not svn.
>>>
>>> Patricia
>>>
>>>
>>> On 8/5/2010 3:24 AM, Peter Firmstone wrote:
>>>> Ok, strange, I'll do the same, see if it's something wrong with the
>>>> apache svn.
>>>>
>>>> Patricia Shanahan wrote:
>>>>> I attached this to the wrong message. It is actually a reply to the
>>>>> suggestion to checkout into a new directory.
>>>>>
>>>>> On 8/4/2010 9:51 PM, Patricia Shanahan wrote:
>>>>>> Done. It still fails, which makes no sense at all to me. I've
>>>>>> uploaded
>>>>>> build.properties (the only file involved that is not the result of
>>>>>> the
>>>>>> checkout) and the output:
>>>>>>
>>>>>> http://www.patriciashanahan.com/apache/build.properties
>>>>>> http://www.patriciashanahan.com/apache/myBuildLog.txt
>>>>>>
>>>>>> Patricia
>>>>>>
>>>>>>
>>>>>> On 8/2/2010 12:10 AM, Peter Firmstone wrote:
>>>>>>> Try running ant all.clean again, then look at build/deps, it
>>>>>>> should be
>>>>>>> empty.
>>>>>>>
>>>>>>> Perhaps ant all.clean isn't cleaning everything in your case?
>>>>>>>
>>>>>>> Peter.
>>>>>>>
>>>>>>> Patricia Shanahan wrote:
>>>>>>>> Here it is, but it does not make sense to me. As far as I
can tell,
>>>>>>>> RevokeablePolicy is only mentioned in comments and build
reports. I
>>>>>>>> have checked that PreferredClassLoader.class was rebuilt.
>>>>>>>>
>>>>>>>> Patricia
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> $ find . -type f -exec grep 'RevokeablePolicy' '{}' ';' -print
>>>>>>>> org\apache\river\api\security\RevokeablePolicy.class
>>>>>>>> ./build/deps/jsk-platform.deps
>>>>>>>> [java] Warning: Class not found:
>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>> [java] Warning: Class not found:
>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>> [java] Warning: Class not found:
>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>> ./myBuildLog.txt
>>>>>>>> * RevokeablePolicy, hence the constructor change.
>>>>>>>> ./src/net/jini/loader/pref/.svn/text-base/PreferredClassLoader.java.svn-base
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> * RevokeablePolicy, hence the constructor change.
>>>>>>>> ./src/net/jini/loader/pref/PreferredClassLoader.java
>>>>>>>>
>>>>>>>>
>>>>>>>> On 8/1/2010 3:36 PM, Peter Firmstone wrote:
>>>>>>>>> Can you run a search for RevokeablePolicy, so I can track
down the
>>>>>>>>> dependency and fix the files? Sounds like there's a problem
on svn
>>>>>>>>> somewhere.
>>>>>>>>>
>>>>>>>>> Patricia Shanahan wrote:
>>>>>>>>>> I did that, and get the same results. I get several
warnings
>>>>>>>>>> during
>>>>>>>>>> jar building:
>>>>>>>>>>
>>>>>>>>>> jini-ext.jar:
>>>>>>>>>> [java] Warning: Class not found:
>>>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>>>> [jar] Building jar: C:\apache\river\jtsk\trunk\lib\jini-ext.jar
>>>>>>>>>>
>>>>>>>>>> jsk-dl.jar:
>>>>>>>>>> [jar] Building jar: C:\apache\river\jtsk\trunk\lib-dl\jsk-dl.jar
>>>>>>>>>>
>>>>>>>>>> jsk-lib.jar:
>>>>>>>>>> [java] Warning: Class not found:
>>>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>>>> [jar] Building jar: C:\apache\river\jtsk\trunk\lib\jsk-lib.jar
>>>>>>>>>>
>>>>>>>>>> jsk-resources.jar:
>>>>>>>>>> [jar] Building jar:
>>>>>>>>>> C:\apache\river\jtsk\trunk\lib\jsk-resources.jar
>>>>>>>>>>
>>>>>>>>>> jsk-platform.jar:
>>>>>>>>>> [java] Warning: Class not found:
>>>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>>>> [jar] Building jar:
>>>>>>>>>> C:\apache\river\jtsk\trunk\lib\jsk-platform.jar
>>>>>>>>>>
>>>>>>>>>> followed by:
>>>>>>>>>>
>>>>>>>>>> BUILD FAILED
>>>>>>>>>> C:\apache\river\jtsk\trunk\build.xml:783: The following
error
>>>>>>>>>> occurred
>>>>>>>>>> while executing this line:
>>>>>>>>>> C:\apache\river\jtsk\trunk\common.xml:195:
>>>>>>>>>> java.lang.NoClassDefFoundError:
>>>>>>>>>> org/apache/river/api/security/Denied
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 8/1/2010 2:54 PM, Peter Firmstone wrote:
>>>>>>>>>>> RevokeablePolicy shouldn't be there, it was renamed
to
>>>>>>>>>>> RevokeableDynamicPolicy.
>>>>>>>>>>>
>>>>>>>>>>> can you try ant all.clean and run svn update
again?
>>>>>>>>>>>
>>>>>>>>>>> Patricia Shanahan wrote:
>>>>>>>>>>>> On 7/31/2010 3:24 PM, Peter Firmstone wrote:
>>>>>>>>>>>> ...
>>>>>>>>>>>>> To get all these tests functioning on
Windows, I suggest we
>>>>>>>>>>>>> attempt
>>>>>>>>>>>>> using the make build, this might give
us some insight into
>>>>>>>>>>>>> some
>>>>>>>>>>>>> of the
>>>>>>>>>>>>> platform support problems. Try both the
qa tests and the jtreg
>>>>>>>>>>>>> tests if
>>>>>>>>>>>>> you can.
>>>>>>>>>>>> ...
>>>>>>>>>>>>
>>>>>>>>>>>> I just tried building the latest revision
with "ant build.all",
>>>>>>>>>>>> and
>>>>>>>>>>>> got failure due to missing classes:
>>>>>>>>>>>>
>>>>>>>>>>>> org.apache.river.api.security.RevokeablePolicy
>>>>>>>>>>>> org/apache/river/api/security/Denied
>>>>>>>>>>>>
>>>>>>>>>>>> The .java files for those classes are present,
in the expected
>>>>>>>>>>>> place
>>>>>>>>>>>> based on the fully qualified names.
>>>>>>>>>>>>
>>>>>>>>>>>> Patricia
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Mime
View raw message