Issue Details (XML | Word | Printable)

Key: DERBY-3229
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Knut Anders Hatlen
Reporter: Kathey Marsden
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Derby

testSysinfoLocale fails if derbyTools.jar is first in the classpath

Created: 26/Nov/07 09:45 PM   Updated: 29/Jun/09 10:43 PM
Return to search
Component/s: Build tools, Localization, Test, Tools
Affects Version/s: 10.3.2.1, 10.4.1.3
Fix Version/s: 10.3.3.0, 10.4.1.3

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works d3229-1.diff 2007-11-26 10:57 PM Knut Anders Hatlen 3 kB
File Licensed for inclusion in ASF works d3229-manifest-v2.diff 2007-12-01 06:55 PM Knut Anders Hatlen 2 kB
File Licensed for inclusion in ASF works d3229-manifest.diff 2007-11-27 10:13 PM Knut Anders Hatlen 1.0 kB
Environment: IBM JDK 1.4.2 and IBM JDK 1.5

Bug behavior facts: Regression Test Failure
Resolution Date: 03/Dec/07 09:23 AM


 Description  « Hide
) testSysinfoLocale(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: expected:<false> but was:<true>
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
3) testSysinfoLocale(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: expected:<false> but was:<true>
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
4) testSysinfoLocale(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: expected:<true> but was:<false>
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
5) testSysinfoLocale(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: expected:<true> but was:<false>
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
6) testSysinfoLocale(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: expected:<false> but was:<true>
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
7) testSysinfoLocale(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: expected:<true> but was:<false>
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Knut Anders Hatlen added a comment - 26/Nov/07 10:16 PM
I'll take a look at this since I recently added the test. I assume this test is failing on the 10.3 branch as well, as the fix which added the test was merged earlier today.

Knut Anders Hatlen added a comment - 26/Nov/07 10:57 PM
I haven't looked at why the test fails on IBM's JVM yet, but this patch makes the test print more info when it fails. Committed revision 598456.

Knut Anders Hatlen added a comment - 27/Nov/07 08:45 AM
I'm not able to reproduce this problem on IBM JDK 1.4.2 or IBM JDK 1.5 on a Linux machine. It would be helpful if someone who sees the problem could post the more detailed error messages that are reported after revision 598456.

Kathey Marsden added a comment - 27/Nov/07 06:45 PM
I was not able to reproduce this in my environment either but here are the errors produced by the
nightly runs.

2) testSysinfoLocale:defaultLocale=it_IT,uiLocale=null(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: Substring 'Nome SO' not found in output: ------------------ Java Information ------------------
Java Version: 1.5.0
Java Vendor: IBM Corporation
Java home: c:\jartest\ibm15\jre
Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 2
Java user name: cloudtest
Java user home: C:\Documents and Settings\cloudtest
Java user dir: C:\jartest\JarResults.2007-11-26\ibm15_suites.All
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[C:\jartest\classes\derbytools.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbyclient.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbynet.jar] 10.4.0.0 alpha - (598493)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [Italiano/Italia [it_IT]]
Found support for locale: [cs]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [de_DE]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [es]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [fr]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [hu]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [it]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ja_JP]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ko_KR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pl]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pt_BR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ru]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_CN]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_TW]
version: 10.4.0.0 alpha - (598493)
------------------------------------------------------

at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.assertContains(SysinfoLocaleTest.java:224)
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
3) testSysinfoLocale:defaultLocale=it_IT,uiLocale=it_IT(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: Substring 'Nome SO' not found in output: ------------------ Java Information ------------------
Java Version: 1.5.0
Java Vendor: IBM Corporation
Java home: c:\jartest\ibm15\jre
Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 2
Java user name: cloudtest
Java user home: C:\Documents and Settings\cloudtest
Java user dir: C:\jartest\JarResults.2007-11-26\ibm15_suites.All
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[C:\jartest\classes\derbytools.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbyclient.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbynet.jar] 10.4.0.0 alpha - (598493)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [Italiano/Italia [it_IT]]
Found support for locale: [cs]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [de_DE]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [es]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [fr]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [hu]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [it]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ja_JP]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ko_KR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pl]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pt_BR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ru]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_CN]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_TW]
version: 10.4.0.0 alpha - (598493)
------------------------------------------------------

at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.assertContains(SysinfoLocaleTest.java:224)
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
4) testSysinfoLocale:defaultLocale=it_IT,uiLocale=de_DE(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: Substring 'Name des Betriebssystems' not found in output: ------------------ Java Information ------------------
Java Version: 1.5.0
Java Vendor: IBM Corporation
Java home: c:\jartest\ibm15\jre
Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 2
Java user name: cloudtest
Java user home: C:\Documents and Settings\cloudtest
Java user dir: C:\jartest\JarResults.2007-11-26\ibm15_suites.All
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[C:\jartest\classes\derbytools.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbyclient.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbynet.jar] 10.4.0.0 alpha - (598493)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [Italiano/Italia [it_IT]]
Found support for locale: [cs]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [de_DE]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [es]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [fr]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [hu]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [it]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ja_JP]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ko_KR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pl]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pt_BR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ru]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_CN]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_TW]
version: 10.4.0.0 alpha - (598493)
------------------------------------------------------

at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.assertContains(SysinfoLocaleTest.java:224)
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
5) testSysinfoLocale:defaultLocale=de_DE,uiLocale=null(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: Substring 'Name des Betriebssystems' not found in output: ------------------ Java Information ------------------
Java Version: 1.5.0
Java Vendor: IBM Corporation
Java home: c:\jartest\ibm15\jre
Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 2
Java user name: cloudtest
Java user home: C:\Documents and Settings\cloudtest
Java user dir: C:\jartest\JarResults.2007-11-26\ibm15_suites.All
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[C:\jartest\classes\derbytools.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbyclient.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbynet.jar] 10.4.0.0 alpha - (598493)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [Deutsch/Deutschland [de_DE]]
Found support for locale: [cs]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [de_DE]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [es]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [fr]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [hu]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [it]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ja_JP]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ko_KR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pl]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pt_BR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ru]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_CN]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_TW]
version: 10.4.0.0 alpha - (598493)
------------------------------------------------------

at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.assertContains(SysinfoLocaleTest.java:224)
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
6) testSysinfoLocale:defaultLocale=de_DE,uiLocale=it_IT(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: Substring 'Nome SO' not found in output: ------------------ Java Information ------------------
Java Version: 1.5.0
Java Vendor: IBM Corporation
Java home: c:\jartest\ibm15\jre
Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 2
Java user name: cloudtest
Java user home: C:\Documents and Settings\cloudtest
Java user dir: C:\jartest\JarResults.2007-11-26\ibm15_suites.All
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[C:\jartest\classes\derbytools.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbyclient.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbynet.jar] 10.4.0.0 alpha - (598493)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [Deutsch/Deutschland [de_DE]]
Found support for locale: [cs]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [de_DE]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [es]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [fr]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [hu]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [it]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ja_JP]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ko_KR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pl]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pt_BR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ru]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_CN]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_TW]
version: 10.4.0.0 alpha - (598493)
------------------------------------------------------

at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.assertContains(SysinfoLocaleTest.java:224)
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
7) testSysinfoLocale:defaultLocale=de_DE,uiLocale=de_DE(org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest)junit.framework.AssertionFailedError: Substring 'Name des Betriebssystems' not found in output: ------------------ Java Information ------------------
Java Version: 1.5.0
Java Vendor: IBM Corporation
Java home: c:\jartest\ibm15\jre
Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar
OS name: Windows XP
OS architecture: x86
OS version: 5.1 build 2600 Service Pack 2
Java user name: cloudtest
Java user home: C:\Documents and Settings\cloudtest
Java user dir: C:\jartest\JarResults.2007-11-26\ibm15_suites.All
java.specification.name: Java Platform API Specification
java.specification.version: 1.5
--------- Derby Information --------
JRE - JDBC: J2SE 5.0 - JDBC 3.0
[C:\jartest\classes\derbytools.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbyclient.jar] 10.4.0.0 alpha - (598493)
[C:\jartest\classes\derbynet.jar] 10.4.0.0 alpha - (598493)
------------------------------------------------------
----------------- Locale Information -----------------
Current Locale : [Deutsch/Deutschland [de_DE]]
Found support for locale: [cs]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [de_DE]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [es]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [fr]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [hu]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [it]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ja_JP]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ko_KR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pl]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [pt_BR]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [ru]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_CN]
version: 10.4.0.0 alpha - (598493)
Found support for locale: [zh_TW]
version: 10.4.0.0 alpha - (598493)
------------------------------------------------------

at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.assertContains(SysinfoLocaleTest.java:224)
at org.apache.derbyTesting.functionTests.tests.tools.SysinfoLocaleTest.testSysinfoLocale(SysinfoLocaleTest.java:237)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java:95)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)

Knut Anders Hatlen added a comment - 27/Nov/07 10:03 PM
Thanks Kathey, that made things much clearer. I think the crucial piece of information is the Java classpath: c:/jartest/tools/java/junit.jar;c:/jartest/classes/derbytools.jar;c:/jartest/classes/derbyclient.jar;c:/jartest/classes/derbynet.jar;c:/jartest/classes/derbyTesting.jar

When I run the test with the same classpath on Sun JDK 6, I get the same errors. It seems like every time derbytools.jar is in front of all the other jar files containing sysinfo, sysinfo's messages are not properly localized. I think this is because the other jar files ensure (in their manifests) that the derbyLocale*.jar files are on the classpath, whereas derbytools.jar doesn't.

This actually seems to be a general problem for all the tools:

$ java -Dderby.ui.locale=pt_BR -cp derbytools.jar org.apache.derby.tools.ij
ij version 10.4
ij> connect;
IJ ERROR: Unable to establish connection

$ java -Dderby.ui.locale=pt_BR -jar derbyrun.jar ij
versão ij 10.4
ij> connect;
ERRO IJ: Não foi possível estabelecer connection

Knut Anders Hatlen added a comment - 27/Nov/07 10:13 PM
d3229-manifest.diff adds the same manifest to derbytools.jar as the manifest presently in derby.jar and derbyclient.jar. That makes the tests pass in my environment. It also makes both the ij invocations mentioned above print Portuguese messages.

Daniel John Debrunner added a comment - 27/Nov/07 10:27 PM
Does this mean the derbytools.jar has the sealing commands intended for derby.jar in its manifest?

I don't think sharing the manifest across derbytools.jar, derbyclient.jar and derby.jar is the correct approach.

Some of sealing instructions are specific to derby.jar and the Bundle-Name should be different for each jar.

The manifest files do have information in common, but they should not be identical.

Knut Anders Hatlen added a comment - 27/Nov/07 10:47 PM
Yes, with this patch derbytools.jar will have the sealing commands. I guess we can split the sealing commands out in a separate ant call. But some of the sealing commands are needed, for instance the unsealing of impl/tools/sysinfo, or?

derbyclient.jar and derby.jar already have the same Bundle-Name (Apache Derby 10.4), is that not correct? Only derby.jar has Bundle-Activator. Some of the sealing commands in derbyclient.jar refer to packages not actually contained in derbyclient.jar.

Knut Anders Hatlen added a comment - 01/Dec/07 06:55 PM
Attaching a new patch which factors out the adding of localized jars to the classpath into a separate target, and uses that target to add a classpath to derbytools.jar's manifest. The manifest in derbytools.jar looks like this when built in my environment:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.6.0_03-b05 (Sun Microsystems Inc.)
Class-Path: derbyLocale_cs.jar derbyLocale_de_DE.jar derbyLocale_es.ja
 r derbyLocale_fr.jar derbyLocale_hu.jar derbyLocale_it.jar derbyLocal
 e_ja_JP.jar derbyLocale_ko_KR.jar derbyLocale_pl.jar derbyLocale_pt_B
 R.jar derbyLocale_ru.jar derbyLocale_zh_CN.jar derbyLocale_zh_TW.jar

I have not addressed the other existing issues mentioned by Dan (same bundle name and sealing commands in derby.jar and derbyclient.jar). Please file a new JIRA issue if you think they need to be addressed.

Knut Anders Hatlen added a comment - 03/Dec/07 09:23 AM
Committed revision 600456.

Knut Anders Hatlen added a comment - 04/Dec/07 08:04 PM
Merged the fix to 10.3 since this is one of the reported errors on 10.3.2.1 (http://wiki.apache.org/db-derby/TenThreeTwoPlatformTesting). I don't know which fix-version to set, though. Sysinfo on head of 10.3 says 10.3.2.2, but that version is not available for the fixed-in field.

Knut Anders Hatlen added a comment - 04/Dec/07 08:06 PM
Fixed in revision 601064 on the 10.3 branch.