My Setup in windows - all running locally pointing at same ignite xml config - 2 * ignite servers running ignite.bat - Provided java sample code GridCacheTest (running in IntelliJ) to put 20 key value pairs in a cache
The sample code runs correctly and outputs the key/value pairs it reads back from the cache (using cache.get(1) ) However, making a REST call from from a browser (IE) for key = 1 with: http://127.0.0.1:8080/ignite?cmd=get&cacheName=GridCacheTest&key=*1* gives null: {"successStatus":0,"affinityNodeId":"44392174-5fc5-446a-ba31-05ab0c56552d","error":null,"sessionToken":null,"response":*null*} So tried a bit of troubleshooting: >From the browser - check I really am looking/connect to the right place: http://127.0.0.1:8080/ignite?cmd=size&cacheName=GridCacheTest gives the size of the cache: {"successStatus":0,"affinityNodeId":null,"error":null,"sessionToken":null,"response":*20*} Now I tried adding an item using the REST API from the browser using cmd=put and key = *100* and value = *101* the cache size now correctly shows *21* {"successStatus":0,"affinityNodeId":null,"error":null,"sessionToken":null,"response":*21*} and http://127.0.0.1:8080/ignite?cmd=get&cacheName=GridCacheTest&key=*100* correctly gives {"successStatus":0,"affinityNodeId":"9dbee249-d657-4097-b8be-0eeee8627382","error":null,"sessionToken":null,"response":"*101*"} Even stranger back in the java code, some simple modifications to check the size shows the cache is correctly 21 but cache.get(key) only give values for 1 to 20, for the newly added 100 it shows null. -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/