Something on line 36 of GWTTask.java is null. If it isn't obvious from
looking at your code what, exactly, is null, then you can set a
breakpoint and run in debug mode (possible from the command line, but
why make things difficult? Just use Eclipse or some other IDE). If you
then can't figure out why whatever it is is null, post the relevant
code. I'm going to take a wild guess and say you have something like
RootPanel.get("foo").add(something) and there isn't an element with ID
of "foo" in your HTML. But that is, again, simply a wild guess.On Fri, Mar 27, 2009 at 8:18 AM, ritu6386 <[email protected]> wrote: > > Hi, > > I have just started using GWT and i started with a very simple > project i found in a book . When i execute it from the command prompt > for the first time it's working fine. Then i try and import project to > eclipse and while executing i get this error. > > [ERROR] Unable to find 'com/apress/gwt/GWTasks.gwt.xml' on your > classpath; could be a typo, or maybe you forgot to include a classpath > entry for source? > > i have included gwt-dev-windows.jar and gwt-user.jar in the build > path. > > After this now when i execute gwtasks-shell from command prompt i get > this error > > [ERROR] Unable to load module entry point class > com.apress.gwt.client.GWTasks > java.lang.NullPointerException: null > at com.apress.gwt.client.GWTasks.onModuleLoad(GWTasks.java:36) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:64) > at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace > (BrowserWidget.java:324) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$100 > (BrowserWidgetIE6.java:19) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad > (BrowserWidgetIE6.java:45) > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke > (BrowserWidgetIE6.java:98) > at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke > (IDispatchImpl.java:199) > > [ERROR] Failure to load module 'com.apress.gwt.GWTasks' > > I am using gwt-windows-1.0.20 since i have jdk1.4 on this system . > > I would really appreciate if i could get any 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 -~----------~----~----~----~------~----~------~--~---
