db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yip Ng" <yipng...@gmail.com>
Subject 10.2 JUnit suite fails
Date Thu, 22 Feb 2007 01:21:55 GMT
Hi,

   Has anyone run the JUnit regression on 10.2 recently?  I am getting
a java.security.AccessControlException: access denied
(java.util.PropertyPermission user.dir read).  Not sure what got
check-in that caused this.  I see that the trunk
java\testing\org\apache\derbyTesting\functionTests\util\derby_tests.policy
was updated to reflect this but not in 10.2.

C:\derby\10.2\jars\sane>java -verbose=true junit.textui.TestRunner
org.apache.derbyTesting.functionTests.suites.All
.EEEEEEEEE.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.EE.E.EE.EEEEjava.security.AccessControlException:
access denied (java.util.PropertyPermission user.dir read)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
	at java.security.AccessController.checkPermission(AccessController.java:401)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1276)
	at java.lang.System.getProperty(System.java:573)
	at java.io.Win32FileSystem.getUserPath(Win32FileSystem.java:272)
	at java.io.Win32FileSystem.resolve(Win32FileSystem.java:288)
	at java.io.File.getCanonicalPath(File.java:513)
	at org.apache.derby.impl.io.DirStorageFactory.doInit(DirStorageFactory.java:195)
	at org.apache.derby.impl.io.BaseStorageFactory.init(BaseStorageFactory.java:88)
	at org.apache.derby.impl.services.monitor.StorageFactoryService.privGetStorageFactoryInstance(StorageFactoryService.java:202)
	at org.apache.derby.impl.services.monitor.StorageFactoryService.access$400(StorageFactoryService.java:65)
	at org.apache.derby.impl.services.monitor.StorageFactoryService$11.run(StorageFactoryService.java:775)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.derby.impl.services.monitor.StorageFactoryService.getCanonicalServiceName(StorageFactoryService.java:769)
	at org.apache.derby.impl.services.monitor.TopService.isPotentialService(TopService.java:143)
	at org.apache.derby.impl.services.monitor.BaseMonitor.findService(BaseMonitor.java:424)
	at org.apache.derby.iapi.services.monitor.Monitor.findService(Monitor.java:501)
	at org.apache.derby.impl.jdbc.EmbedConnection.<init>(EmbedConnection.java:209)
	at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(EmbedConnection30.java:73)
	at org.apache.derby.jdbc.Driver30.getNewEmbedConnection(Driver30.java:74)
	at org.apache.derby.jdbc.InternalDriver.connect(InternalDriver.java:210)
	at org.apache.derby.jdbc.AutoloadedDriver.connect(AutoloadedDriver.java:117)
	at java.sql.DriverManager.getConnection(DriverManager.java:512)
	at java.sql.DriverManager.getConnection(DriverManager.java:171)
	at org.apache.derbyTesting.junit.TestConfiguration.getConnection(TestConfiguration.java:456)
	at org.apache.derbyTesting.junit.TestConfiguration.getDefaultConnection(TestConfiguration.java:437)
	at org.apache.derbyTesting.junit.TestConfiguration.openDefaultConnection(TestConfiguration.java:411)
	at org.apache.derbyTesting.junit.BaseJDBCTestSetup.getConnection(BaseJDBCTestSetup.java:74)
	at org.apache.derbyTesting.functionTests.tests.jdbcapi.SURDataModelSetup.setUp(SURDataModelSetup.java:137)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
	at junit.extensions.TestSetup$1.protect(TestSetup.java:21)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.extensions.TestSetup.run(TestSetup.java:25)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.framework.TestSuite.runTest(TestSuite.java:230)
	at junit.framework.TestSuite.run(TestSuite.java:225)
	at junit.textui.TestRunner.doRun(TestRunner.java:121)
	at junit.textui.TestRunner.start(TestRunner.java:185)
	at junit.textui.TestRunner.main(TestRunner.java:143)


Regards,
Yip Ng

Mime
View raw message