Caused by: net.sf.ehcache.CacheException: Error configuring from input stream. Initial cause was Character conversion error: "Unconvertible UTF-8 character beginning with 0xa8" (line number may be too low).
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:155)
at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:266)
at net.sf.ehcache.CacheManager.init(CacheManager.java:220)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:202)
at com.sitech.kms.ehcache.CacheFactory.<clinit>(CacheFactory.java:14)
... 27 more
Caused by: org.xml.sax.SAXParseException: Character conversion error: "Unconvertible UTF-8 character beginning with 0xa8" (line number may be too low).
at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
at org.apache.crimson.parser.InputEntity.fillbuf(InputEntity.java:1072)
at org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(InputEntity.java:914)
at org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1009)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:486)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:176)
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:153)
... 31 more

 

原因:xml文件中出现中文。就会出现以上问题。