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 :

Initializing App Engine server
	[ERROR] Unable to start App Engine server
	java.lang.RuntimeException: Unable to restore the previous TimeZone
	at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:228)
...
Caused by: java.lang.NoSuchFieldException: defaultZoneTL
	at java.lang.Class.getDeclaredField(Class.java:1882)
	at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222)
	... 6 more
	[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

Documentum : Audit trail entries dm_audittrail / SessionConfig / application_codeDocumentum : Audit trail entries dm_audittrail / SessionConfig / application_code

Hi, After my previous posts concerning the Documentum audit trail entries (dm_audittrail) http://www.javablog.fr/documentum-creation-of-audit-trail-entries-dm_audittrail.html and http://www.javablog.fr/deleting-of-audit-trail-entries-dm_audittrail.html, here, I would like to expose a solution in order to force content server to