I too faced a similar problem...but have corrected it...

I had to simply change the code given by Google tutorial to something like 
this...

From:
// Associate the Main panel with the HTML host page.
RootPanel.get("stockList").add(mainPanel);

Something like this..
// Associate the Main panel with the HTML host page.
RootPanel.get().add(mainPanel);


and the nullpointer Exception is no longer....

On Thursday, 7 August 2008 07:03:23 UTC+5:30, Anil wrote:
>
> Apparently there is a null pointer because root panel cannot find html 
> element 'stockList'. 
>
> [ERROR] 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:
>  
>
> 67) 
>
>  line 67 ---->   RootPanel.get("stockList").add(mainPanel); 
>
>
> in the file StockWatcher.html: 
>
>    <div id="stockList"></div> 
>
> I used the commands in the tutorial: 
>
> C:\Projects\gwt-windows-1.5.0\StockWatcher>projectCreator -eclipse 
> StockWatcher -out StockWatcher 
> C:\Projects\gwt-windows-1.5.0\StockWatcher>applicationCreator -eclipse 
> StockWatcher -out StockWatcher 
> com.google.gwt.sample.stockwatcher.client.StockWatcher 
>
> It seems like a config thing. Any help appreciated. 
> thanks, 
> Anil

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/JDCMVoJvdJcJ.
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