Issue Details (XML | Word | Printable)

Key: DERBY-583
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Sunitha Kambhampati
Reporter: Myrna van Lunteren
Votes: 0
Watchers: 0
Operations

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

networkserver does not return error message strings in native encoding to ij on zseries

Created: 22/Sep/05 04:43 AM   Updated: 25/Apr/06 04:03 AM
Return to search
Component/s: Network Server
Affects Version/s: 10.1.1.0
Fix Version/s: 10.1.3.1

Time Tracking:
Not Specified

File Attachments:
  Size
Java Archive File Licensed for inclusion in ASF works ijzrepro.jar 2005-09-22 04:43 AM Myrna van Lunteren 0.9 kB
Environment: OS/390 (zseries) 1.06, ibm 1.4.2 jre
Issue Links:
Blocker
 

Resolution Date: 25/Apr/06 04:03 AM


 Description  « Hide
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.






 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Myrna van Lunteren made changes - 22/Sep/05 04:43 AM
Field Original Value New Value
Attachment ijzrepro.jar [ 12314485 ]
Mike Matrigali made changes - 24/Jan/06 04:30 AM
Component/s Network Server [ 11410 ]
Kathey Marsden made changes - 04/Feb/06 07:10 AM
Assignee Kathey Marsden [ kmarsden ]
Kathey Marsden made changes - 19/Feb/06 05:45 AM
Assignee Kathey Marsden [ kmarsden ]
Myrna van Lunteren made changes - 16/Apr/06 01:41 AM
Link This issue blocks DERBY-902 [ DERBY-902 ]
Myrna van Lunteren made changes - 16/Apr/06 01:42 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 10.1.2.4 [ 12310880 ]
Assignee Sunitha Kambhampati [ skambha ]
Fix Version/s 10.2.0.0 [ 11187 ]
Andrew McIntyre made changes - 25/Apr/06 04:03 AM
Status Closed [ 6 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Andrew McIntyre made changes - 25/Apr/06 04:03 AM
Status Reopened [ 4 ] Closed [ 6 ]
Fix Version/s 10.1.3.0 [ 12310616 ]
Resolution Fixed [ 1 ]