hugoloza / gwt-platform

Automatically exported from code.google.com/p/gwt-platform
0 stars 0 forks source link

Can't run samples with java 1.6.0_31-b95 because of GAE 1.6.1 #418

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

What steps will reproduce the problem?
--------------------------------------
1. Clone the latest gwt-platform (or just download 0.7 samples; the same 
applies)
2. mvn clean install
3. Go to gwt-sample-basic and do mvn gwt:run

What is the expected output? What do you see instead?
-----------------------------------------------------
GWT hosted mode running on jetty instance. Instead I've got a following error:
[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)
    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(Class.java:1882)
    at com.google.appengine.tools.development.DevAppServerImpl.restoreLocalTimeZone(DevAppServerImpl.java:222)
    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)

What version of the product are you using? On what operating system?
--------------------------------------------------------------------
I'm on Windows 7 x86

java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)

Problem applies both to 0.7 samples and the current dev snapshot cloned with hg

Please provide any additional information below.
------------------------------------------------

This is related to a bug in GAE: 
http://code.google.com/p/googleappengine/issues/detail?id=6928
The bug is fixed in 1.6.4, however we're using 1.6.1.

Maybe we should consider switching to 1.6.5 (the newest as on the time of 
writing). This requires a change in root level pom.xml,
from:
<gae.version>1.6.1</gae.version>
to:
<gae.version>1.6.5</gae.version>

Also new GAE requires one more setting to be present in appengine-web.xml:
<threadsafe>true</threadsafe>

After changing the pom, the command:
mvn clean install 
on the root project gives "build success"

And after adding this <threadsafe> line in the gwt-sample-basic
mvn gwt:run
works as well.

Thanks,
Igor Kupczyński

Original issue reported on code.google.com by puszczyk on 10 May 2012 at 4:58

GoogleCodeExporter commented 9 years ago
A patch - upgrading to 1.6.5 and adding <threadsafe>true</threadsafe> to the 
samples.

Original comment by puszczyk on 10 May 2012 at 5:14

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by goudreau...@gmail.com on 23 May 2012 at 2:25