Hi,
I have a problem with the StockWatcher. I followed steps from "Step
1: Creating a GWT Project" to create an application and run it in
hosted mode.
I got this error while loading the module. I don't get this problem on
Windows with version of 1.6.4.
[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.dom.client.Document$.isCSS1Compat$(Document.java:
1250)
at com.google.gwt.dom.client.Document$.getViewportElement$
(Document.java:1294)
at com.google.gwt.dom.client.Document$.getClientWidth$(Document.java:
1095)
at com.google.gwt.user.client.Window.getClientWidth(Window.java:537)
at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:179)
at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:153)
at com.google.gwt.user.client.ui.DialogBox.<init>(DialogBox.java:141)
at com.google.gwt.sample.stockwatcher.client.StockWatcher.onModuleLoad
(StockWatcher.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:326)
at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
(BrowserWidget.java:343)
at com.google.gwt.dev.shell.mac.BrowserWidgetSaf.access$400
(BrowserWidgetSaf.java:35)
at com.google.gwt.dev.shell.mac.BrowserWidgetSaf
$ExternalObject.gwtOnLoad(BrowserWidgetSaf.java:82)
at com.google.gwt.dev.shell.mac.BrowserWidgetSaf$GwtOnLoad.invoke
(BrowserWidgetSaf.java:171)
at org.eclipse.swt.internal.carbon.OS.ReceiveNextEvent(Native Method)
at org.eclipse.swt.widgets.Display.sleep(Display.java:3801)
at com.google.gwt.dev.SwtHostedModeBase.sleep(SwtHostedModeBase.java:
241)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:236)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
Any help is appreciated.
Thank you,
Pavel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---