Hi,

try to debug the problem in development mode.
If RootPanel.get("stockList") supplies null then your html may be
wrong.
When the exception occurs while calling add mainPanel might be null
(don't know if this is permitted).

Best regard,
Basdl

On Feb 13, 10:10 am, Eric <[email protected]> wrote:
> Hi! I'm new to GWT.
> I'm working on the tutorials and I'm stuck on Step 3 (http://
> code.google.com/intl/en/webtoolkit/doc/latest/tutorial/buildui.html)
> I have all the code copied, but when debugging as Web Application I
> get a NullPointerException no matter what browser I'm using.
>
> The problems seems to come from line:
>         RootPanel.get("stockList").add(mainPanel);
>
> The stacktrace is the following:
>
> 01:55:04.589 [ERROR] [stockwatcher] Unable to load module entry point
> class com.google.gwt.sample.stockwatcher.client.StockWatcher (see
> associated exception for details)
> java.lang.NullPointerException: null
>     at
> com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad(StockWatcher.java:
> 42)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 396)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
> 183)
>     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(Unknown Source)
>
> It's probably something simple and/or dumb, but I tried creating the
> whole project from scratch a couple of times and I kept having the
> same error.
>
> By the way, I'm developing on Win7, GWT 2.1.1, Google App Engine Java
> SDK 1.4.0 and java v. 1.0.0_23
>
> Any suggestions?
> I will appreciate your help!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to