Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 21269 invoked from network); 24 Apr 2006 21:05:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 21:05:17 -0000 Received: (qmail 32614 invoked by uid 500); 24 Apr 2006 21:05:16 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 32567 invoked by uid 500); 24 Apr 2006 21:05:16 -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 32558 invoked by uid 99); 24 Apr 2006 21:05:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 14:05:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 14:05:15 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E7B9F7142AD for ; Mon, 24 Apr 2006 21:04:06 +0000 (GMT) Message-ID: <21733245.1145912646946.JavaMail.jira@brutus> Date: Mon, 24 Apr 2006 21:04:06 +0000 (GMT+00:00) From: "Andrew McIntyre (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Reopened: (DERBY-583) networkserver does not return error message strings in native encoding to ij on zseries In-Reply-To: <1317271324.1127331814614.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-583?page=all ] Andrew McIntyre reopened DERBY-583: ----------------------------------- > networkserver does not return error message strings in native encoding to ij on zseries > --------------------------------------------------------------------------------------- > > Key: DERBY-583 > URL: http://issues.apache.org/jira/browse/DERBY-583 > Project: Derby > Type: Bug > Components: Network Server > Versions: 10.1.1.0 > Environment: OS/390 (zseries) 1.06, ibm 1.4.2 jre > Reporter: Myrna van Lunteren > Assignee: Sunitha Kambhampati > Fix For: 10.1.3.0, 10.1.2.4 > Attachments: ijzrepro.jar > > When running ij on an OS/390 without specifying any encoding or locale properties, and starting network server without any locale properties, various error messages do not get converted into the native encoding. > Thus the messages are unreadable and not helpful. > The problem is not limited to ij, just easy to reproduce with ij. > Some errors return readable message strings are returned with jcc, but not with derbyclient, for instance the test lang/forupdate.sql has this line in it: > select i from t1, t2 for update; > which on linux & windows results in an error message 42Y90, "FOR UPDATE is not permitted in this type of statement." On OS/390 this error message is readable with jcc, but with derbyclient, only the string 'ERROR' is readable. Other messages - especially those with indirection in it like error 42X04 are equally unreadable with both clients. > To reproduce 1 situation: > - start networkserver > - in another shell window, use the following string to run the in.sql file & save the output for jcc-client and derbyclient respectively: > ---------- > java -Dij.database='jdbc:derby:net://localhost:1527/wombat3;create=true' -Dij.retrieveMessagesFromServerOnGetMessage=true -Dij.protocol=jdbc:derby:net://localhost:1527/ -Dij.driver=com.ibm.db2.jcc.DB2Driver -Dij.user=APP -Dij.password=APP org.apache.derby.tools.ij in.sql > jcc.out 2>&1 > ---------- > java -Dij.database='jdbc:derby://localhost:1527/wombat2;create=true' -Dij.protocol=jdbc:derby://localhost:1527/ -Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.user=APP -Dij.password=APP org.apache.derby.tools.ij in.sql > client.out 2>&1 > ---------- > in.sql contains: > ---------- > drop table a; > create table a (a int); > insert into a values (2342323423); > disconnect; > exit; > ---------- > I'll attach a jar with the .out files and in.sql. This means that the out files are in EBCDIC, to read them, one needs to run them through native2ascii -encoding Cp1047. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira