3 Replies Latest reply on Jun 10, 2011 10:18 AM by Vladimir Blagojevic

    Can't get map/reduce word count to work

    Shaun Appleton Newbie



      I've tried to get the wc example working shown at http://community.jboss.org/wiki/InfinispanDistributedExecutionFramework#Examples

      I create a cache -


                     EmbeddedCacheManager manager = new DefaultCacheManager();

                     Cache cache = manager.getCache();


      then add some values -


                     cache.put("1", "word");

                     cache.put("2", "two words");

                     cache.put("3", "three little word");


      But when I run the example I get  a npe at


                    for (Entry<String, Integer> e : result.entrySet()) { ...


      as result is null.


      Any ideas what could be wrong?