You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Mike Matrigali (JIRA)" <ji...@apache.org> on 2007/07/05 22:58:04 UTC

[jira] Created: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

RunClassPathTester regression test gets diff because of error message difference
--------------------------------------------------------------------------------

                 Key: DERBY-2903
                 URL: https://issues.apache.org/jira/browse/DERBY-2903
             Project: Derby
          Issue Type: Bug
          Components: Regression Test Failure
         Environment: Generating report for RunSuite derbyall  null null null true 
------------------ Java Information ------------------
Java Version:    1.4.2
Java Vendor:     IBM Corporation
Java home:       c:\10.3_Testing\ibm142\jre
Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
OS name:         Windows Server 2003
OS architecture: amd64
OS version:      5.2 build 3790 Service Pack 1
Java user name:  cloudtest
Java user home:  C:\Documents and Settings\cloudtest
Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
------------------------------------------------------
            Reporter: Mike Matrigali


Got the following diff because of access vs. Access in error message.  probably a master update needed.

********* Diff file derbyall/demo/demo/RunClassPathTester.diff
*** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
3 del
<    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: access denied (java.lang.RuntimePermission getProtectionDomain)
3a3
>    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: Access denied (java.lang.RuntimePermission getProtectionDomain)
5 del
<    Unable to access Protection Domain or Code Source for class class SimpleApp: access denied (java.lang.RuntimePermission getProtectionDomain)
5a5
>    Unable to access Protection Domain or Code Source for class class SimpleApp: Access denied (java.lang.RuntimePermission getProtectionDomain)
Test Failed.
*** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Resolved: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren resolved DERBY-2903.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.4.0.0

With revision 593635 I reinstated the test.
I found that if I changed the call in sysinfo.Main to LocalizedResource from
LocalizedResource.getInstance() to LocalizedResource.getInstance().init() the problems I saw with reassigning system.out went away.

I think, that anytime sysinfo was run after a previous call to LocalizedResource.getInstance().init(), for instance through a call to ij.runScript, it didn't actually go to System.out anymore but to wherever the LocalizedResource was pointing.
I think forcing init() makes more sense for sysinfo, than tagging on to whatever LocalizedResource happens to be pointing.

After the change to sysinfo.Main, the output now can be controlled using calls to System.setOut(), and I modified the test to no longer use the awkward mechanism of separating and unraveling the output for each test case (command) using System.out.println of a character. Also, now it no longer matters where the test runs, so I removed the comments in tools._Suite.java.

With revision 593643 I addressed the 2 nits from Knut Anders' review (thx). I did not put the last reset of System.setOut in a finalize...

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Test
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;
> c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;
> c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>             Fix For: 10.4.0.0
>
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff, DERBY-2903_noapimod.diff2
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Updated: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-2903:
--------------------------------------

    Derby Info: [Patch Available]
    Issue Type: Test  (was: Bug)

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Test
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Assigned: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren reassigned DERBY-2903:
-----------------------------------------

    Assignee: Myrna van Lunteren

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Updated: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-2903:
--------------------------------------

    Attachment: DERBY-2903_noapimod.diff
                DERBY-2903_modapi.diff

Attaching 2 patches that represent approaches to convert this test to junit
1 (modapi.diff) modifies the API slightly so you can run the ClasspathTesting as an API, so the test can look similar to the (currently not running) sysinfoAPITest.
2. (nonapimod.diff) only adds a test, does not modify the api. This took me some time because for some reason I could not get reassignments of sysinfo.main output to System.out to work iteratively. This patch has better comments also.

Test not yet added to any suite in the patch.

If I don't hear any nays I will commit patch DERBY-2903_noapimod.diff and add it to the tools suite.


> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Updated: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-2903:
--------------------------------------

    Attachment: DERBY-2903_noapimod.diff2

Attaching another attempt at this patch - I redid the assignments of System.out, basically copying the approach of org.apache.derbyTesting.functionTests.util.HarnessJavaTest, but it gives the same troubles.

I think the trouble is not with either of the nomodapi approaches, but with the top two tests in the tools._Suite, or, more specifically, with the two tests that run BaseJDBCTestCase.runSQLCommands. Unless my searches have been off, there are only two tests in the suites.All that use this method...
If I the new SysinfoCPCheckTest which redirects System.out is run after either IJRunScriptTest or ImportExportTest, the output never is redirected. I've tried closing various streams in the test framework code, all to no avail. I think there is possibly something about ij is run that affects this.
 
So, I'll place the new test above those two offending tests. 

If this approach is not acceptable, please speak up; otherwise, I'll commit. 

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Test
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;
> c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;
> c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff, DERBY-2903_noapimod.diff2
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Updated: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-2903:
--------------------------------------

    Fix Version/s: 10.3.1.5

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Test
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;
> c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;
> c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>             Fix For: 10.3.1.5, 10.4.0.0
>
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff, DERBY-2903_noapimod.diff2
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Commented: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537935 ] 

Knut Anders Hatlen commented on DERBY-2903:
-------------------------------------------

Two small nits:

  1) outputEncoding is both an (unused) instance variable and a local variable in testClassPathChecker. I think one of them should be removed (if the instance variable is kept, it would probably be better to make it static final)

  2) rawBytes is only needed in the test method, so I think it could be a local variable instead of an instance variable. Then we could also get rid of the tearDown() method

I don't understand the System.out problems, so I can't help you there. You may also consider putting the final setSystemOut() into a finally clause (or perhaps tearDown()) so that we don't end up redirecting System.out for all subsequent tests if sysinfo.main() fails.

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Test
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;
> c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;
> c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff, DERBY-2903_noapimod.diff2
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Commented: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12511674 ] 

Myrna van Lunteren commented on DERBY-2903:
-------------------------------------------

This is a jvm issue - some versions of IBM JVM have that 'Access' instead of 'access'.
I'll see if I can mask it, or convert the test to junit.

> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Bug
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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


[jira] Updated: (DERBY-2903) RunClassPathTester regression test gets diff because of error message difference

Posted by "Myrna van Lunteren (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-2903?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Myrna van Lunteren updated DERBY-2903:
--------------------------------------

    Description: 
Got the following diff because of access vs. Access in error message.  probably a master update needed.

********* Diff file derbyall/demo/demo/RunClassPathTester.diff
*** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
3 del
<    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
access denied (java.lang.RuntimePermission getProtectionDomain)
3a3
>    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
Access denied (java.lang.RuntimePermission getProtectionDomain)
5 del
<    Unable to access Protection Domain or Code Source for class class SimpleApp: 
access denied (java.lang.RuntimePermission getProtectionDomain)
5a5
>    Unable to access Protection Domain or Code Source for class class SimpleApp: 
Access denied (java.lang.RuntimePermission getProtectionDomain)
Test Failed.
*** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

  was:
Got the following diff because of access vs. Access in error message.  probably a master update needed.

********* Diff file derbyall/demo/demo/RunClassPathTester.diff
*** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
3 del
<    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: access denied (java.lang.RuntimePermission getProtectionDomain)
3a3
>    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: Access denied (java.lang.RuntimePermission getProtectionDomain)
5 del
<    Unable to access Protection Domain or Code Source for class class SimpleApp: access denied (java.lang.RuntimePermission getProtectionDomain)
5a5
>    Unable to access Protection Domain or Code Source for class class SimpleApp: Access denied (java.lang.RuntimePermission getProtectionDomain)
Test Failed.
*** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

     Derby Info:   (was: [Patch Available])
    Environment: 
Generating report for RunSuite derbyall  null null null true 
------------------ Java Information ------------------
Java Version:    1.4.2
Java Vendor:     IBM Corporation
Java home:       c:\10.3_Testing\ibm142\jre
Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;
c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;
c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
OS name:         Windows Server 2003
OS architecture: amd64
OS version:      5.2 build 3790 Service Pack 1
Java user name:  cloudtest
Java user home:  C:\Documents and Settings\cloudtest
Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
------------------------------------------------------

  was:
Generating report for RunSuite derbyall  null null null true 
------------------ Java Information ------------------
Java Version:    1.4.2
Java Vendor:     IBM Corporation
Java home:       c:\10.3_Testing\ibm142\jre
Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
OS name:         Windows Server 2003
OS architecture: amd64
OS version:      5.2 build 3790 Service Pack 1
Java user name:  cloudtest
Java user home:  C:\Documents and Settings\cloudtest
Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
java.specification.name: Java Platform API Specification
java.specification.version: 1.4
--------- Derby Information --------
JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
[C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
[C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
------------------------------------------------------


Unfortunately, when running the test as per the nomodapi patch in ...functionTests.tests.tools._Suite, the output goes to System.out after all. 
Back to the drawing board; switching off patch available.

Note, I also added some carriage returns in the description and env - just cosmetically, so this bug hopefully needs less horizontal space..



> RunClassPathTester regression test gets diff because of error message difference
> --------------------------------------------------------------------------------
>
>                 Key: DERBY-2903
>                 URL: https://issues.apache.org/jira/browse/DERBY-2903
>             Project: Derby
>          Issue Type: Test
>          Components: Regression Test Failure
>         Environment: Generating report for RunSuite derbyall  null null null true 
> ------------------ Java Information ------------------
> Java Version:    1.4.2
> Java Vendor:     IBM Corporation
> Java home:       c:\10.3_Testing\ibm142\jre
> Java classpath:  c:\10.3_Testing\jars\lib\derby.jar;c:\10.3_Testing\jars\lib\derbytools.jar;
> c:\10.3_Testing\jars\lib\derbynet.jar;c:\10.3_Testing\jars\lib\derbyclient.jar;c:\10.3_Testing\jars\lib\derbyrun.jar;
> c:\10.3_Testing\jars\test\derbyTesting.jar;c:\10.3_Testing\jars\tools\junit.jar;c:\10.3_Testing\jars\tools\jakarta-oro-2.0.8.jar
> OS name:         Windows Server 2003
> OS architecture: amd64
> OS version:      5.2 build 3790 Service Pack 1
> Java user name:  cloudtest
> Java user home:  C:\Documents and Settings\cloudtest
> Java user dir:   C:\10.3_Testing\platformtesting\ibm142_derbyall
> java.specification.name: Java Platform API Specification
> java.specification.version: 1.4
> --------- Derby Information --------
> JRE - JDBC: J2SE 1.4.2 - JDBC 3.0
> [C:\10.3_Testing\jars\lib\derby.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbytools.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbynet.jar] 10.3.1.0 beta - (548006)
> [C:\10.3_Testing\jars\lib\derbyclient.jar] 10.3.1.0 beta - (548006)
> ------------------------------------------------------
>            Reporter: Mike Matrigali
>            Assignee: Myrna van Lunteren
>         Attachments: DERBY-2903_modapi.diff, DERBY-2903_noapimod.diff
>
>
> Got the following diff because of access vs. Access in error message.  probably a master update needed.
> ********* Diff file derbyall/demo/demo/RunClassPathTester.diff
> *** Start: RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:54 ***
> 3 del
> <    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 3a3
> >    Unable to access Protection Domain or Code Source for class interface org.apache.derby.database.Database: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> 5 del
> <    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> access denied (java.lang.RuntimePermission getProtectionDomain)
> 5a5
> >    Unable to access Protection Domain or Code Source for class class SimpleApp: 
> Access denied (java.lang.RuntimePermission getProtectionDomain)
> Test Failed.
> *** End:   RunClassPathTester jdk1.4.2 demo:demo 2007-06-20 14:32:56 ***

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