You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by ji...@apache.org on 2004/04/17 19:07:31 UTC

[jira] Updated: (CACTUS-35) Code page problems under WebSphere z/OS

The following issue has been updated:

    Updater: Vincent Massol (mailto:vmassol@apache.org)
       Date: Sat, 17 Apr 2004 10:06 AM
    Changes:
             Fix Version changed to 1.7
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/CACTUS-35?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/CACTUS-35

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: CACTUS-35
    Summary: Code page problems under WebSphere z/OS
       Type: Bug

     Status: Reopened

    Project: Cactus
 Components: 
             Framework
   Fix Fors:
             1.7
   Versions:
             1.4.1

   Assignee: Cactus Developers Mailing List
   Reporter: Neal Johnston-Ward

    Created: Fri, 14 Feb 2003 11:44 AM
    Updated: Sat, 17 Apr 2004 10:06 AM
Environment: Operating System: Other
Platform: Other

Description:
Hi,

I am trying to port Cactus 1.4.1 to WebSphere on z/OS but there are problems
with the underlying EBCDIC code page. 

The debug info is as follows:
 [org.apache.cactus.util.HttpURLConnection:http://gplex1-was-u0a.appl.ubs.ch:9004/TradeTest/ServletRedirector?Cactus_Service=GET_RESULTS] 
16:53:19,093 [WebSphere t=009e65f8] DEBUG methods.GetMethod               -
enter GetMethod.getResponseBodyAsStream() 
16:53:19,096 [WebSphere t=009e65f8] DEBUG util.IoUtil                     -
<getText([org.apache.commons.httpclient.AutoCloseInputStream@5b43f814]) 
16:53:19,097 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << ÏÁÂÊÁËÍ%È?ÏÁÂÊÁËÍ%È? 
16:53:19,097 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 
 
16:53:19,097 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 
 
16:53:19,098 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 0 
16:53:19,098 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 
 
16:53:19,098 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 
 
16:53:19,098 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 
 
16:53:19,099 [WebSphere t=009e65f8] DEBUG httpclient.wire                 - << 
 
16:53:19,099 [WebSphere t=009e65f8] DEBUG httpclient.HttpConnection       -
enter HttpConnection.releaseConnection() 
16:53:19,099 [WebSphere t=009e65f8] DEBUG util.IoUtil                     -
>getText = [ÏÁÂÊÁËÍ%È?ÏÁÂÊÁËÍ%È?] 
16:53:19,100 [WebSphere t=009e65f8] DEBUG client.WebTestResultParser      - <parse([ÏÁÂÊÁËÍ%È?ÏÁÂÊÁËÍ%È?]) 
16:53:19,106 [WebSphere t=009e65f8] DEBUG util.IoUtil                     -
<getText([java.io.ByteArrayInputStream@51027814]) 
16:53:19,106 [WebSphere t=009e65f8] DEBUG util.IoUtil                     -
>getText = [] 
16:53:19,111 [WebSphere t=009e65f8] DEBUG TestCactusServlet               -
Exception in test

I have made a small modification to the getText method of IOUtil.class and it
works. The modification is just to add the Unicode encoding to the
InputSTreamReader as follows:

BufferedReader input = new BufferedReader(new InputStreamReader(theStream,
"8859_1")); 

With this in place Cactus works under WebSphere z/OS perfectly (all sample tests
run through) and also on a non z/OS WebSphere such as Solaris and NT.

There may be a better way to fix this.

Neal


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org