[sorry about crossposting]

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.ff.mtp.mapper.Mapper.map(Mapper.java:48)
        at com.ff.mtp.mapper.Mapper.map(Mapper.java:1)
        at
com.google.appengine.tools.mapreduce.MapReduceServlet.processMapper(MapRedu
ceServlet.java:
608)
        at
com.google.appengine.tools.mapreduce.MapReduceServlet.handleMapperWorker(Ma
pReduceServlet.java:
658)
        at
com.google.appengine.tools.mapreduce.MapReduceServlet.doPost(MapReduceServl
et.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 for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to