yugalatea / gwt-google-apis

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

Can't load module with GWT Gadget, running in hosted mode with -noserver option #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
1.0.1+ (r1013)

Detailed description:
Originally reported by: bbeaudet
Reproduced by: zundel

Using GWT 1.5.3 on windows, When trying to debug a gadget from Windows 
hosted mode with the '-noserver' option set (as documented in 
GettingStartedGadgets) , you get:

[ERROR] Failure to load module 
'com.google.gwt.gadgets.sample.hellogadgets.HelloGadgets'
java.lang.RuntimeException: No such property __gwt_module_id
    at 
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.setIntProperty(BrowserWidgetIE
6.java:219)
    at 
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$3(BrowserWidgetIE6.java
:212)
    at 
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidg
etIE6.java:68)
    at 
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetI
E6.java:139)
    at 
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
    at 
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
    at 
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    at org.eclipse.swt.internal.win32.OS.MessageBoxW(Native Method)
    at org.eclipse.swt.internal.win32.OS.MessageBox(OS.java:2321)
    at org.eclipse.swt.widgets.MessageBox.open(MessageBox.java:189)
    at 
com.google.gwt.dev.shell.DialogBase.confirmAction(DialogBase.java:95)
    at 
com.google.gwt.dev.shell.BrowserWidget$7.changing(BrowserWidget.java:535)
    at org.eclipse.swt.browser.Browser$2.handleEvent(Browser.java:247)
    at 
org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)
    at 
org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:144
)
    at 
org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:119)
    at 
org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:96)
    at 
org.eclipse.swt.ole.win32.OleEventSink$1.method6(OleEventSink.java:70)
    at 
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native 
Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    at 
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
    at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
    at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

Workaround if you have one:

Links to the relevant GWT Developer Forum 
posts:http://groups.google.com/group/Google-Web-
Toolkit/browse_thread/thread/84a3b84c8570faa6/61b81fc6de935dd1

Original issue reported on code.google.com by galgwt.reviews@gmail.com on 19 Nov 2008 at 3:46

GoogleCodeExporter commented 9 years ago
Just tried windows in GWT trunk (pre 1.6) and it has the same problem.

Tried the procedure in Linux and it still works.

Original comment by galgwt.reviews@gmail.com on 19 Nov 2008 at 4:13

GoogleCodeExporter commented 9 years ago
created GWT issue:

http://code.google.com/p/google-web-toolkit/issues/detail?id=3128

Original comment by galgwt.reviews@gmail.com on 24 Nov 2008 at 2:51

GoogleCodeExporter commented 9 years ago
The problem is not in GWT core.  The issue is that the Gadget linker creates 
its own 
selection script that does not load hosted mode in the same way and is missing 
some 
features needed for IE.

Original comment by galgwt.reviews@gmail.com on 6 Jan 2009 at 12:38

GoogleCodeExporter commented 9 years ago
Submitted patch to be reviewed at:

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

Windows hosted mode has been broken for a while when running
the -noserver option.  This affects the cross site linker, but also the Gadget
linker too.   For the gadget linker, this was remedied by adding in some missing
variables since
added to 'hosted.html' (only used in IFrame template) and by incorporating a fix
from GWT issue 1578 to delay initializaing the module until after the body is
finished loading.

Original comment by galgwt.reviews@gmail.com on 8 Jan 2009 at 2:26

GoogleCodeExporter commented 9 years ago

Original comment by galgwt.reviews@gmail.com on 8 Jan 2009 at 4:15

GoogleCodeExporter commented 9 years ago
committed as r1161

Original comment by galgwt.reviews@gmail.com on 8 Jan 2009 at 6:36

GoogleCodeExporter commented 9 years ago
Released in gwt-gadgets-1.0.2

Original comment by galgwt.reviews@gmail.com on 21 Feb 2009 at 1:29

GoogleCodeExporter commented 9 years ago
Updating account names

Original comment by zundel@google.com on 21 Dec 2009 at 2:00