Quantcast
Channel: VMware Communities : Unanswered Discussions - vFabric GemFire [ARCHIVED]
Viewing all articles
Browse latest Browse all 532

Help required to resolve "Existing cache's default pool was not compatible."

$
0
0

Hi,

I have following cache.xml, and started cacheserver, and confirmed     that cache server is running.

But when I execute below groovy script to connect to server cache, I     get below exception. Could someone guide me, what is wrong with my     configuration or script?

Regards
Nash

cache.xml

<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC "-//Gemstone Systems Inc.//Gemfire     Declrative Cache 6.5//EN"
             "http://www.gemstone.com/dtd/cache6_5.dtd">
<cache is-server="true" search-timeout="60">
     <cache-server port="40404" max-connections="800" />
     <region name="reglocal" refid="LOCAL">
         <entry>
             <key><string>Key</string></key>
                 <value><string>Key</string></value>
         </entry>
     </region>
     <region name="regrepli" refid="REPLICATE" />
     <region name="part" refid="PARTITION" />
</cache>

-------------------------------------------------------
Groovy script to connect to server cache
-------------------------------------------------------

import com.gemstone.gemfire.cache.client.*;

def cacheClientF = new     ClientCacheFactory().addPoolServer("127.0.0.1",40404);
def clientCache = cacheClientF.create();       
def regionF = clientCache.createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
def region = regionF.create("regrepli")
region.put("Key1", "Let us test first key1");
region.size()

-------------
Exception
-------------

java.lang.IllegalStateException: Existing cache's default pool was     not compatible
     at com.gemstone.gemfire.internal.cache.GemFireCacheImpl.determineDefaultPool(GemFireCacheImpl.java:2431)
     at com.gemstone.gemfire.cache.client.ClientCacheFactory.basicCreate(ClientCacheFactory.java:195)
     at com.gemstone.gemfire.cache.client.ClientCacheFactory.create(ClientCacheFactory.java:162)
     at     com.gemstone.gemfire.cache.client.ClientCacheFactory$create.call(Unknown     Source)
     at ConsoleScript3.run(ConsoleScript3:3)




Viewing all articles
Browse latest Browse all 532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>