[Version of JBoss cache shipped with 3.2.5] 

Trying to use TreeCache.put(...) and retrieve the return value to check the previous 
value. This works all nicely with local cache, but when switched to synchronized 
replicated, this method always returns null:

tree.put("/a/b/c", "name", "Ben");
Object value = tree.put("/a/b/c", "name", "Ben2");
// value should be "Ben" but is null

Stepping through the code I find what seems to be the issue at 
TreeCache.invokeTransactionlessMethod(MethodCall) line: 2771

which never returns the (correct) result it got from 

            rsps = callRemoteMethods(members, m, true, true, sync_repl_timeout);

Hence the result of any call to TreeCache.put(....) will always be null.

Is this a known issue, and if so, is there a patch available?

Thanks,
Thomas


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845859#3845859

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845859


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to