[
https://issues.apache.org/jira/browse/DERBY-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908228#action_12908228
]
Lily Wei commented on DERBY-4616:
---------------------------------
Hello Jayaram:
Thank you so much for the patch. I applied it and run it with IBM
1.6 JVM. The test failed with the following error:
[Error/failure logged at Fri Sep 10 22:27:50 GMT 2010]
junit.framework.AssertionFailedError: expected:<15> but was:<1>
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.Assert.failNotEquals(Assert.java:282)
at junit.framework.Assert.assertEquals(Assert.java:64)
at junit.framework.Assert.assertEquals(Assert.java:201)
at junit.framework.Assert.assertEquals(Assert.java:207)
at org.apache.derbyTesting.functionTests.tests.derbynet.SysinfoTest.asse
rtMatchingStringExists(SysinfoTest.java:328)
at org.apache.derbyTesting.functionTests.tests.derbynet.SysinfoTest.test
Sysinfo(SysinfoTest.java:215)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:
109)
at junit.framework.TestResult$1.protect(TestResult.java:106)
On derby.log, I am seeing:
Fri Sep 10 22:27:49 GMT 2010 : Access denied (java.io.FilePermission C:\derby3\t
runk\jars\sane\derby.jar read)^M
java.security.AccessControlException: Access denied (java.io.FilePermission C:\d
erby3\trunk\jars\sane\derby.jar read)^M
at java.security.AccessControlException.<init>(AccessControlException.ja
va:62)^M
at java.security.AccessController.checkPermission(AccessController.java:
68)^M
at java.lang.SecurityManager.checkPermission(SecurityManager.java:533)^M
at java.lang.SecurityManager.checkRead(SecurityManager.java:872)^M
at java.io.File.exists(File.java:731)^M
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:402)^M
at java.io.File.getCanonicalPath(File.java:559)^M
at org.apache.derby.impl.tools.sysinfo.Main.formatURL(Main.java:1229)^M
at org.apache.derby.impl.tools.sysinfo.Main.loadZipFromResource(Main.jav
a:903)^M
at org.apache.derby.impl.tools.sysinfo.Main.getAllInfo(Main.java:807)^M
at org.apache.derby.impl.tools.sysinfo.Main.reportDerby(Main.java:241)^M
at org.apache.derby.impl.tools.sysinfo.Main.getMainInfo(Main.java:141)^M
at org.apache.derby.impl.drda.NetworkServerControlImpl.getCLSSysInfo(Net
workServerControlImpl.java:2136)^M
at org.apache.derby.impl.drda.NetworkServerControlImpl.sendSysInfo(Netwo
rkServerControlImpl.java:2024)^M
The same test passed on Sun. I am not totally sure why. Perhaps, you
can try to print out the string before and after the sed method on
SysinfoTest.java
> SysinfoTest prints permission errors when printing sysinfo
> ----------------------------------------------------------
>
> Key: DERBY-4616
> URL: https://issues.apache.org/jira/browse/DERBY-4616
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.6.1.0
> Reporter: Jayaram Subramanian
> Assignee: Jayaram Subramanian
> Priority: Minor
> Attachments: statsysinfotestpolicy.txt,
> sysinfotestpolicy_donotcommit.txt
>
>
> When running sysinfo test got the following permission error when printing
> information from TestSysinfoLocale method
> Java Version: 1.6.0_14
> Java Vendor: Sun Microsystems Inc.
> Java home: Security Exception: java.security.AccessControlException:
> access denied (java.util.PropertyPermission java.home read)
> Java classpath:
> .;C:/java/Derby/source/trunk/jars/sane/derby/derbyLocale_cs.jar;C:/java/Derby/source/trunk/tools/java/junit.jar;C:/java/Derby/source/trunk/jars/sane/derbyclient.jar;C:/java/Derby/source/trunk/jars/sane/derbynet.jar;C:/java/Derby/source/trunk/jars/sane/derbyrun.jar;C:/java/Derby/source/trunk/jars/sane/derbytesting.jar;C:/java/Derby/source/trunk/jars/sane/derbytools.jar;C:/java/Derby/source/trunk/jars/sane/derby.jar;
> OS name: Windows Vista
> OS architecture: x86
> OS version: 6.0
> Java user name: Security Exception: java.security.AccessControlException:
> access denied (java.util.PropertyPermission user.name read)
> Java user home: Security Exception: java.security.AccessControlException:
> access denied (java.util.PropertyPermission user.home read)
> Java user dir: C:\java\derby\source\trunk
> java.specification.name: Java Platform API Specification
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.