getting NullPointerException when running samples

15 views
Skip to first unread message

amarish

unread,
May 17, 2006, 4:07:42 PM5/17/06
to Google Web Toolkit
Hi there,

I'm using JDK 1.4 as recommended. When I try to run any of the
samples, it throws a NullPointerException like the one below. Any
suggestions?

[ERROR] Unable to load module entry point class
com.google.gwt.sample.kitchensink.client.KitchenSink
java.lang.NullPointerException: null
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:339)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeInt(ModuleSpaceIE6.java:176)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:87)
at com.google.gwt.user.client.Timer.createTimeout(Timer.java:59)
at com.google.gwt.user.client.Timer.schedule(Timer.java:112)
at
com.google.gwt.user.client.DeferredCommand.maybeSetDeferredCommandTimer(DeferredCommand.java:99)
at
com.google.gwt.user.client.DeferredCommand.add(DeferredCommand.java:50)
at
com.google.gwt.user.client.ui.DockPanel.deferRealize(DockPanel.java:190)
at com.google.gwt.user.client.ui.DockPanel.add(DockPanel.java:126)
at
com.google.gwt.sample.kitchensink.client.KitchenSink.show(KitchenSink.java:114)

xreader

unread,
May 17, 2006, 4:18:30 PM5/17/06
to Google Web Toolkit
Hi,

i have the same problemm with JDK build 1.5.0_06-b05

Robert Konigsberg

unread,
May 18, 2006, 3:44:39 AM5/18/06
to Google-We...@googlegroups.com
It seems to me: when running in the development shell, onModuleLoad is occasionally called a little earlier than it should. If the NullPointerException comes from calls to RootPanel.get(String), click the browser's Refresh button. Wait a moment. If it doesn't go away, post another message.

On 5/17/06, xreader <xre...@gmail.com> wrote:

Hi,

i have the same problemm with JDK build 1.5.0_06-b05
amarish wrote:
> Hi there,
>
> I'm using JDK 1.4 as recommended.  When I try to run any of the
> samples, it throws a NullPointerException like the one below.  Any
> suggestions?
>
> [ERROR] Unable to load module entry point class
> com.google.gwt.sample.kitchensink.client.KitchenSink
> java.lang.NullPointerException: null
>       at
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative (ModuleSpaceIE6.java:339)

>       at
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeInt(ModuleSpaceIE6.java:176)
>       at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java :87)
>       at com.google.gwt.user.client.Timer.createTimeout(Timer.java:59)
>       at com.google.gwt.user.client.Timer.schedule(Timer.java:112)
>       at
> com.google.gwt.user.client.DeferredCommand.maybeSetDeferredCommandTimer (DeferredCommand.java:99)

>       at
> com.google.gwt.user.client.DeferredCommand.add(DeferredCommand.java:50)
>       at
> com.google.gwt.user.client.ui.DockPanel.deferRealize(DockPanel.java:190)
>       at com.google.gwt.user.client.ui.DockPanel.add(DockPanel.java:126)
>       at
> com.google.gwt.sample.kitchensink.client.KitchenSink.show(KitchenSink.java:114)


konig...@gmail.com

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

paulh

unread,
May 18, 2006, 3:51:26 AM5/18/06
to Google Web Toolkit
I have same problem refresh didnt fix it... other samples work fine in
hosted

Robert Konigsberg

unread,
May 18, 2006, 2:06:05 PM5/18/06
to Google-We...@googlegroups.com
Actually, upon closer inspection, this call stack looks different, and a little more interesting. What OS and browser are you folks using?


On 5/18/06, paulh <andrew....@gmail.com> wrote:

I have same problem refresh didnt fix it... other samples work fine in
hosted







--
Robert Konigsberg

paulh

unread,
May 18, 2006, 8:33:45 PM5/18/06
to Google Web Toolkit
My environment is IE 6.0.2800.1106 SP1, Windows 2000 5.00.2195 SP4.
Interestingly tried it on another PC w/ XP and had no problems.

lazyeye

unread,
May 20, 2006, 4:13:05 PM5/20/06
to Google Web Toolkit
I have the same problem on Windows 2000 5.00.2195 sp4

stri...@gmail.com

unread,
May 30, 2006, 3:53:54 PM5/30/06
to Google Web Toolkit

lazyeye wrote:
> I have the same problem on Windows 2000 5.00.2195 sp4

Same problem here as well, Windows 2000, IE 6.0.2800.1106, Firefox
1.5.03, latest version of GWT.

stri...@gmail.com

unread,
May 30, 2006, 3:56:52 PM5/30/06
to Google Web Toolkit
Here's my stacktrace:

"[ERROR] Unable to load module entry point class
com.google.gwt.sample.kitchensink.client.KitchenSink
java.lang.NullPointerException: null
at

com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNative(ModuleSpaceIE6.java:368)
at
com.google.gwt.dev.shell.ie.ModuleSpaceIE6.invokeNativeInt(ModuleSpaceIE6.java:205)


at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:87)
at com.google.gwt.user.client.Timer.createTimeout(Timer.java:59)
at com.google.gwt.user.client.Timer.schedule(Timer.java:112)
at

com.google.gwt.user.client.DeferredCommand.maybeSetDeferredCommandTimer(DeferredCommand.java:99)

Scott Blum

unread,
May 31, 2006, 1:22:10 PM5/31/06
to Google Web Toolkit
Hi all,

This is a known issue with Windows 2000. Windows 2000 cannot marshal
the Java long data type between Java and JavaScript. As a workaround,
you can modify your own Timer.java to change the longs to ints. This
should be fixed in the next release.

Scott

Chris Fairbanks

unread,
Jun 8, 2006, 2:16:34 PM6/8/06
to Google Web Toolkit
Maybe I'm just missing something obvious, but we in the public don't
have access to the source code to modify, do we?

Can anyone provide a patched .class file, perhaps, to use on win2k
machines to get around this problem? (Or clearer instructions on how
to patch it ourselves)

Chris

Reply all
Reply to author
Forward
0 new messages