Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 74617 invoked from network); 19 Jun 2010 22:56:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jun 2010 22:56:45 -0000 Received: (qmail 81944 invoked by uid 500); 19 Jun 2010 22:56:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 81889 invoked by uid 500); 19 Jun 2010 22:56:44 -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 81882 invoked by uid 99); 19 Jun 2010 22:56:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 22:56:44 +0000 X-ASF-Spam-Status: No, hits=-1532.5 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 22:56:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5JMuNB9009838 for ; Sat, 19 Jun 2010 22:56:23 GMT Message-ID: <4077432.97051276988183452.JavaMail.jira@thor> Date: Sat, 19 Jun 2010 18:56:23 -0400 (EDT) From: "Tiago R. Espinha (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-728) Unable to create databases whose name containg Chinese characters through the client driver In-Reply-To: <1823277866.1132849316146.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880564#action_12880564 ] Tiago R. Espinha commented on DERBY-728: ---------------------------------------- The regressions failed for the last patch. Do NOT commit. The failure was as follows: There was 1 failure: 1) testBootLock(org.apache.derbyTesting.functionTests.tests.store.BootLockTest)j unit.framework.AssertionFailedError: Minion did not start or boot db in 60 secon ds. ----Minion's stderr: Exception in thread "main" java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException. java:48) at java.lang.Integer.parseInt(Integer.java:470) at java.lang.Int eger.valueOf(Integer.java:528) at java.lang.Integer.decode(Integer.java:958)at org.apache.derbyTesting.functionTests.tests.store.BootLockMinion.main(BootLockMi nion.java:42) ----Minion's stderr ended at org.apache.derbyTesting.functionTests.tests.store.BootLockTest.waitFo rMinionBoot(BootLockTest.java:217) at org.apache.derbyTesting.functionTests.tests.store.BootLockTest.testBo otLock(BootLockTest.java:130) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java: 109) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) 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:21) at junit.extensions.TestSetup.run(TestSetup.java:25) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24) at junit.extensions.TestSetup$1.protect(TestSetup.java:21) at junit.extensions.TestSetup.run(TestSetup.java:25) FAILURES!!! Tests run: 1, Failures: 1, Errors: 0 It is consistent by running the test by itself. I will be analysing the issue and submitting another patch soon. > Unable to create databases whose name containg Chinese characters through the client driver > ------------------------------------------------------------------------------------------- > > Key: DERBY-728 > URL: https://issues.apache.org/jira/browse/DERBY-728 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.1.2.1 > Environment: Debian unstable, LInux 2.6.14.2, libc 2.3.5-6 > Reporter: Andrei Badea > Assignee: Tiago R. Espinha > Attachments: ACR7007.pdf, BigTableName.java, derby-728-startingpoint.diff, DERBY-728_p1.diff, DERBY-728_p2-test.diff, DERBY-728_p2-test.diff, DERBY-728_p2.diff, DERBY-728_p2.diff, DERBY-728_p2.diff, derby-728_proto_diff.txt > > > Trying to create a database with the following URL (note the Chinese character in the database name): > jdbc:derby://localhost:1527/\u4e10;create=true > throws the following exception: > -----%<----- > Exception in thread "main" org.apache.derby.client.am.SqlException: Unicode string can't convert to Ebcdic string > at org.apache.derby.client.net.EbcdicCcsidManager.convertFromUCS2(Unknown Source) > at org.apache.derby.client.net.Request.writeScalarPaddedString(Unknown Source) > at org.apache.derby.client.net.NetConnectionRequest.buildRDBNAM(Unknown Source) > at org.apache.derby.client.net.NetConnectionRequest.buildACCSEC(Unknown Source) > at org.apache.derby.client.net.NetConnectionRequest.writeAccessSecurity(Unknown Source) > at org.apache.derby.client.net.NetConnection.writeServerAttributesAndKeyExchange(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowServerAttributesAndKeyExchange(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowUSRIDONLconnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.flowConnect(Unknown Source) > at org.apache.derby.client.net.NetConnection.(Unknown Source) > at org.apache.derby.jdbc.ClientDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:525) > at java.sql.DriverManager.getConnection(DriverManager.java:193) > at jdbctest.Main.main(Main.java:33) > -----%<----- > It's possible, however, to create databases using the embedded driver, using an URL like: > jdbc:derby:\u4e10;create=true > Tested with both 10.1.1.0 and 10.1.2.1 with the same result. > Complete code to reproduce the bug: > -----%<----- > public static void main(String[] args) throws Exception { > Class.forName("org.apache.derby.jdbc.ClientDriver"); > Connection conn = DriverManager.getConnection("jdbc:derby://localhost:1527/\u4e10;create=true"); > } > -----%<----- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.