Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DevServer fails after updating to java 6u31

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)
like image 265
f.khantsis Avatar asked Feb 23 '12 13:02

f.khantsis


3 Answers

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

Seems that the latter works if GWT is included; if you don't use GWT along with GAE, then use the former.

like image 125
Peter Knego Avatar answered Nov 15 '22 00:11

Peter Knego


As it was said before - download App Engine for Java 1.6.3.1 from this url: http://code.google.com/appengine/downloads.html Then unzip it to some folder and then go to Eclipse, choose Window -> Preferences -> Google -> App Engine -> Add and find folder with downloaded files. After it make sure that you check the new version as active and click OK. This solution worked for me.

like image 23
Micer Avatar answered Nov 14 '22 23:11

Micer


This bug seems to be fixed with GAE 1.6.4

java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode)

like image 1
Moritz Petersen Avatar answered Nov 15 '22 00:11

Moritz Petersen