本文介绍了更新到java 6u31后,DevServer失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我收到的错误。当我恢复使用6u30时,它工作正常。
This is the error I recieve. When I revert to using 6u30, it works fine. AppEngine must be updated now to fix this bug.
Initializing App Engine server
[ERROR] Unable to start App Engine server
Unable to start embedded HTTP serverjava.lang.RuntimeException: Unable to restore the previous TimeZone
at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228)
at com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:164)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:97)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
Caused by: java.lang.NoSuchFieldException: defaultZoneTL
at java.lang.Class.getDeclaredField(Unknown Source)
at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222)
... 6 more
[ERROR] shell failed in doStartupServer method
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
at com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:102)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1068)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:811)
at com.google.gwt.dev.DevMode.main(DevMode.java:311)
推荐答案
这是一个已知的错误:
This is a known bug: http://code.google.com/p/googleappengine/issues/detail?id=6928
解决方法是添加这条线到你的运行配置:
Workaround is to add this line to your run config:
-Dappengine.user.timezone=UTC
有些人必须这样做:
For some people it must be:
-Dappengine.user.timezone.impl=UTC
似乎后者在包含GWT的情况下工作;如果您不使用GWT和GAE,请使用前者。
Seems that the latter works if GWT is included; if you don't use GWT along with GAE, then use the former.
这篇关于更新到java 6u31后,DevServer失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!