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 "Vincent Massol (JIRA)" <ca...@jakarta.apache.org> on 2005/01/27 22:17:46 UTC

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

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

Vincent Massol updated CACTUS-35:
---------------------------------

    Fix Version:     (was: 1.7)

> Code page problems under WebSphere z/OS
> ---------------------------------------
>
>          Key: CACTUS-35
>          URL: http://issues.apache.org/jira/browse/CACTUS-35
>      Project: Cactus
>         Type: Bug
>   Components: Framework
>     Versions: 1.4.1
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Neal Johnston-Ward

>
> 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

-- 
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