Problem Running Sample Applications

13 views
Skip to first unread message

Colin Manning

unread,
May 18, 2006, 7:59:40 PM5/18/06
to Google Web Toolkit
Hi all,

I've downloaded GWT and followed the getting started instructions to
the letter. However I can't get the KitchenSink application to work in
"hosted" mode - no problem in "web" mode.

I get the same problem running from the command line, or from Eclipse.
I'm running on Windows XP with JDK 1.5. The only thing that makes me
suspicious is that I've got IE 7 Beta installed - I do use Firefox as
default browser, but looking at the stack dump, it looks like the
problem may be IE related. Any thoughts on how to progress would be
very appreciated - I've got two applications in develpment where GWT
would be brilliant if I can get it to work.

Here is the stack dumb I get from the GWT browser console:

[ERROR] Unable to load module entry point class
com.google.gwt.sample.kitchensink.client.KitchenSink
java.lang.RuntimeException: JavaScript method
'@com.google.gwt.user.client.impl.DOMImplStandard::init()' threw an
exception
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:365)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeVoid(ModuleSpaceIE6.java:254)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:127)
at
com.google.gwt.user.client.impl.DOMImplStandard.init(DOMImplStandard.java:176)
at com.google.gwt.user.client.DOM.<clinit>(DOM.java:39)
at com.google.gwt.user.client.ui.Button.<init>(Button.java:46)
at com.google.gwt.user.client.ui.Button.<init>(Button.java:56)
at
com.google.gwt.sample.kitchensink.client.KitchenSink.onModuleLoad(KitchenSink.java:19)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:64)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:324)
Caused by: com.google.gwt.core.client.JavaScriptException: JavaScript
TypeError exception: Object doesn't support this property or method
at
com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException(ModuleSpace.java:267)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.exceptionCaught(ModuleSpaceIE6.java:76)
at
com.google.gwt.dev.shell.JavaScriptHost.exceptionCaught(JavaScriptHost.java:31)
at
com.google.gwt.dev.shell.StaticJavaDispatch.callMethod(StaticJavaDispatch.java:45)
at
com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:117)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:199)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:108)
at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
at
org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
at
org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:487)

Thanks in advance,

Colin

Robert Konigsberg

unread,
May 18, 2006, 8:01:43 PM5/18/06
to Google-We...@googlegroups.com
If I understand ocrrectly, IE 7 is not yet supported.

On 5/18/06, Colin Manning <colin....@googlemail.com > wrote:

Hi all,

I've downloaded GWT and followed the getting started instructions to
the letter. However I can't get the KitchenSink application to work in
"hosted" mode - no problem in "web" mode.

I get the same problem running from the command line, or from Eclipse.
I'm running on Windows XP with JDK 1.5. The only thing that makes me
suspicious is that I've got IE 7 Beta installed - I do use Firefox as
default browser, but looking at the stack dump, it looks like the
problem may be IE related. Any thoughts on how to progress would be
very appreciated - I've got two applications in develpment where GWT
would be brilliant if I can get it to work.

Here is the stack dumb I get from the GWT browser console:

[ERROR] Unable to load module entry point class
com.google.gwt.sample.kitchensink.client.KitchenSink
java.lang.RuntimeException: JavaScript method
'@com.google.gwt.user.client.impl.DOMImplStandard::init()' threw an
exception
        at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative (ModuleSpaceIE6.java:365)

        at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeVoid(ModuleSpaceIE6.java:254)
        at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java :127)
        at
com.google.gwt.user.client.impl.DOMImplStandard.init(DOMImplStandard.java:176)
        at com.google.gwt.user.client.DOM.<clinit>(DOM.java:39)
        at com.google.gwt.user.client.ui.Button .<init>(Button.java:46)

        at com.google.gwt.user.client.ui.Button.<init>(Button.java:56)
        at
com.google.gwt.sample.kitchensink.client.KitchenSink.onModuleLoad(KitchenSink.java:19)
        at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:64)
        at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:324)
Caused by: com.google.gwt.core.client.JavaScriptException : JavaScript
TypeError exception: Object doesn't support this property or method
        at
com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException(ModuleSpace.java:267)
        at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.exceptionCaught (ModuleSpaceIE6.java:76)

        at
com.google.gwt.dev.shell.JavaScriptHost.exceptionCaught(JavaScriptHost.java:31)
        at
com.google.gwt.dev.shell.StaticJavaDispatch.callMethod(StaticJavaDispatch.java:45)
        at
com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:117)
        at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:199)
        at
com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:108)

        at
org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
        at
org.eclipse.swt.internal.ole.win32.IDispatch.Invoke(IDispatch.java:64)
        at
org.eclipse.swt.ole.win32.OleAutomation.invoke(OleAutomation.java:487)

Thanks in advance,

Colin







--
Robert Konigsberg
konig...@gmail.com

"... you know what they say: Fool me once, shame on you. Fool me twice, shame on The Cheat."

Colin Manning

unread,
May 19, 2006, 4:07:31 AM5/19/06
to Google Web Toolkit
I'm not trying to use IE7 - The problem occurs using the GWT browser
that running in what Google call "hosted" mode i.e. using the built in
GWT shell. I thought of the IE7 possible connection by looking at the
stack dump, which seems to be using something related to IE6.

I have now removed IE7 frm my computer, and rebooted. Still getting the
same problem. This is very frustrating, as obviously most people are
not having this problem. I can't think of anything else on my PC that
coud be causing a problem - its a bog standard Windows XP professional
installation, with JDK 1.5, Eclipse 3.1, and Ant 1.6 for development.

Any ideas are still very welcome.

Regards,

Colin

srinivasa rao gantenapalli

unread,
May 19, 2006, 4:17:06 AM5/19/06
to Google-We...@googlegroups.com
Hi everyone,
 
 
   I want to use writely(now a part of google). Can someone tell me how this can be possible.
 
 
 
Thanks in advance,
Srini

 

Colin Manning

unread,
May 19, 2006, 7:26:40 PM5/19/06
to Google Web Toolkit
It's clear from other threads in this forum that you need a J2EE
installation to get things working. Could somebody involved in GWT
update the getting started documentation to make this clear ?

I'd like to know why the J2EE installation is required. It should be
possible to develop with J2SE JDK.

Regards,

Colin

Robert Konigsberg

unread,
May 21, 2006, 4:22:35 AM5/21/06
to Google-We...@googlegroups.com
You don't need an J2EE installation to get started. The Development Shell comes with a tomcat server -- you can use that as a starting-point for testing your GWT RPC services.

What makes you think you need J2EE to get started with development?

Going back to your NullPointerException: your installation of IE7 *is* the browser used in the development tool. When the Development Shell launches a browser, the internal window is IE. My presumption, then, is that GWT doesn't differentiate between IE7 and IE6; it identifies the IE browser and launches with the IE6 compatibility layer.

So far, the only case I've seen where someone has resolved (what looks like) your problem is to remove IE7 and reboot. Are you still having trouble? I know you said you rebooted.

On 5/19/06, Colin Manning <colin....@googlemail.com> wrote:

Colin Manning

unread,
May 21, 2006, 8:27:19 AM5/21/06
to Google Web Toolkit
Hi Robery,

I've moved my comments on this to the thread "What am I doing wrong ?",
where others had similar problems.

As I said, yes I did remove IE7, and reboot, but the problem persisted.
The solution to the problem is to install J2EE JDK - which, as
discussed in the other thread is not ideal.

I did not instal the internal Tomcat, as I have my own Tomcat
installation already - this appears to be the problem. Really the GWT
installer should give th option to point at an existing TOmcat
installation. I don't want a second Tomcat installation, nor do I
really want J2EE JDK on my Windows machine, as it does not have
anything I want or need for development. This would be less of an issue
if using Linux for development, but as I'm sure you're aware, Windows
registry model can be a nightmare if you install various versions of
problems - even when you remove them, various bits are often left
bhind, and it becomes soul destroying to get things fixed up.

Regards,

Colin

Robert Konigsberg

unread,
May 21, 2006, 5:19:19 PM5/21/06
to Google-We...@googlegroups.com
On 5/21/06, Colin Manning <colin....@googlemail.com> wrote:

Hi Robery,

I've moved my comments on this to the thread "What am I doing wrong ?",
where others had similar problems.

OK thanks.

As I said, yes I did remove IE7, and reboot, but the problem persisted.

Yeah, I thought you did, I was just reiterating. :/ 

The solution to the problem is to install J2EE JDK - which, as
discussed in the other thread is not ideal.

Yeah, that surprises me too. I really think there's a simpler solution.

I did not instal the internal Tomcat, as I have my own Tomcat
installation already - this appears to be the problem. Really the GWT
installer should give th option to point at an existing TOmcat
installation. I don't want a second Tomcat installation, nor do I
really want J2EE JDK on my Windows machine, as it does not have
anything I want or need for development. This would be less of an issue
if using Linux for development, but as I'm sure you're aware, Windows
registry model can be a nightmare if you install various versions of
problems - even when you remove them, various bits are often left
bhind, and it becomes soul destroying to get things fixed up.

If you create an application, the tomcat installation becomes part of it, and is the server that operates with the development shell. I think it's good that it doesn't rely on an external Tomcat installation: if your installation is configured a specific way, then your development, testing and debugging will suffer. You can always compile the code and then configure and install it on your own tomcat server.

I also think you should not need J2EE JDK. I've installed this on several machines, none of which have any J2EE service, afaik, which, once again, leads me to think there's something strange about the process you went through.

All in all, you're up and running, and *that* is the most important part. I'm sorry to hear that you had to go through some trouble to do it, though!

Regards,

Colin

X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.11.53.63 with SMTP id b63mr99818cwa;
        Sun, 21 May 2006 05:27:19 -0700 (PDT)
X-Google-Token: zLKo8AwAAABAEj5lfbuCqPTZDdfGDrM1
Received: from 62.254.128.5 by g10g2000cwb.googlegroups.com with HTTP;
        Sun, 21 May 2006 12:27:19 +0000 (UTC)
From: "Colin Manning" < colin....@googlemail.com>
To: "Google Web Toolkit" <Google-We...@googlegroups.com>
Subject: Re: Problem Running Sample Applications
Date: Sun, 21 May 2006 12:27:19 -0000
Message-ID: <1148214439.3...@g10g2000cwb.googlegroups.com >
In-Reply-To: <481031b40605210122r617...@mail.gmail.com>
References: < 1147996780.3...@j73g2000cwa.googlegroups.com>
   <481031b40605181701u193...@mail.gmail.com>
   < 1148026051....@38g2000cwa.googlegroups.com>
   <db9693910605190117w4e...@mail.gmail.com >
   <1148081200.2...@y43g2000cwc.googlegroups.com>
   < 481031b40605210122r617...@mail.gmail.com>
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3,gzip(gfe),gzip(gfe)
Mime-Version: 1.0
Content-Type: text/plain
Reply all
Reply to author
Forward
0 new messages