0

我在我的項目中使用Hibernate +谷歌雲SQLdatastore_v3.Put()被明確取消

其工作正常,但它減緩了一段時間,當我們讓更多的呼叫它給我以下情況除外: -

com.google.apphosting.api.ApiProxy$CancelledException: The API call datastore_v3.Put() was explicitly cancelled. 
    at com.google.apphosting.runtime.ApiProxyImpl$5.get(ApiProxyImpl.java:385) 
    at com.google.apphosting.runtime.ApiProxyImpl$5.get(ApiProxyImpl.java:382) 
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90) 
    at com.google.appengine.api.datastore.FutureHelper$CumulativeAggregateFuture.get(FutureHelper.java:145) 
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90) 
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90) 
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90) 
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:90) 
    at com.google.appengine.api.datastore.FutureHelper.getInternal(FutureHelper.java:72) 
    at com.google.appengine.api.datastore.FutureHelper.quietGet(FutureHelper.java:33) 
    at com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:113) 
    at com.google.appengine.api.datastore.DatastoreServiceImpl$2.runInternal(DatastoreServiceImpl.java:110) 
    at com.google.appengine.api.datastore.TransactionRunner.runInTransaction(TransactionRunner.java:31) 
    at com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:110) 
    at com.google.appengine.api.datastore.DatastoreServiceImpl.put(DatastoreServiceImpl.java:94) 
    at com.google.apphosting.runtime.jetty.DatastoreSessionStore.saveSession(DatastoreSessionStore.java:94) 
    at com.google.apphosting.runtime.jetty.SessionManager$AppEngineSession.save(SessionManager.java:156) 
    at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:41) 
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) 
    at com.google.apphosting.utils.servlet.JdbcMySqlConnectionCleanupFilter.doFilter(JdbcMySqlConnectionCleanupFilter.java:57) 
+1

這是數據存儲區錯誤,您確定您正在有效使用CloudSQL嗎? – proppy

回答

0

發生這種情況是因爲您已達到servlet請求或任務的時間限制,並且您仍然無法像使用持久性(數據存儲,memcache,雲端sql,存儲)等其他服務一樣使用Google服務。