KB Article #61884

issues with the broadcast agent when $LANG=C on linux 64 bytes

Problem

When LANG environment variable is set to "C" value on linux 64 bytes, error messages occur in $CORE_DATA/log/broadcast.log and the broadcast agent can''t be used:



2010-02-23 15:50:16,052 [main           ] INFO  L34   ConnectionManager.<init> - Connection manager started
2010-02-23 15:55:29,358 [main           ] ERROR L34   XmlEncoding.forceXmlEncodingIfError - Bad system encoding, force ISO8859_1
com.axway.common.core.exception.CommonCoreUncheckedException: Unknown JVM encoding : System.getProperty("file.encoding") = ''ANSI_X3.4-1968'' try to force Xml encoding by adding java property in startup script as : -Dxml.encoding=ISO8859_1 or force JVm encoding with -Dfile.encoding=ISO8859_1
       at com.axway.common.core.util.xml.IANAJavaEncodingMap.getDefaultXMLFileEncoding(IANAJavaEncodingMap.java:618)
       at com.axway.integrator.importexport.util.XmlEncoding.forceXmlEncodingIfError(XmlEncoding.java:30)
       at com.axway.integrator.importexport.remote.ImportServer.<init>(ImportServer.java:64)
       at com.axway.integrator.importexport.remote.ImportServerMain.main(ImportServerMain.java:40)


Resolution

set environment variable LANG with the value en_US.iso885915 on linux 64 bytes