Im使用Apache Geode 1.14.4
和spring data Geode版本2.7.2
。
我有以下区域配置,无法打开我的应用程序。
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:gfe="http://www.springframework.org/schema/geode"
xsi:schemaLocation="http://www.springframework.org/schema/geode http://www.springframework.org/schema/geode/spring-geode.xsd">
<gfe:replicated-region id="regionId" cache-ref="myCacheRef">
<!-- When region.get(k) is a cache-miss, this loader will be called to load the value (eg. from db) -->
<gfe:cache-loader ref="myLoader"/>
<gfe:cache-writer ref="myWriter"/>
<!-- Time-to-live (TTL) is used for creation and put operations -->
<gfe:entry-ttl timeout="300" action="DESTROY"/>
<!-- Idle timeout (TTI) is used for get and netSearch operations -->
<gfe:entry-tti timeout="300" action="DESTROY"/>
</gfe:replicated-region>
</beans>
准确的错误是:
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 29 in XML document from file [C:Userssjoshicontextgeode-context.xml] is invalid;
nested exception is org.xml.sax.SAXParseException; lineNumber: 29; columnNumber: 56; cvc-complex-type.2.4.a:
Invalid content was found starting with element '{"http://www.springframework.org/schema/geode":entry-ttl}'.
One of '{"http://www.springframework.org/schema/geode":membership-attributes, "http://www.springframework.org/schema/geode":gateway-sender, "http://www.springframework.org/schema/geode":gateway-sender-ref, "http://www.springframework.org/schema/geode":async-event-queue, "http://www.springframework.org/schema/geode":async-event-queue-ref, "http://www.springframework.org/schema/geode":subscription, "http://www.springframework.org/schema/geode":eviction, "http://www.springframework.org/schema/geode":lookup-region, "http://www.springframework.org/schema/geode":replicated-region, "http://www.springframework.org/schema/geode":partitioned-region, "http://www.springframework.org/schema/geode":local-region, "http://www.springframework.org/schema/geode":client-region}' is expected.
条目元素的排序不正确。根据xsd,它应该如下:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:gfe="http://www.springframework.org/schema/geode"
xsi:schemaLocation="http://www.springframework.org/schema/geode
http://www.springframework.org/schema/geode/spring-geode.xsd">
<gfe:replicated-region id="regionId" cache-ref="myCacheRef">
<gfe:entry-ttl timeout="300" action="DESTROY"/>
<gfe:entry-tti timeout="300" action="DESTROY"/>
<gfe:cache-loader ref="myLoader"/>
<gfe:cache-writer ref="myWriter"/>
</gfe:replicated-region>
</beans>
我提供了您在Spring Data for Apache Geode(SDG(Issue#616中遇到的问题的详细信息,即您提交的票证。
请在此处、此处和此处查看我的回复。