Hello,

I see many strange errors.

(1) ApiProxy$ApplicationException: ApplicationError: 2: too much
contention on these datastore entities. please try again.
It should be converted to ConcurrentModificationException.

(2) ApiProxy$ApplicationException: ApplicationError: 5: Unknown
I set deadline(
http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreServiceConfig.html#deadline%28double%29
).
This exception can see when timed out.
It should be converted to DatastoreTimeoutException or
ApiProxy$ApiDeadlineExceededException, I think.


Why I can see such internal errors?


traces:
------------
NativeException
(com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2: too much contention on these datastore entities.
please try again.):
  com/google/net/rpc/RpcStub.java:1025:in `runInContext'
  com/google/tracing/TraceContext.java:440:in `run'
  com/google/tracing/TraceContext.java:639:in `runInContext'
  com/google/tracing/TraceContext.java:318:in `runInInheritedContextNoUnref'
  com/google/tracing/TraceContext.java:310:in `runInInheritedContext'
  com/google/tracing/TraceContext.java:438:in `run'
  com/google/net/rpc/RpcStub.java:1046:in `rpcFinished'
  com/google/net/rpc/RPC.java:2044:in `internalFinish'
  com/google/net/rpc/impl/RpcNetChannel.java:2298:in `finishRpc'
  com/google/net/rpc/impl/RpcNetChannel.java:1240:in `messageReceived'
  com/google/net/rpc/impl/RpcConnection.java:319:in `parseMessages'
  com/google/net/rpc/impl/RpcConnection.java:290:in `dataReceived'
  com/google/net/async/Connection.java:474:in `handleReadEvent'
  com/google/net/async/EventDispatcher.java:831:in `processNetworkEvents'
  com/google/net/async/EventDispatcher.java:207:in `internalLoop'
  com/google/net/async/EventDispatcher.java:103:in `loop'
  com/google/net/async/GlobalEventRegistry.java:95:in `runLoop'
  com/google/net/async/LoopingEventDispatcher.java:378:in `run'
  config/initializers/global.rb:274:in `makeSyncCall'
  
bundler_gems/jruby/1.8/gems/appengine-apis-0.0.13/lib/appengine-apis/datastore.rb:214:in
`transaction'
  
bundler_gems/jruby/1.8/gems/appengine-apis-0.0.13/lib/appengine-apis/datastore_types.rb:544:in
`convert_exceptions'
  
bundler_gems/jruby/1.8/gems/appengine-apis-0.0.13/lib/appengine-apis/datastore.rb:212:in
`transaction'
  lib/tiny_ds.rb:35:in `tx'



NativeException
(com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 5: Unknown):
  com/google/net/rpc/RpcStub.java:1025:in `runInContext'
  com/google/tracing/TraceContext.java:440:in `run'
  com/google/tracing/TraceContext.java:639:in `runInContext'
  com/google/tracing/TraceContext.java:318:in `runInInheritedContextNoUnref'
  com/google/tracing/TraceContext.java:310:in `runInInheritedContext'
  com/google/tracing/TraceContext.java:438:in `run'
  com/google/net/rpc/RpcStub.java:1046:in `rpcFinished'
  com/google/net/rpc/RPC.java:2044:in `internalFinish'
  com/google/net/rpc/impl/RpcNetChannel.java:2298:in `finishRpc'
  com/google/net/rpc/impl/RpcNetChannel.java:1240:in `messageReceived'
  com/google/net/rpc/impl/RpcConnection.java:319:in `parseMessages'
  com/google/net/rpc/impl/RpcConnection.java:290:in `dataReceived'
  com/google/net/async/Connection.java:474:in `handleReadEvent'
  com/google/net/async/EventDispatcher.java:831:in `processNetworkEvents'
  com/google/net/async/EventDispatcher.java:207:in `internalLoop'
  com/google/net/async/EventDispatcher.java:103:in `loop'
  com/google/net/async/GlobalEventRegistry.java:95:in `runLoop'
  com/google/net/async/LoopingEventDispatcher.java:378:in `run'
  config/initializers/global.rb:274:in `makeSyncCall'
  
bundler_gems/jruby/1.8/gems/appengine-apis-0.0.13/lib/appengine-apis/datastore.rb:119:in
`put'
  
bundler_gems/jruby/1.8/gems/appengine-apis-0.0.13/lib/appengine-apis/datastore_types.rb:544:in
`convert_exceptions'
  
bundler_gems/jruby/1.8/gems/appengine-apis-0.0.13/lib/appengine-apis/datastore.rb:117:in
`put'
  lib/tiny_ds/low_ds.rb:74:in `save'
  lib/tiny_ds/base.rb:160:in `do_save'
  lib/tiny_ds/validations.rb:21:in `save!'



--
takeru

-- 
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