JavaBlog.fr / Java.lu DEVELOPMENT,ECLISPE,GAE,Google,GWT,Java Eclipse/GWT: Resolve the error ‘unable to restore the previous TimeZone’

Eclipse/GWT: Resolve the error ‘unable to restore the previous TimeZone’

Problem:
When during the launch of an application on local Jetty server via Eclipse, there is the following error :

01Initializing App Engine server
02    [ERROR] Unable to start App Engine server
03    java.lang.RuntimeException: Unable to restore the previous TimeZone
04    at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228)
05...
06Caused by: java.lang.NoSuchFieldException: defaultZoneTL
07    at java.lang.Class.getDeclaredField(Class.java:1882)
08    at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222)
09    ... 6 more
10    [ERROR] shell failed in doStartupServer method

Solution
In Eclipse

  1. Run -> Run Configurations,
  2. Select your application to deploy,
  3. Go in Arguments tab,
  4. Then in the section VM arguments add the argument ‘-Dappengine.user.timezone=UTC’ or ‘-Dappengine.user.timezone.impl=UTC’

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.

Related Post