Fatal error while parsing XML related to the locale setting of the host
search cancel

Fatal error while parsing XML related to the locale setting of the host

book

Article ID: 294082

calendar_today

Updated On:

Products

VMware Tanzu Gemfire

Issue/Introduction

Symptoms:

The GemFire cache server fails to start due to a fatal error while parsing the cache.xml file when using a non-English locale.

For instance, when running with the Japanese locale:

===========================================================
com.gemstone.gemfire.cache.CacheXmlException: While reading Cache XML file:/D:/apps/Pivotal/Pivotal_GemFire_NativeClient_64bit_8100/SampleCode/quickstart/gfecs/../XMLs/serverPoolCqQuery.xml. Fatal error while parsing XML, caused by org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 10; 機能"http://apache.org/xml/features/disallow-doctype-decl"がtrueに設定されている場合、DOCTYPEは指定できません
===========================================================

And, with the Chinese locale:

===========================================================
com.gemstone.gemfire.cache.CacheXmlException: While reading Cache XML file:/C:/lab/sslissue/gemfire-issues/2wayssl-nullencryption/gemfire/cache-replicated-eventual.xml. Fatal error while parsing XML, caused by org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 10; 将功能 "http://apache.org/xml/features/disallow-doctype-decl" 设置为“真”时, 不允许使用 DOCTYPE。
===========================================================

Environment


Cause

This issue can happen when running with the Japanese or Chinese locale (and, possibly, other non-English locales) with Gemfire version 8.1. The root cause is the setting of "http://apache.org/xml/features/disallow-doctype-decl" to true for the DOCTYPE element. This issue will be fixed in a later releases of the GemFire 8.x branch.

Resolution

  • Add the --J=-Duser.language=en option the GFSH command line to start the cacheserver.
  • Use XML Schema style cache.xml instead of DTD style