yugalatea / gwt-google-apis

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

GWT-Gadgets hosted mode fails when using GWT 1.6.x and gwt-gadgets-1.0.2.jar #275

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
Gadgets 1.0.2 + GWT 1.6.4

Detailed description:
The symptoms look similar to issue 199.  See comments from Haziz later in
the report.

It seems that some part of the GadgetTemplate is being substituted when the
gwt-gadget.jar file is built, and not evaluated when the compiler actually
runs.  This ends up with external.gwtOnLoad() being called with '1.5' as
the third parameter instead of '1.6'.

Workaround if you have one:
Rebuild gwt-gadgets.jar using GWT 1.6 or build from source code.

Links to the relevant GWT Developer Forum posts:
http://groups.google.com/group/gwt-google-apis/browse_thread/thread/80eef7e63392
d3aa#

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 3 Jun 2009 at 2:40

GoogleCodeExporter commented 9 years ago
Another workaround - you could always use GWT 1.5.

Original comment by galgwt.reviews@gmail.com on 4 Jun 2009 at 6:55

GoogleCodeExporter commented 9 years ago
The problem had to do with About.GWT_VERSION_NUM being a static final constant 
in GWT
1.5.  In GWT 1.6, the final qualifier was removed.  For GWT 2.0, I deprecated 
those
constants in favor of gettter() classes.  In the mean time, the problem can be 
solved
in GWT 1.6 runtime for a library compiled under 1.5 using reflection.

Patch up for review at:

  http://galgwt-reviews.appspot.com/33608/show

-Eric.

Original comment by galgwt.reviews@gmail.com on 5 Jun 2009 at 3:08

GoogleCodeExporter commented 9 years ago
The compiler is looking for .gadget.xml artifact and fails on not finding it. It
looks like there's more than meets the eyes that is needed. I think the linker 
is not
getting setup properly. 

Original comment by branflak...@gmail.com on 15 Jun 2009 at 3:44

GoogleCodeExporter commented 9 years ago
Is this what you are reffering to?

[ERROR] Unable to find 'com/test/gadget/TestGadget.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?

If yes, Can you let me know how to let the gwt hosted mode consider the gadget 
as a
gadget and not as a gwt module.

Thanks and Regards,
Hafiz

Original comment by hafiza...@gmail.com on 15 Jun 2009 at 5:30

GoogleCodeExporter commented 9 years ago
I would try TestGadget.gadget.xml in the same path as the other gwt.xml file.
Although I tried this and got the compiler to compile it, I was not able to get 
the
gadget to load published.

http://code.google.com/p/gwt-examples/source/browse/trunk/FlashCard/src/com/gawk
at/flashcard/client/gadget/FlashCard_Gadget.java

Original comment by branflak...@gmail.com on 15 Jun 2009 at 6:01

GoogleCodeExporter commented 9 years ago
Committed patch to trunk as r1505

Original comment by galgwt.reviews@gmail.com on 18 Jun 2009 at 6:22

GoogleCodeExporter commented 9 years ago
I am new into using GWT and google APIs. I am working with eclipse, and 
although I
was able to successfully create a very simple gadget and deploy it at iGoogle, 
I am
not able to debug the gadget in hosted mode. The corresponding tutorial in 
google
code does not work. I mean, adding the -noserver option and specifying the new 
URL,
etc. Could someone update those tutorial for GWT 1.6.4? Many people would get
benefited of that. THANKS A LOT. 

Original comment by romeo.sa...@gmail.com on 1 Jul 2009 at 8:24

GoogleCodeExporter commented 9 years ago
I agree with updating the tutorial, would be helpful. 

Original comment by branflak...@gmail.com on 1 Jul 2009 at 9:23

GoogleCodeExporter commented 9 years ago
com/test/gadget/TestGadget.gwt.xml is a guess to what they are looking for, 
which I 
found when debugger breaking just before my fail and it was looking for an 
artifact 
.gadget.xml

Original comment by branflak...@gmail.com on 1 Jul 2009 at 9:27

GoogleCodeExporter commented 9 years ago
Voting to get the notification email to know when will be the release of this 
fix.
Unless moving full speed to support new (not-legacy) gadget API, I also agree 
for
updating the tutorial:
http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis&t=GadgetsG
ettingStarted.
The link to the custom GWT linker mentioned as "To meet this requirement, gadget
support is implemented using a custom GWT Linker." in that tutorial is also 
broken.
Regards.

Original comment by art...@gmail.com on 30 Jul 2009 at 6:31

GoogleCodeExporter commented 9 years ago
Can someone update when will this patch be included in the release?
Checking out the sourcecode, patching it and building it for my own use is 
feasible,
but I would like to know if we can have this released?

Thanks and Best Regards,
hafiz

Original comment by hafiza...@gmail.com on 30 Jul 2009 at 6:54

GoogleCodeExporter commented 9 years ago
We haven't set a release date yet.  Your best bet is to build the release from 
source.  
There are instructions here:

http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-
apis&t=GettingStartedSource

Read the section, "Getting the GWT Google APIs Source"

Original comment by ericzun...@gmail.com on 30 Jul 2009 at 10:49

GoogleCodeExporter commented 9 years ago
Recompiled with GWT 1.7 and now it doesn't work with this error message:

"Invalid version number "1.7" passed to external.gwtOnLoad(), expected "1.6"; 
your 
hosted mode bootstrap file may be out of date; if you are using -noserver try 
recompiling and redeploying your app"

This is due to the fact that gwt-dev-windows.jar from GWT 1.7 (inside Eclipse 
GWT 
Plugin) the class BrowserWidget (http://www.google.com/codesearch/p?
hl=it&sa=N&cd=1&ct=rc#A1edwVHBClQ/dev/core/src/com/google/gwt/dev/shell/BrowserW
idget
.java&q=BrowserWidget.java%20package:http://google-web-toolkit%5C.googlecode%5C.
com) 
contains this declaration:

private static final String EXPECTED_GWT_ONLOAD_VERSION = "1.6";

So when I recompile with 1.7 now it expects 1.6 !!!

Original comment by luca.mas...@gmail.com on 18 Aug 2009 at 8:45

GoogleCodeExporter commented 9 years ago
@luca.masini

Could you please start a discussion on the forum or open a new issue on the 
problem you 
are seeing.   

Original comment by galgwt.reviews@gmail.com on 18 Aug 2009 at 1:55

GoogleCodeExporter commented 9 years ago
I did it on GWT forum, because is a GWT bug, not a Gadget's one.
Ciao.

Original comment by luca.mas...@gmail.com on 25 Aug 2009 at 12:23

GoogleCodeExporter commented 9 years ago
Sorry, I missed GWT Group link:

http://groups.google.it/group/google-web-
toolkit/browse_thread/thread/f5b934edd22c424d/16d0a5100b15e987?
lnk=gst&q=masini#16d0a5100b15e987

and this is the new related bug:

http://code.google.com/p/gwt-google-apis/issues/detail?id=300

Original comment by luca.mas...@gmail.com on 25 Aug 2009 at 12:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I was able to let it works under GWT 1.7.

I wrote an article on how to do that here, hope it can help:

http://www.lucamasini.net/Home/gwt/google-app-engine/developing-google-gadget-wi
th-
eclipse-gwt-plugin

(the url below is broken, the correct one is on a single line !!)

Original comment by luca.mas...@gmail.com on 26 Aug 2009 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 21 Dec 2009 at 1:32

GoogleCodeExporter commented 9 years ago

Original comment by piotr.sw...@gmail.com on 14 May 2010 at 9:38

GoogleCodeExporter commented 9 years ago
I'd like to add a new comment at the end of the Gadgets API documentation that 
is is fixed too but seems leaving 
comments is now disabled.

I have used it and works great! :)

Original comment by branflak...@gmail.com on 14 May 2010 at 10:31