axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Resolved: (AXIS-1699) Code page issue in org.apache.axis.configuration.FileProvider
Date Thu, 09 Dec 2004 13:02:25 GMT
     [ http://nagoya.apache.org/jira/browse/AXIS-1699?page=history ]
     
Davanum Srinivas resolved AXIS-1699:
------------------------------------

    Resolution: Fixed

dan, Please review current CVS code - http://cvs.apache.org/viewcvs.cgi/ws-axis/java/src/org/apache/axis/configuration/.
i think this has been fixed.

thanks,
dims

> Code page issue in org.apache.axis.configuration.FileProvider
> -------------------------------------------------------------
>
>          Key: AXIS-1699
>          URL: http://nagoya.apache.org/jira/browse/AXIS-1699
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.2
>  Environment: only effects non ANSI codepage systems (such as IBM mainframe, As/400)
>     Reporter: dan evans

>
> FileProvider reads configuration as an InputStream (ie no code page conversion) but writes
configuration using a PrintWriter (ie UNICODE -> native code page conversion). 
> On a non-ansi system, the axis config files are stored on the file system as utf-8 and
are loaded correctly, but when FileProvider updates the config files, PrintWriter writes them
back to the file system as EBCDIC - meaning that they are not readable when AXIS is restarted.
> Changing the writeEngineConfig method as follows should fix this. Replace following code:
> PrintWriter writer = new PrintWriter(new FileInputStream(configFile));
> XMLUtils.DocumentToWriter(doc, writer);
> writer.println();
> writer.close;
> to:
> BufferredOutputStream out = new BufferredOutputStream (new FileInputStream(configFile));
> XMLUtils.DocumentToStream(doc, out);
> out.close();

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.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


Mime
View raw message