DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17077>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17077 Code page problems under WebSphere z/OS Summary: Code page problems under WebSphere z/OS Product: Cactus Version: 1.4.1 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: Other Component: Server Side AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
