axis-java-dev mailing list archives

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

    Resolution: Fixed

dan, Please review current CVS code -
i think this has been fixed.


> Code page issue in org.apache.axis.configuration.FileProvider
> -------------------------------------------------------------
>          Key: AXIS-1699
>          URL:
>      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:
If you want more information on JIRA, or have a bug to report see:

View raw message