[英]How to fix the following exception com.google.appengine.api.labs.modules.ModulesException: Instance id unavailable
I am trying to port over a pre-1.8.x Google App Engine application to 1.8.7
我正在尝试将1.8.x之前的Google App Engine应用程序移植到
1.8.7
And I am getting the following errors on my Local Development Server as well as when I deploy my application to GAE on every call to a URL. 我在本地开发服务器上以及每次调用URL时将应用程序部署到GAE时出现以下错误。
I see that other people are suffering from the same issue but none of the posts I could find on the Internet had an actual solution. 我看到其他人正在遭受同样的问题,但我在互联网上找到的帖子都没有实际的解决方案。
Nov 12, 2013 9:05:40 PM com.google.appengine.tools.development.DevAppServerModulesFilter doDirectRequest
[INFO] FINEST: request to specific module instance: -1.default
[INFO] Nov 12, 2013 9:05:40 PM com.google.appengine.tools.development.DevAppServerModulesFilter getCurrentModuleInstance
[INFO] FINE: Exception getting module instance
[INFO] com.google.appengine.api.labs.modules.ModulesException: Instance id unavailable
[INFO] at com.google.appengine.api.labs.modules.ModulesServiceImpl.getCurrentInstanceId(ModulesServiceImpl.java:68)
This is a known issue (I encountered it with 1.8.9), but can be ignored. 这是一个已知问题(我在1.8.9中遇到过它),但可以忽略。
Issue 10412: Skeleton web application's doGet throws "ModulesException: Instance id unavailable" 问题10412:Skeleton Web应用程序的doGet抛出“ModulesException:Instance id unavailable”
As Tom answered correctly, this is not an issue, but it is April 2015 and this exception still fills the logs of my devserver! 正如Tom正确回答的那样,这不是一个问题,但它是2015年4月,这个异常仍然填满了我的devserver的日志!
Add the following to your logging.properties
to keep this noise out of your logs when running in the development server. 将以下内容添加到
logging.properties
,以便在开发服务器中运行时将噪声从日志中排除。
# turn off error com.google.appengine.api.modules.ModulesException: Instance id unavailable errors in devserver
com.google.appengine.tools.development.DevAppServerModulesFilter.level = SEVERE
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.