You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Daniel John Debrunner (JIRA)" <de...@db.apache.org> on 2006/01/27 22:44:36 UTC

[jira] Assigned: (DERBY-885) Test harness aborts with exception when running nist test suite in J2ME

     [ http://issues.apache.org/jira/browse/DERBY-885?page=all ]

Daniel John Debrunner reassigned DERBY-885:
-------------------------------------------

    Assign To: Daniel John Debrunner

> 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: Daniel John Debrunner

>
> 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