![](/img/trans.png)
[英]Google App Engine: com.google.appengine.api.labs.modules.ModulesException: No valid instance id for this instance
[英]How to fix the following exception com.google.appengine.api.labs.modules.ModulesException: Instance id unavailable
我正在尝试将1.8.x之前的Google App Engine应用程序移植到1.8.7
我在本地开发服务器上以及每次调用URL时将应用程序部署到GAE时出现以下错误。
我看到其他人正在遭受同样的问题,但我在互联网上找到的帖子都没有实际的解决方案。
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)
这是一个已知问题(我在1.8.9中遇到过它),但可以忽略。
问题10412:Skeleton Web应用程序的doGet抛出“ModulesException:Instance id unavailable”
正如Tom正确回答的那样,这不是一个问题,但它是2015年4月,这个异常仍然填满了我的devserver的日志!
将以下内容添加到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.