Hi Guys,
I am pretty much stuck on exactly the same problem and am not entirely
sure what's wrong. Anil or Ian......if you have figured out the
solution, could you post it up here please? I'd be very grateful!
Thanks,
Nico
On Aug 10, 3:48 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> Hi Anil,
>
> If everything else was OK, then it would work, so something strange is
> happening elsewhere. If you want to send me a zip of the project, I'll have
> a look.
>
> Ian
>
> 2008/8/9 Anil <[EMAIL PROTECTED]>
>
>
>
>
>
> > Thank you for replying; in the debugger, I put a watch and see
> > " RootPanel.get("stockList")"= null
>
> > I am using GWT 1.5
> > The html file is in /public and is:
>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> > "http://www.w3.org/TR/html4/loose.dtd">
>
> > <html>
> > <head>
> > <meta http-equiv="content-type" content="text/html;
> > charset=UTF-8">
> > <title>StockWatcher</title>
> > <script type="text/javascript" language="javascript"
> > src="com.google.gwt.sample.stockwatcher.StockWatcher.nocache.js"></
> > script>
> > </head>
>
> > <body>
> > <img src="images/GoogleCode.png" />
> > <h1>Stock Watcher</h1>
> > <div id="stockList"></div>
> > </body>
> > </html>
>
> > On Aug 6, 9:45 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> > > Or, more likely, mainPanel is null. Where did you get the code from?
>
> > > 2008/8/7 Anil <[EMAIL PROTECTED]>
>
> > > > 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
>
> > > --
> > > Ianhttp://examples.roughian.com
> > > _______________________________________
>
> > > Stuff the environment - Print this email
> > > _______________________________________
>
> --
> Ianhttp://examples.roughian.com
> _______________________________________
>
> Stuff the environment - Print this email
> _______________________________________
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---