You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Andrei Biketov (JIRA)" <ji...@apache.org> on 2017/03/30 16:10:41 UTC
[jira] [Updated] (GEODE-2731) Specifying in
cache.xml file causing server error on start up.
[ https://issues.apache.org/jira/browse/GEODE-2731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrei Biketov updated GEODE-2731:
----------------------------------
Hi Anthony,
I figured out this one. It was actually the matter of ordering of this xml
element. After I moved it up error is disappeared. It can be closed.
<region-attributes data-policy="partition" statistics-enabled="true">
* <entry-time-to-live>*
* <expiration-attributes timeout="300" action="destroy"/>*
* </entry-time-to-live>*
<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>
Thanks,
Andrei
On Thu, Mar 30, 2017 at 11:45 AM, Anthony Baker (JIRA) <ji...@apache.org>
> 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)