Thursday, December 1, 2011

Stuck in the StockWatch tutorial

Okay, I can keep retyping the same things over and over, or I can ask
for help.

(Actually, I'm doing both : )

I'm in the sample app tutorial -

http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html

- building the StockWatch web app. I'm using Indigo build id
20110615-0604. I typed it in just like it said and everything was
fine, then finished section three ("Build the User Interface" and
then, when I tried to run the test, Church was Out.

*********************************************
Exception while loading module
com.google.gwt.sample.stockwatcher.client.StockWatcher. See
Development Mode for details.

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
200)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
525)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at
com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad(StockWatcher.java:
47)
... 9 more
*********************************************

That line is

RootPanel.get("stockList").add(mainPanel);

and it all looks just like the example - EXCEPT that the .get in the
method chain is in *italics*.

Tried some googling - couldn't find out what the italics mean.

If anyone has any ideas, I'd love to hear about it. I was having fun
with this until this happened, and I can't find any way around it.

thanks,
jim p.
....at Godaddy, where they don't do a *lot* of Java, but I'd like to
help it along :L)

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

No comments:

Post a Comment