db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepa Remesh (JIRA)" <derby-...@db.apache.org>
Subject [jira] Closed: (DERBY-885) Test harness aborts with exception when running nist test suite in J2ME
Date Tue, 14 Feb 2006 20:24:09 GMT
     [ http://issues.apache.org/jira/browse/DERBY-885?page=all ]
     
Deepa Remesh closed DERBY-885:
------------------------------


> Test harness aborts with exception when running nist test suite in J2ME
> -----------------------------------------------------------------------
>
>          Key: DERBY-885
>          URL: http://issues.apache.org/jira/browse/DERBY-885
>      Project: Derby
>         Type: Test
>   Components: Regression Test Failure
>     Versions: 10.2.0.0
>  Environment: IBM WCTME 5.7 j9 foundation VM
>     Reporter: Deepa Remesh
>     Assignee: Deepa Remesh
>      Fix For: 10.2.0.0
>  Attachments: derby-885.diff, derby-885.status
>
> The first test in nist suite (schema1.sql) fails with following exception:
> RunIJ --> java.security.AccessControlException: Access denied (java.io.FilePermission
C:\deepa\Derby\derby_testing\j9foun_nist\nist\schema1_app.properties read)
> java.security.AccessControlException: Access denied (java.io.FilePermission C:\deepa\Derby\derby_testing\j9foun_nist\nist\schema1_app.properties
read)
> 	at java.security.AccessController.checkPermission(AccessController.java:74)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:612)
> 	at java.lang.SecurityManager.checkRead(SecurityManager.java:395)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:90)
> 	at org.apache.derby.impl.tools.ij.util.getPropertyArg(util.java:120)
> 	at org.apache.derby.impl.tools.ij.Main.mainCore(Main.java:91)
> 	at org.apache.derby.impl.tools.ij.Main.main(Main.java:75)
> 	at org.apache.derby.tools.ij.main(ij.java:56)
> 	at org.apache.derbyTesting.functionTests.harness.RunIJ.run(RunIJ.java:44)
> 	at java.lang.Thread.run(Thread.java:795)
> java.security.AccessControlException: Access denied (java.util.PropertyPermission * read,write)
> 	at java.security.AccessController.checkPermission(AccessController.java:74)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:612)
> 	at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:353)
> 	at java.lang.System.getProperties(System.java:252)
> 	at org.apache.derbyTesting.functionTests.harness.RunTest.execTestNoProcess(RunTest.java:2324)
> 	at org.apache.derbyTesting.functionTests.harness.RunTest.testRun(RunTest.java:442)
> 	at org.apache.derbyTesting.functionTests.harness.RunTest.main(RunTest.java:301)
> 	at org.apache.derbyTesting.functionTests.harness.RunList.runTests(RunList.java:550)
> 	at org.apache.derbyTesting.functionTests.harness.RunList.runSuites(RunList.java:306)
> 	at org.apache.derbyTesting.functionTests.harness.RunList.<init>(RunList.java:160)
> 	at org.apache.derbyTesting.functionTests.harness.RunSuite.getSuitesList(RunSuite.java:186)
> 	at org.apache.derbyTesting.functionTests.harness.RunSuite.main(RunSuite.java:146)
> I think this is happening after the change to install a SecurityManager when useprocess=false
is specified. This property is specified in the properties file for nist suite. Before this
change, security manager was not used when running tests in J2ME.
> Since this exception causes the test harness to exit, derbyall cannot be completed in
this environment.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message