geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Biketov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GEODE-2731) Specifying <entry-time-to-live> in cache.xml file causing server error on start up.
Date Thu, 30 Mar 2017 14:45:42 GMT
Andrei Biketov created GEODE-2731:
-------------------------------------

             Summary: Specifying  <entry-time-to-live> in cache.xml file causing server
error on start up. 
                 Key: GEODE-2731
                 URL: https://issues.apache.org/jira/browse/GEODE-2731
             Project: Geode
          Issue Type: Bug
          Components: client/server
            Reporter: Andrei Biketov


Configure region as following:
<region name="customer">
	<region-attributes 
		   data-policy="partition" statistics-enabled="true">
		   <partition-attributes redundant-copies="2" total-num-buckets="12"/>
		   <eviction-attributes>
			 <lru-heap-percentage 
			   action="overflow-to-disk"/>
		   </eviction-attributes>		   
		   <entry-time-to-live>
		   <expiration-attributes  timeout="300" action="destroy"/>
		   </entry-time-to-live>
	   </region-attributes>
	</region>
Run server:
gfsh>start server --name=s1 --cache-xml-file=site_a.xml
Starting a Geode Server in C:\sandbox\pivotal-gemfire-9.0.1\bin\s1...
The Cache Server process terminated unexpectedly with exit status 1. Please refer to the log
file in C:\sandbox\pivotal-gemfire-9.0.1\bin\s1 for full details.

Exception in thread "main" org.apache.geode.cache.CacheXmlException: While reading Cache XML
file:/C:/sandbox/pivotal-gemfire-9.0.1/bin/site_a.xml. Error while parsing XML, caused by
org.xml.sax.SAXParseException; lineNumber: 61; columnNumber: 26; cvc-complex-type.2.4.d: Invalid
content was found starting with element 'entry-time-to-live'. No child element is expected
at this point.
    at org.apache.geode.internal.cache.xmlcache.CacheXml.error(CacheXml.java:890)
    at org.apache.geode.internal.cache.xmlcache.CacheXmlParser$DefaultHandlerDelegate.error(CacheXmlParser.java:3409)
    at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:137)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
    at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:452)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message