Hi

I'm just starting with mapreduce. Examples worked fine, so I started
doing my stuff.

Strange thing happened and I can't figure out what's going on :


no problem with this one :

  public void map(Key key, Entity value, Context context) {
    if (value.getProperty("my_boolean").equals(true))
    {

    }


But if instead of a boolean I want to use a Flag (basically a
dataobject, an enum of strings...)

  public void map(Key key, Entity value, Context context) {
    if (value.getProperty("my_flag").equals(Flag.STATUS_NOT_TREATED))
    {

    }

then ....
ATTENTION: /mapreduce/mapperCallback
java.lang.NullPointerException
        at com.fiftyfive.multitouchpoint.mapper.Mapper.map(Mapper.java:48)
        at com.fiftyfive.multitouchpoint.mapper.Mapper.map(Mapper.java:1)
        at
com.google.appengine.tools.mapreduce.MapReduceServlet.processMapper(MapReduceServlet.java:
608)
        at
com.google.appengine.tools.mapreduce.MapReduceServlet.handleMapperWorker(MapReduceServlet.java:
658)
        at
com.google.appengine.tools.mapreduce.MapReduceServlet.doPost(MapReduceServlet.java:
227)

I don't understand why callbacking ? Beyond that, the
NullPointerException shall be caused because of non defining a
callback point in my mapreduce.xml, but I don't want a callback right
now !
Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to