7

当我在我的本地 Google App Engine 应用程序中将日志记录级别更改FINE为时,我开始在我的跟踪堆栈中看到这些:

Apr 17, 2013 4:54:20 PM com.google.appengine.tools.development.DevAppServerServersFilter getCurrentServerInstance
FINE: Exception getting server instance
com.google.appengine.api.labs.servers.ServersException: No valid instance id for this instance.
    at com.google.appengine.api.labs.servers.ServersServiceImpl.getCurrentInstanceId(ServersServiceImpl.java:75)
    at com.google.appengine.tools.development.DevAppServerServersFilter.getCurrentServerInstance(DevAppServerServersFilter.java:210)
    at com.google.appengine.tools.development.DevAppServerServersFilter.isServerLoadBalancingServerRequest(DevAppServerServersFilter.java:185)
    at com.google.appengine.tools.development.DevAppServerServersFilter.getRequestType(DevAppServerServersFilter.java:174)
    at com.google.appengine.tools.development.DevAppServerServersFilter.doFilter(DevAppServerServersFilter.java:112)
    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.appengine.tools.development.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:94)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:421)
    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 org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)

任何想法这是什么以及如何解决它?

4

2 回答 2

0

这是开发服务器中的一个已知问题:
https ://code.google.com/p/googleappengine/issues/detail?id=10412

已经知道有一段时间了,所以我不确定他们是否会修复它。

于 2015-04-10T18:50:45.507 回答
-3

我认为当您将日志记录设置为 FINE 时,您应该期待一些虚假的日志消息。我只为您的代码将日志记录级别设置为 FINE,并将其余部分保留为默认级别。

于 2013-04-17T09:02:37.567 回答