Re: GWT + Eclipse doesn't work. Attempted to beginRule: R/, does not match outer scope rule
It has been fixed after reboot the system. It is unussual, because I am using Ubuntu. Maybe, some eclipse plugin (e.g. maven for gwt) blocked work, althought I close Eclipse and try to use new instalation of it. On 22 янв, 17:54, Rajeev Dayal rda...@google.com wrote: Can you post the full stack trace? Also, have you always had this problem, or did you upgrade the plugin (or other plugins) in your Eclipse installation lately? Are you using any Eclipse plugins for source control?On Thu, Jan 21, 2010 at 8:39 AM, MaEcTPo olegik...@gmail.com wrote: Hi, I have a trouble with Eclipse and GWT. My GWT projects don't work. All of them. They compile, but don't run in hosted mode. When I start Eclipse I receive popup with error. In eclipse error log I have this: java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/MySmartGWT at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) . And it is for all gwt projects. When I run project I receive a link, for example http://localhost:/MySmartGWT2.html?gwt.codesvr=127.0.1.1:9997, but when I open it in FireFox - nothing happens. There are not logs, errors or something like that. I use Ubuntu 9.10, Eclipse 3.5, GWT 2.0. In some project I am playing with SmartGWT. Source control - mercurial. Best regars, Oleg. P.S. I know that my English is not very well, but I am learning it now. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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.
GWT + Eclipse doesn't work. Attempted to beginRule: R/, does not match outer scope rule
Hi, I have a trouble with Eclipse and GWT. My GWT projects don't work. All of them. They compile, but don't run in hosted mode. When I start Eclipse I receive popup with error. In eclipse error log I have this: java.lang.IllegalArgumentException: Attempted to beginRule: R/, does not match outer scope rule: P/MySmartGWT at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) . And it is for all gwt projects. When I run project I receive a link, for example http://localhost:/MySmartGWT2.html?gwt.codesvr=127.0.1.1:9997, but when I open it in FireFox - nothing happens. There are not logs, errors or something like that. I use Ubuntu 9.10, Eclipse 3.5, GWT 2.0. In some project I am playing with SmartGWT. Source control - mercurial. Best regars, Oleg. P.S. I know that my English is not very well, but I am learning it now. -- 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-tool...@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.
Add GWT (SmartGWT) to existing project with Spring and Hibernate
Hi, I have very simple question for you.. We have some project which use Spring, Hibernate, Maven and so on. I can run it under Apache TomCat 6.0, open the browser and try it. So, question is.. How can I add GWT to this project? Can you show me any examples which work good? Or get me a step by step how to. Please.. I played with GWT. After I played with SmartGWT and I love it and would like to use it in our new project. Please, help. I read a lot of information, tried some projects which was very old and didn't work... -- 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-tool...@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: Possible bug or maybe I don't understand. Window.alert() and onResponseReceived
I don't have onSucces method, I have something like this: Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { // Couldn't connect to server (could be timeout, SOP violation, etc.) } @Override public void onResponseReceived(Request request, Response response) { if (200 == response.getStatusCode()) { parseStatusesResponse(response.getText()); } else { // Handle the error. Can get the status text from response.getStatusText() } } }); In parseStatusesResponse I have my trouble. Do I have to have onSucces method? P.S. But I think that I understood my issue, and thanks Sripathi for example with bear:) On Dec 28, 2:50 pm, Ian Bambury ianbamb...@gmail.com wrote: You have a method with the Window.alert(anything) in it. Where do you call that from? Is that called from the onSuccess method? Or from the sendRequest method? Need to see the relevant code, really, but I suspect you call it after the sendRequest and not via the onSuccess(). Ian http://examples.roughian.com -- 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-tool...@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: Possible bug or maybe I don't understand. Window.alert() and onResponseReceived
It already is. I have a code like this: Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { // Couldn't connect to server (could be timeout, SOP violation, etc.) } @Override public void onResponseReceived(Request request, Response response) { } In onResponseReceived I parse JSON which I received and populate a variable which is member of class and call another method, for populate some table. Another method get the variable (which I populated) - but it is empty until I call Window.alert(anything). After alert the variable is populated. On Dec 27, 3:49 pm, Ian Bambury ianbamb...@gmail.com wrote: You can't fire off an async request to the server and expect to be able to use the result immediately. Move the code you have after the RPC or RequestBuilder call into the onSuccess method of the callback. Ian http://examples.roughian.com 2009/12/25 MaEcTPo olegik...@gmail.com I have a problem. I have a variable on my class: public ArrayListHashMapString,String statuses = new ArrayListHashMapString,String(); and I have a method, which populates this variable from JSON. So, after populating I try to use it, but it is empty. But, If I use Window.alert(something) before, I'll receive in this variable what I want. For example, this part of code write to GWT.log: int statusesSize = statuses.size(); GWT.log(statusesSize: + statusesSize, null); Window.alert( + statusesSize); int statusesSize2 = statuses.size(); GWT.log(statusesSize2: + statusesSize2, null); 12:58:25.541 [INFO] [mythirdgwt2] statusesSize: 0 12:58:49.864 [INFO] [mythirdgwt2] statusesSize2: 4 Why it happens? How can I fix it? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@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.
Possible bug or maybe I don't understand. Window.alert() and onResponseReceived
I have a problem. I have a variable on my class: public ArrayListHashMapString,String statuses = new ArrayListHashMapString,String(); and I have a method, which populates this variable from JSON. So, after populating I try to use it, but it is empty. But, If I use Window.alert(something) before, I'll receive in this variable what I want. For example, this part of code write to GWT.log: int statusesSize = statuses.size(); GWT.log(statusesSize: + statusesSize, null); Window.alert( + statusesSize); int statusesSize2 = statuses.size(); GWT.log(statusesSize2: + statusesSize2, null); 12:58:25.541 [INFO] [mythirdgwt2] statusesSize: 0 12:58:49.864 [INFO] [mythirdgwt2] statusesSize2: 4 Why it happens? How can I fix it? -- 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-tool...@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.