Is it even possible to use memcache with GWT on the server side? I am wondering if I am even able to do this?
On Feb 1, 1:56 pm, chiappone <chiapp...@gmail.com> wrote: > I have hit the wall in trying to figure out what I am doing wrong in > my GAE GWT application. I am trying to use memcache to get a list of > serializable objects out of the cache in a service. It seems to put > them fine, and I can see them being pulled from cache in the debugger > but I end up getting the following exception: > > This is the call to pull the object out of cache: > List<Model> ecDevices = (List<Model>) cache.findInCache(partitionKey); > if(ecDevices != null && ecDevices.size() > 0){ > log.info("Returning devices from cache"); > return ecDevices; > }... > > SEVERE: [1265057364142000] javax.servlet.ServletContext log: Exception > while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationException: > java.lang.reflect.InvocationTargetException > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeWithCustomSerializer > (ServerSerializationStreamWriter.java:760) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeImpl > (ServerSerializationStreamWriter.java:723) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze > (ServerSerializationStreamWriter.java:612) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write > Object > (AbstractSerializationStreamWriter.java:129) > at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeValue > (ServerSerializationStreamWriter.java:534) > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609) > at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess > (RPC.java:467) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse > (RPC.java:564) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall > (RemoteServiceServlet.java:188) > at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost > (RemoteServiceServlet.java:224) > at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost > (AbstractRemoteServiceServlet.java:62) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: > 487) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1093) > at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter > (ServeBlobFilter.java:51) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter > (TransactionCleanupFilter.java:43) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at com.google.appengine.tools.development.StaticFileFilter.doFilter > (StaticFileFilter.java:121) > at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter > (ServletHandler.java:1084) > at org.mortbay.jetty.servlet.ServletHandler.handle > (ServletHandler.java:360) > at org.mortbay.jetty.security.SecurityHandler.handle > (SecurityHandler.java:216) > at org.mortbay.jetty.servlet.SessionHandler.handle > (SessionHandler.java:181) > at org.mortbay.jetty.handler.ContextHandler.handle > (ContextHandler.java:712) > at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: > 405) > at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle > (DevAppEngineWebAppContext.java:70) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at com.google.appengine.tools.development.JettyContainerService > $ApiProxyHandler.handle(JettyContainerService.java:352) > at org.mortbay.jetty.handler.HandlerWrapper.handle > (HandlerWrapper.java:139) > at org.mortbay.jetty.Server.handle(Server.java:313) > at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: > 506) > at org.mortbay.jetty.HttpConnection$RequestHandler.content > (HttpConnection.java:844) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) > at org.mortbay.io.nio.SelectChannelEndPoint.run > (SelectChannelEndPoint.java:396) > at org.mortbay.thread.BoundedThreadPool$PoolThread.run > (BoundedThreadPool.java:442) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.google.appengine.tools.development.agent.runtime.Runtime.invoke > (Runtime.java:100) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeWithCustomSerializer > (ServerSerializationStreamWriter.java:742) > ... 38 more > Caused by: com.google.gwt.user.client.rpc.SerializationException: > java.lang.reflect.InvocationTargetException > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeWithCustomSerializer > (ServerSerializationStreamWriter.java:760) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeImpl > (ServerSerializationStreamWriter.java:723) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze > (ServerSerializationStreamWriter.java:612) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write > Object > (AbstractSerializationStreamWriter.java:129) > at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeValue > (ServerSerializationStreamWriter.java:534) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeClass > (ServerSerializationStreamWriter.java:700) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeImpl > (ServerSerializationStreamWriter.java:730) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeClass > (ServerSerializationStreamWriter.java:712) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeImpl > (ServerSerializationStreamWriter.java:730) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeClass > (ServerSerializationStreamWriter.java:712) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeImpl > (ServerSerializationStreamWriter.java:730) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeClass > (ServerSerializationStreamWriter.java:712) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeImpl > (ServerSerializationStreamWriter.java:730) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze > (ServerSerializationStreamWriter.java:612) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write > Object > (AbstractSerializationStreamWriter.java:129) > at > com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSeriali > zerBase.serialize > (Collection_CustomFieldSerializerBase.java:43) > at > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializ > er.serialize > (ArrayList_CustomFieldSerializer.java:36) > ... 44 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.google.appengine.tools.development.agent.runtime.Runtime.invoke > (Runtime.java:100) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali > zeWithCustomSerializer > (ServerSerializationStreamWriter.java:742) > ... 61 more > Caused by: java.lang.NullPointerException > at com.extjs.gxt.ui.client.data.RpcMap.size(RpcMap.java:198) > at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize > (RpcMap_CustomFieldSerializer.java:32) > ... 67 more > > error: com.google.gwt.user.client.rpc.StatusCodeException: The call > failed on the server; see server log for details > > Any ideas would be greatly appreciated. Thanks. -- 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.