发送到appengine后端devserver的请求出错

时间:2014-10-30 03:55:23

标签: java google-app-engine

我有一堆可以在后端运行的代码,但在本地测试时我得到了与memcache相关的错误

INFO   : { AppEngineUserRealm isUserInRole          } - Checking if principal test@example.com is in role admin 
SEVERE : { ShardedMemcacheUtil get                  } - Error encountered while getting [ configuration ] from memcache. 
java.lang.ClassCastException: com.google.appengine.tools.appstats.StatsProtos$RequestStatProto$Builder cannot be cast to com.google.appengine.tools.appstats.StatsProtos$RequestStatProto$Builder
    at com.google.appengine.tools.appstats.MemcacheWriter.write(MemcacheWriter.java:210)
    at com.google.appengine.tools.appstats.Recorder.processRecordingFuture(Recorder.java:456)
    at com.google.appengine.tools.appstats.Recorder.processAsyncRpc(Recorder.java:404)
    at com.google.appengine.tools.appstats.RecordingFuture.maybeRecordStats(RecordingFuture.java:140)
    at com.google.appengine.tools.appstats.RecordingFuture.get(RecordingFuture.java:110)
    at com.google.appengine.tools.appstats.RecordingFuture.get(RecordingFuture.java:20)
    at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:88)
    at com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26)
    at com.google.appengine.api.memcache.MemcacheServiceImpl.get(MemcacheServiceImpl.java:49)

请求已发送到以下URL,以便代码在后端执行。

http://localhost:52843/

上述请求在发送到

时运行正常
http://localhost:8888/

实际上是devserver。

任何线索在后端运行时有什么问题?另外为什么有两个端口为后端打开 58251 58252

INFO   : { JettyLogger info                         } - Started SelectChannelConnector@127.0.0.1:8888 
INFO   : { AbstractModule startup                   } - Module instance default is running at http://localhost:8888/ 
INFO   : { AbstractModule startup                   } - The admin console is running at http://localhost:8888/_ah/admin 
INFO   : { JettyLogger info                         } - jetty-6.1.x 
INFO   : { ApiProxyLocalImpl log                    } - javax.servlet.ServletContext log: Initializing Spring FrameworkServlet 'dispatcher' 

INFO   : { JettyLogger info                         } - Started SelectChannelConnector@127.0.0.1:58251 
INFO   : { ServerWrapper startup                    } - server: -1.backend1 is running on port 58251 
INFO   : { JettyLogger info                         } - jetty-6.1.x 
INFO   : { ApiProxyLocalImpl log                    } - javax.servlet.ServletContext log: Initializing Spring FrameworkServlet 'dispatcher' 

INFO   : { JettyLogger info                         } - Started SelectChannelConnector@127.0.0.1:58252 
INFO   : { ServerWrapper startup                    } - server: 0.backend1 is running on port 58252 
INFO   : { DevAppServerImpl doStart                 } - Dev App Server is now running 

更新看起来它正在发生,因为我使用Jdk8进行编译。我只是在部署到云之后才知道它给了我版本错误。仍然不确定为什么只有后端在当地受到影响。

0 个答案:

没有答案