>From time to time, org.datanucleus.store.appengine.DatastoreTable throws a 
NullPointerException, and I have not yet figured out why or what is the 
pattern, just a few first requests fail and then all goes well. 

The exact line where the exception is thrown is 569: 




// Run callbacks for each of the element classes. 

for (AbstractClassMetaData elementCmd1 : elementCmds) { 

callbacks.put(elementCmd1.getFullClassName(), 

new CallBack(fmd, cmd.getFullClassName())); 

DatastoreTable dt = 

(DatastoreTable) storeMgr 

.getDatastoreClass(elementCmd1.getFullClassName(), clr);



dt.runCallBacks(); // This line throws java.lang.NullPointerException from 
time to time


if (fmd.getMappedBy() != null) { 

// This element type has a many-to-one pointing back. 

// We assume that our pk is part of the pk of the element type. 

dt.markFieldAsParentKeyProvider(fmd.getMappedBy()); 

} 

}

Anyone has an idea why this happens? 

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/22rXZkkQ9HsJ.
To post to this group, send email to google-appengine-java@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