You will need to post more details of your code. For example, did you do a putObject first? The best way is to thru the tutorial making sure you understand the example there first.
Thanks for reading, ben.
Now I got it. The problem comes from a user defined constructor in the object to be cached, I suspect due to the fine-granularity character of replication, that's why it works fine locally but got object instantiation exception if the cache is replicated from other member.