Description
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)
Attachments
Attachments
Issue Links
- is duplicated by
-
DERBY-3183 'Error starting tracing' in testTraceCommands(org.apache.derbyTesting.functionTests.tests.derbynet.NetworkServerControlApiTest) on Windows...
- Closed