It's working now!!!!!!!! Hoooooooooooray! Actually I can't explain the reason for it. I've deinstalled IE 7 again and then I reinstalled it (including all bug fixes etc.). Since the first deinstallation I haven't changed the code and now it's working!
Vitali, thank you so much for your support! I already wanted to kick GWT away but your help motivated me to find the reason! [TOPIC CLOSED] On 4 Apr., 13:37, Vitali Lovich <[email protected]> wrote: > No, I meant put something like GWT.log(RootPanel.get().toString(), > null) as the first line of your onModuleLoad & post the result of > that. For some reason, it's not finding your div tag, hence returning > null & crashing when you try to access the add method. > > On Sat, Apr 4, 2009 at 6:21 AM, Chuck <[email protected]> wrote: > > > The HTML code seems to be ok: > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > <html> > > <head> > > <meta http-equiv="content-type" content="text/html; > > charset=UTF-8"> > > <title>Homepage</title> > > <script type="text/javascript" language="javascript" > > src="website.Index.nocache.js"></script> > > </head> > > <body id="standard_bg"> > > > <div id="navi"> > > </div> > > > <!-- OPTIONAL: include this if you want history support --> > > <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' > > style="position:absolute;width:0;height:0;border:0"></iframe> > > </body> > > </html> > > > I hope it's what you meant by your expression. Thank you very much for > > your help so far!!! > > > On 4 Apr., 11:38, Vitali Lovich <[email protected]> wrote: > >>http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... > > >> Are you sure your HTML is correct? Can you post the appropriate page? > >> Don't post the HTML file - instead post the output of > >> RootPanel.get().toString() - that shows you the HTML context that GWT > >> sees. > > >> On Sat, Apr 4, 2009 at 4:53 AM, Chuck <[email protected]> wrote: > > >> > Yes: > > >> > [ERROR] Unable to load module entry point class website.client.Index > >> > (see associated exception for details) > >> > java.lang.NullPointerException: null > >> > at website.client.Index.onModuleLoad(Index.java:46) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >> > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > >> > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > >> > at java.lang.reflect.Method.invoke(Unknown Source) > >> > at > >> > com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:320) > >> > at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace > >> > (BrowserWidget.java:329) > >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300 > >> > (BrowserWidgetIE6.java:37) > >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad > >> > (BrowserWidgetIE6.java:76) > >> > at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke > >> > (BrowserWidgetIE6.java:139) > >> > at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke > >> > (IDispatchImpl.java:294) > >> > at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 > >> > (IDispatchImpl.java:194) > >> > at org.eclipse.swt.internal.ole.win32.COMObject.callback6 > >> > (COMObject.java:117) > >> > at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native > >> > Method) > >> > at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) > >> > at > >> > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) > >> > at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720) > >> > at com.google.gwt.dev.GWTShell.run(GWTShell.java:593) > >> > at com.google.gwt.dev.GWTShell.main(GWTShell.java:357) > > >> > I read somewhere that I have to uninstall IE 7 to fix this problem. > >> > I've done that but it didn't work. > > >> > On 4 Apr., 10:33, Vitali Lovich <[email protected]> wrote: > >> >> Can you please post the exception you get? It should be in the log. > > >> >> On Sat, Apr 4, 2009 at 3:52 AM, Chuck <[email protected]> wrote: > > >> >> > Hi there! > > >> >> > I'm a starter and I already got troubles running my project. I > >> >> > searched a lot of forums and old threads but I couldn't find a > >> >> > solution. I'm developing with Eclipse and there seems to be something > >> >> > wrong with the RootPanel.add(String).add(x). It works as long as the > >> >> > parameter of add() is empty but as soon as I add my id of the HTML > >> >> > code it crashes with the error message: > > >> >> > "Failed to load module website.index". Please see the log in the > >> >> > development shell for details." > > >> >> > Development Shell: Unable to load module entry point class > >> >> > website.client.Index (see associated exception for details) > > >> >> > RootPanel.get().add(bar); --> works fine, the tab bar (bar) is shown > >> >> > correctly. > > >> >> > RootPanel.get("navi").add(bar); --> crashes because of the error > >> >> > mentioned above > > >> >> > HTML Code: <div id="navi"></div> > > >> >> > Does somebody has an idea? I already checked the libraries but I > >> >> > couldn't find anything... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
