Stange error with Chrome hosted mode

73 views
Skip to first unread message

mjfan80

unread,
Oct 5, 2011, 2:58:08 AM10/5/11
to Google Web Toolkit
Hi to all
There was and old topic on that error, but i can't find it anymore...
i found it on google but the page doesn't exist either in the google
cache.

I'm tryng to use the hosted mode in chrome too... but i can't.

I can use it on IE and Firefox (in this day i can't with firefox,
because the plugin in is not compatible with the last firefox
updgrade).
My project in "normal" mode works also in Chrome, but in hosted mode i
get this error



onModuleLoad() threw an exception
Exception while loading module com.fdlservizi.sse.client.HelpDeskGWT.
See Development Mode for details.
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
193)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Thread.java:662)
Caused by: com.google.gwt.core.client.JavaScriptException:
(TypeError): Object [object Object] has no method 'push'
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
237)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
132)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:
289)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:
107)
at com.gwtext.client.widgets.Container.addPreCreate(Container.java)
at com.gwtext.client.widgets.Container.add(Container.java:202)
at com.gwtext.client.widgets.Container.add(Container.java:144)
at com.fdlservizi.sse.client.HelpDeskGWT.inizializza(HelpDeskGWT.java:
107)
at
com.fdlservizi.sse.client.HelpDeskGWT.onModuleLoad(HelpDeskGWT.java:
69)
... 9 more



I'm using GWT + GWT-EXT and the java code and the point of the failure
is:

VerticalPanel vp = new VerticalPanel();
vp.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
vp.setVerticalAlignment(HorizontalPanel.ALIGN_MIDDLE);
vp.add(logoWelcome);
Panel pannelloVuoto = new Panel();
pannelloVuoto.setHeight(150);
vp.add(pannelloVuoto);
logoSA = new Image();
logoSA.setPixelSize(300, 90);
vp.add(logoSA);
pannelloInterno.add(vp);
panelPrincipale.add(pannelloInterno);

(the line 107 is: vp.add(logoSA);)
so nothing special

Some one can help me?

Jens

unread,
Oct 5, 2011, 5:25:24 AM10/5/11
to google-we...@googlegroups.com
Caused by: com.google.gwt.core.client.JavaScriptException: 
(TypeError): Object [object Object] has no method 'push' 

and

at com.gwtext.client.widgets.Container.addPreCreate(Container.java) 
at com.gwtext.client.widgets.Container.add(Container.java:202) 
at com.gwtext.client.widgets.Container.add(Container.java:144) 


indicates that GWT-EXT trys to call a method "push" on a javascript object that does not provide this method. This is done somewhere in com.gwtext.client.widgets.Container.addPreCreate(). 

I don't know GWT-EXT but maybe you have some old libraries of GWT-Ext or missed to initialize some GWT-EXT specific stuff?

-- J.

mjfan80

unread,
Oct 5, 2011, 5:56:12 AM10/5/11
to Google Web Toolkit
Maybe, but the fact is that

1: GWT-EXT is an "old" library, not maintened anymore
2: with Firefox and IE, also in hosted mode, i don't have any
problem... either with chrome in web mode. I have this error only with
chrome and hosted mode
Reply all
Reply to author
Forward
0 new messages