Re: NullPointerException on stockwatcher tutorial
You can try Run -> Configuration -> Servers -> Automatically chose an available port. It worked for me. I don't see the logic but I hope it will help you marți, 29 octombrie 2013, 11:34:09 UTC+2, Davide Micheletti a scris: > > Julio writes: > > > > > Hi, > > works for me. i insert the DIV tag into the html. > > > > Thanks. > > > > > Hi have the same problem.. > In my html code i've > > and the null point exception still showing. > > How can i resolve it? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: NullPointerException on stockwatcher tutorial
Julio writes: > > Hi, > works for me. i insert the DIV tag into the html. > > Thanks. > Hi have the same problem.. In my html code i've and the null point exception still showing. How can i resolve it? Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: NullPointerException on stockwatcher tutorial
Hi, works for me. i insert the DIV tag into the html. Thanks. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NullPointerException on stockwatcher tutorial
Eric writes: > > See my reply above. Basically you just need to add a div or something > with an id of "stockList" in war/StockWatcher.html > > On Feb 14, 8:10 am, iuiz wrote: > > I got the same problem running the tutorial under ARCH Linux with > > Eclipse Helios, but without the App Engine. However I use gwt-2-2-0. > I have following in my html: and I still get the sameNullPointerException error! -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NullPointerException on stockwatcher tutorial
See my reply above. Basically you just need to add a div or something with an id of "stockList" in war/StockWatcher.html On Feb 14, 8:10 am, iuiz wrote: > I got the same problem running the tutorial under ARCH Linux with > Eclipse Helios, but without the App Engine. However I use gwt-2-2-0. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NullPointerException on stockwatcher tutorial
Never mind! I got it. The HTML was wrong indeed. The tutorial isn't very clear. The code they give you has RootPanel.get("stockList").add(mainPanel); So the code was looking for any HTML element with an id of "stockList". The html created automatically doesn't have any HTML element with that id, so I just created one. Thanks for the help! On Feb 15, 2:55 am, Basdl wrote: > Hi, > > try to debug the problem in development mode. > If RootPanel.get("stockList") supplies null then your html may be > wrong. > When the exception occurs while calling add mainPanel might be null > (don't know if this is permitted). > > Best regard, > Basdl > > On Feb 13, 10:10 am, Eric wrote: > > > > > > > > > Hi! I'm new to GWT. > > I'm working on the tutorials and I'm stuck on Step 3 (http:// > > code.google.com/intl/en/webtoolkit/doc/latest/tutorial/buildui.html) > > I have all the code copied, but when debugging as Web Application I > > get a NullPointerException no matter what browser I'm using. > > > The problems seems to come from line: > > RootPanel.get("stockList").add(mainPanel); > > > The stacktrace is the following: > > > 01:55:04.589 [ERROR] [stockwatcher] 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(StockWa > > tcher.java: > > 42) > > 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: > > 396) > > at > > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler > > .java: > > 183) > > at > > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > > nelServer.java: > > 510) > > at > > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java > > : > > 352) > > at java.lang.Thread.run(Unknown Source) > > > It's probably something simple and/or dumb, but I tried creating the > > whole project from scratch a couple of times and I kept having the > > same error. > > > By the way, I'm developing on Win7, GWT 2.1.1, Google App Engine Java > > SDK 1.4.0 and java v. 1.0.0_23 > > > Any suggestions? > > I will appreciate your 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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NullPointerException on stockwatcher tutorial
You're right. The html is wrong, but I'm not sure how to fix it. The tutorial (http://code.google.com/intl/en/webtoolkit/doc/latest/ tutorial/buildui.html) doesn't mention anything about it. I'm using the html generated automatically. Any suggestions on how to fix it? I don't understand exactly how gwt works, so it's kind of hard to debug. P.S. I'm now using gwt 2.2 On Feb 15, 2:55 am, Basdl wrote: > Hi, > > try to debug the problem in development mode. > If RootPanel.get("stockList") supplies null then your html may be > wrong. > When the exception occurs while calling add mainPanel might be null > (don't know if this is permitted). > > Best regard, > Basdl > > On Feb 13, 10:10 am, Eric wrote: > > > > > > > > > Hi! I'm new to GWT. > > I'm working on the tutorials and I'm stuck on Step 3 (http:// > > code.google.com/intl/en/webtoolkit/doc/latest/tutorial/buildui.html) > > I have all the code copied, but when debugging as Web Application I > > get a NullPointerException no matter what browser I'm using. > > > The problems seems to come from line: > > RootPanel.get("stockList").add(mainPanel); > > > The stacktrace is the following: > > > 01:55:04.589 [ERROR] [stockwatcher] 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(StockWa > > tcher.java: > > 42) > > 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: > > 396) > > at > > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler > > .java: > > 183) > > at > > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan > > nelServer.java: > > 510) > > at > > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java > > : > > 352) > > at java.lang.Thread.run(Unknown Source) > > > It's probably something simple and/or dumb, but I tried creating the > > whole project from scratch a couple of times and I kept having the > > same error. > > > By the way, I'm developing on Win7, GWT 2.1.1, Google App Engine Java > > SDK 1.4.0 and java v. 1.0.0_23 > > > Any suggestions? > > I will appreciate your 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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NullPointerException on stockwatcher tutorial
I got the same problem running the tutorial under ARCH Linux with Eclipse Helios, but without the App Engine. However I use gwt-2-2-0. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: NullPointerException on stockwatcher tutorial
Hi, try to debug the problem in development mode. If RootPanel.get("stockList") supplies null then your html may be wrong. When the exception occurs while calling add mainPanel might be null (don't know if this is permitted). Best regard, Basdl On Feb 13, 10:10 am, Eric wrote: > Hi! I'm new to GWT. > I'm working on the tutorials and I'm stuck on Step 3 (http:// > code.google.com/intl/en/webtoolkit/doc/latest/tutorial/buildui.html) > I have all the code copied, but when debugging as Web Application I > get a NullPointerException no matter what browser I'm using. > > The problems seems to come from line: > RootPanel.get("stockList").add(mainPanel); > > The stacktrace is the following: > > 01:55:04.589 [ERROR] [stockwatcher] 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: > 42) > 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: > 396) > at > com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: > 183) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: > 510) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: > 352) > at java.lang.Thread.run(Unknown Source) > > It's probably something simple and/or dumb, but I tried creating the > whole project from scratch a couple of times and I kept having the > same error. > > By the way, I'm developing on Win7, GWT 2.1.1, Google App Engine Java > SDK 1.4.0 and java v. 1.0.0_23 > > Any suggestions? > I will appreciate your 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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
NullPointerException on stockwatcher tutorial
Hi! I'm new to GWT. I'm working on the tutorials and I'm stuck on Step 3 (http:// code.google.com/intl/en/webtoolkit/doc/latest/tutorial/buildui.html) I have all the code copied, but when debugging as Web Application I get a NullPointerException no matter what browser I'm using. The problems seems to come from line: RootPanel.get("stockList").add(mainPanel); The stacktrace is the following: 01:55:04.589 [ERROR] [stockwatcher] 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: 42) 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: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 183) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Unknown Source) It's probably something simple and/or dumb, but I tried creating the whole project from scratch a couple of times and I kept having the same error. By the way, I'm developing on Win7, GWT 2.1.1, Google App Engine Java SDK 1.4.0 and java v. 1.0.0_23 Any suggestions? I will appreciate your 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 google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.