KB Article #162067

How to use Asian languages for import/exportObjectSet actions

Problem

-- When using Asian languages the following error is received when running either import or exportObjectSet

 

-- Example of command ran:

C:\Axway\Synchrony\Integrator\Integrator deployment -exportObjectSet C:\Axway\Synchrony\Integrator\UpdateFile

 

-- Example of error received

2012-12-20 10:17:29,286 [Thread-1       ] FATAL L119  XmlDataBinderErrorHandler.fatalError - SAXParseException: parser state = 'currentElement'=<?null?>, 'lastEntity'=<?null?>, line=1, column=1, SystemID=null, publicID=null: Content is not allowed in prolog.

org.xml.sax.SAXParseException: Content is not allowed in prolog.

                at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)

                at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

                at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)

                at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source)

                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)

                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

                at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

                at com.axway.common.core.xml.BasicXmlDataBinder.validateDocument(BasicXmlDataBinder.java:1063)

                at com.axway.common.core.xml.BasicXmlDataBinder.validateDocument(BasicXmlDataBinder.java:1052)

                at com.axway.common.core.xml.XmlDataBinder.objectsToXml(XmlDataBinder.java:398)

                at com.axway.common.deployment.substitution.binder.XmlBinder.toXmlString(XmlBinder.java:315)

                at com.axway.integrator.importexport.importers.ServerObjectSet.doExport(ServerObjectSet.java:976)

                at com.axway.integrator.importexport.ImportAPIServerImpl.doExportObjectSet(ImportAPIServerImpl.java:474)

                at com.axway.integrator.importexport.ImportAPIServerImpl.processExportObjectSet(ImportAPIServerImpl.java:431)

                at com.axway.integrator.importexport.ImportAPIServerImpl.exportObjectSet(ImportAPIServerImpl.java:2585)

                at com.axway.integrator.importexport.remote.ImportProtocol.process(ImportProtocol.java:150)

                at com.axway.integrator.importexport.remote.ImportConnectionThread.run(ImportConnectionThread.java:116)



Resolution

When using the East Asian Languages, an environment variable must be set to make the xml parser work: create CORE_BA_JVM_OPTIONS with the value -Dxml.encoding=Big5 , then a rebuild of runtime data and restart of the Integrator is required

 

In order to use the East Asian Languages an environment variable must be set in order to make the xml parse work.

 

Please follow the next steps in order to solve this.

 

  1. Create an environment variable called CORE_BA_JVM_OPTIONS and set it to -Dxml.encoding=UTF8
  2. Then rebuild the runtime data from Copilot
  3. Restart the Integrator.

 

If using Windows, you can follow the normal process of setting up an environment variable:

  1. Right click on „My Computer” icon > Properties > Advanced Tab > Environment Variables
  2. Added it as a User Variable.
  3. Variable name CORE_BA_JVM_OPTIONS
  4. Variable value -Dxml.encoding=UTF8