iulianastase / jsonengine

Automatically exported from code.google.com/p/jsonengine
0 stars 0 forks source link

Get length error when posting #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. post JSON data which include string data values near 500 or greater than 500 
characters in length
2.
3.

What is the expected output? What do you see instead?

Following error is thrown:

uncaught application failure</title><body><pre>
Uncaught exception from servlet
java.lang.IllegalArgumentException: indexEntries: String properties must be 500 
characters or less.  Instead, use com.google.appengine.api.datastore.Text, 
which can store strings of any length.
    at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedSingleValue(DataTypeUtils.java:192)
    at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:149)
    at com.google.appengine.api.datastore.DataTypeUtils.checkSupportedValue(DataTypeUtils.java:123)
    at com.google.appengine.api.datastore.Entity.setProperty(Entity.java:280)
    at com.jsonengine.meta.JEDocMeta.modelToEntity(JEDocMeta.java:77)
    at org.slim3.datastore.DatastoreUtil.modelToEntity(DatastoreUtil.java:1643)
    at org.slim3.datastore.Datastore.put(Datastore.java:2248)
    at com.jsonengine.service.crud.CRUDService.put(CRUDService.java:219)
    at com.jsonengine.controller.FrontController.doUpdate(FrontController.java:311)
    at com.jsonengine.controller.FrontController.run(FrontController.java:96)
    at org.slim3.controller.Controller.runBare(Controller.java:108)
    at org.slim3.controller.FrontController.processController(FrontController.java:567)
    at org.slim3.controller.FrontController.doFilter(FrontController.java:347)
    at org.slim3.controller.FrontController.doFilter(FrontController.java:300)
    at org.slim3.controller.FrontController.doFilter(FrontController.java:270)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
    at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
    at org.slim3.controller.FrontController.doForward(FrontController.java:729)
    at org.slim3.controller.FrontController.doFilter(FrontController.java:306)
    at org.slim3.controller.FrontController.doFilter(FrontController.java:270)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.slim3.datastore.DatastoreFilter.doFilter(DatastoreFilter.java:54)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.slim3.controller.HotReloadingFilter.doFilter(HotReloadingFilter.java:192)
    at org.slim3.controller.HotReloadingFilter.doFilter(HotReloadingFilter.java:157)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
    at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
    at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
    at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:261)
    at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:8495)
    at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:8493)
    at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24)
    at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:435)
    at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:572)
    at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
    at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326)
    at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318)
    at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446)

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by chrissm9...@gmail.com on 27 Dec 2010 at 8:18

GoogleCodeExporter commented 8 years ago
Yes, this is a limit of Google App Engine.

Original comment by kazunori...@gmail.com on 1 Jan 2011 at 8:07

GoogleCodeExporter commented 8 years ago
thanks

Original comment by chrissm9...@gmail.com on 1 Jan 2011 at 9:28

GoogleCodeExporter commented 8 years ago
I understand that an individual string value string cannot be longer than 500 
char.

But I am getting the same length limit error even though I have assured that I 
have no string values longer than 100 char. Is there some collective data 
structure that this limit also applies to?

Original comment by chrissm9...@gmail.com on 10 Feb 2011 at 6:16