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] Commented: (DERBY-4806) SysinfoCPCheckTest fail on different Windows platforms on 10.6.2.0 release candidate
Date Tue, 21 Sep 2010 21:56:35 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913278#action_12913278
] 

Kathey Marsden commented on DERBY-4806:
---------------------------------------

The tools suite passes with security manager turned off:  -Djava.security.policy="<NONE>"

The underlying  exception that causes sysinfo -cp to report the org.apache.derbyTesting.functionTests.tests.SysinfoCPCheckTest.class
is not found.

I am having a bit of trouble tracking down what changed in 10.6.2.0 and do not understand

why the test passes when run stand alone, but see a couple problems here. 
1)  The underlying exception is not reported by sysinfo -cp. It just catches any Throwable
and then reports the class as not found, so it should report the excepiton that caused the
problem.
2)  In this case the class really should be found.

 The only 10.6.2.0 change I see for sysinfo is to remove JCC and I don't really see how that
could have caused this.  I tried with the 10.6.1.0 release and it does not seem to 
have the problem.  

I think this might take a bit of time to figure out exactly   I think the short story is that
this might be some sort
of regression in 10.6.2.0, but I don't think it is that serious that it should hold up the
next release candidate.

java.security.AccessControlException: Access denied (java.io.FilePermission C:\c
ygwin\svn4\10.6\jars\testjar\derbyTesting.jar read)
        at java.lang.Throwable.<init>(Throwable.java:67)
        at java.security.AccessControlException.<init>(AccessControlException.ja
va:62)
        at java.security.AccessController.checkPermission(AccessController.java:
68)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:533)
        at java.lang.SecurityManager.checkRead(SecurityManager.java:872)
        at java.io.File.exists(File.java:731)
        at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:358)
        at java.io.File.getCanonicalPath(File.java:559)
        at org.apache.derby.impl.tools.sysinfo.Main.formatURL(Main.java:1230)
        at org.apache.derby.impl.tools.sysinfo.Main.access$200(Main.java:87)
        at org.apache.derby.impl.tools.sysinfo.Main$7.run(Main.java:1131)
        at java.security.AccessController.doPrivileged(AccessController.java:202
)
        at org.apache.derby.impl.tools.sysinfo.Main.getFileWhichLoadedClass(Main
.java:1113)
        at org.apache.derby.impl.tools.sysinfo.Main.tryMyClasspath(Main.java:669
)
        at org.apache.derby.impl.tools.sysinfo.Main.trySomeClasspaths(Main.java:
619)
        at org.apache.derby.impl.tools.sysinfo.Main.useMe(Main.java:547)
        at org.apache.derby.impl.tools.sysinfo.Main.getClasspathInfo(Main.java:3
94)
        at org.apache.derby.impl.tools.sysinfo.Main.main(Main.java:130)
        at org.apache.derby.tools.sysinfo.main(sysinfo.java:53)
        at org.apache.derbyTesting.functionTests.tests.tools.SysinfoCPCheckTest.
testClassPathChecker(SysinfoCPCheckTest.java:130)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:48)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        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)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at junit.textui.TestRunner.doRun(TestRunner.java:116)
        at junit.textui.TestRunner.start(TestRunner.java:172)
        at junit.textui.TestRunner.main(TestRunner.java:138)

I 

> SysinfoCPCheckTest fail on different Windows platforms on 10.6.2.0 release candidate

> -------------------------------------------------------------------------------------
>
>                 Key: DERBY-4806
>                 URL: https://issues.apache.org/jira/browse/DERBY-4806
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.6.1.0
>         Environment: Windows
>            Reporter: Lily Wei
>            Priority: Minor
>         Attachments: rjall.out
>
>
> For the preliminary platform testing [1] Kathey, Dag and Lily
> have seen SysinfoCPCheckTest fail on different Windows platforms(XP and Windows 7) when
> run as part of suitesAll.
> [1] http://wiki.apache.org/db-derby/TenSixTwoPlatformTesting
> Thanks to Myrna points out that it could relate to DERBY-3771.

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