db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-3174) NetworkServerControlApiTest fails with java.security.AccessControlException if not run as first test
Date Tue, 06 Nov 2007 00:01:03 GMT
NetworkServerControlApiTest fails with java.security.AccessControlException if not run as first
test
----------------------------------------------------------------------------------------------------

                 Key: DERBY-3174
                 URL: https://issues.apache.org/jira/browse/DERBY-3174
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.3.1.5, 10.4.0.0
            Reporter: Kathey Marsden
            Priority: Minor


There appears to be a problem loading the test specific policy file for NetworkServerControlApiTest
if it is not run as the first test in the suite.
Failure in the derby.log is:

Trace directory changed to C:\test\system.

access denied (java.io.FilePermission C:\test\system\Server3.trace write)

java.security.AccessControlException: access denied (java.io.FilePermission C:\test\system\Server3.trace
write)

	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)

	at java.security.AccessController.checkPermission(AccessController.java:546)

	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)

	at java.lang.SecurityManager.checkWrite(SecurityManager.java:962)

	at java.io.FileOutputStream.<init>(FileOutputStream.java:169)

	at java.io.FileOutputStream.<init>(FileOutputStream.java:70)

	at java.io.FileWriter.<init>(FileWriter.java:46)

	at org.apache.derby.impl.drda.DssTrace$1.run(DssTrace.java:181)

	at java.security.AccessController.doPrivileged(Native Method)

	at org.apache.derby.impl.drda.DssTrace.startComBufferTrace(DssTrace.java:178)

	at org.apache.derby.impl.drda.Session.initTrace(Session.java:138)

	at org.apache.derby.impl.drda.Session.setTraceOn(Session.java:152)

	at org.apache.derby.impl.drda.NetworkServerControlImpl.setTrace(NetworkServerControlImpl.java:3372)

	at org.apache.derby.impl.drda.NetworkServerControlImpl.processCommands(NetworkServerControlImpl.java:1422)

	at org.apache.derby.impl.drda.DRDAConnThread.sessionInitialState(DRDAConnThread.java:630)

	at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:264)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message