Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3081661BC for ; Wed, 18 May 2011 13:08:33 +0000 (UTC) Received: (qmail 68239 invoked by uid 500); 18 May 2011 13:08:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 68217 invoked by uid 500); 18 May 2011 13:08:33 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 68210 invoked by uid 99); 18 May 2011 13:08:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 13:08:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2011 13:08:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 70E61CFAF9 for ; Wed, 18 May 2011 13:07:47 +0000 (UTC) Date: Wed, 18 May 2011 13:07:47 +0000 (UTC) From: "Houx Zhang (JIRA)" To: derby-dev@db.apache.org Message-ID: <1732766651.22256.1305724067459.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <718047700.24692.1304607543153.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5217) make ImportExportIJTest pass in non-English locale MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5217?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Houx Zhang updated DERBY-5217: ------------------------------ Attachment: DERBY-5217-StandardException.patch Hi, Bryan. I agree with StandardException.java is the key to this question.= I have added DERBY-5217-StandardException.patch. In this patch, Locale is = logged in StandardException, however, the locale is also Locale.en_US, but = the printStackTrace() has given "ERROR 42Y55: =E2=80=9C{0}=E2=80=9D=E6=97= =A0=E6=B3=95=E5=9C=A8=E2=80=9C{1}=E2=80=9D=E4=B8=8A=E6=89=A7=E8=A1=8C=EF=BC= =8C=E5=9B=A0=E4=B8=BA=E5=AE=83=E4=B8=8D=E5=AD=98=E5=9C=A8=E3=80=82", So, I = think maybe Chinese resource for Exceptions has been loaded, then Maybe the= next step is to find out when and how the resource for Exceptions has been= loaded. > make ImportExportIJTest pass in non-English locale > -------------------------------------------------- > > Key: DERBY-5217 > URL: https://issues.apache.org/jira/browse/DERBY-5217 > Project: Derby > Issue Type: Sub-task > Components: Test > Reporter: Houx Zhang > Assignee: Houx Zhang > Labels: gsoc2011 > Attachments: DERBY-5217-LocaleTestSetup.patch, DERBY-5217-Standar= dException.patch, DERBY-5217-SystemPropertyTestSetup.patch, DERBY-5217-log-= LocalizedResource.patch, DERBY-5217-log-locale.patch > > > ImportExportIJTest fails in Chinese locale, just like below: > D:\derby\test>java junit.textui.TestRunner org.apache.derbyTesting.functi= onTests > .tests.tools.ImportExportIJTest > .F > Time: 7.937 > There was 1 failure: > 1) importExportIJ(org.apache.derbyTesting.functionTests.tests.tools.Impor= tExport > IJTest)junit.framework.ComparisonFailure: Output at line 22 expected: 5: ['DROP TABLE' cannot be performed on 'T1' because it does not exist.]>= but wa > s: > at org.apache.derbyTesting.functionTests.util.CanonTestCase.compa= reCanon > (CanonTestCase.java:109) > at org.apache.derbyTesting.functionTests.util.ScriptTestCase.runT= est(Scr > iptTestCase.java:201) > at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCas= e.java: > 112) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) > at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.= java:57 > ) > at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) > at junit.extensions.TestSetup$1.protect(TestSetup.java:23) > at junit.extensions.TestSetup.run(TestSetup.java:27) > FAILURES!!! > Tests run: 1, Failures: 1, Errors: 0 -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira