Bonjour,
J'ai un problème de HardDeadlineExceededError.Je ne comprends pas pourquoi.J'utilise l'api objectify afin d'uploader vers GAE (Google App Engine)
Uncaught exception from servlet
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(a19d027cb3d5ff54) started at 2010/05/10 09:26:12.460 UTC and was
still executing at 2010/05/10 09:26:41.349 UTC.
at com.google.appengine.runtime.Request.process-
a19d027cb3d5ff54(Request.java)
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:443)
at java.util.concurrent.TimeUnit.timedWait(Unknown Source)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
at
com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:
58)
at
com.google.appengine.api.datastore.DatastoreServiceImpl.beginTransaction(DatastoreServiceImpl.java:
297)
at
com.googlecode.objectify.ObjectifyFactory.beginTransaction(ObjectifyFactory.java:
104)
at
com.googlecode.objectify.ObjectifyService.beginTransaction(ObjectifyService.java:
33)
at miro.server.GreetingServiceImpl.putData(GreetingServiceImpl.java:
148)
at
miro.server.GreetingServiceImpl.updateAssignments(GreetingServiceImpl.java:
123)
Voici le code où ça bug:
void putData(List<Assignment> assignmentList) {
ObjectifyService.register(Assignment.class);
for (Assignment assignment : assignmentList) {
try {
Objectify ofy = ObjectifyService.beginTransaction();
ofy.put(assignment);
ofy.getTxn().commit();
} catch (Exception e) {
}
}
}
Merci pour votre réponse
Partager