Error: Could not find no-arg method named [...].CssResource
I've been working on a project in GWT 2.1.1 and have had no need to upgrade, until now. Recently, additional devs needed to be able to access the code and build, and I've needed to document the process for them. I set up a VM and a fresh install of Eclipse/GWT and have been unable to build. I've tried setting the SDK as the recent 2.4, as well as downloading 2.1.1. I'm using UiBinder, and the error I'm receiving is: [ERROR] [project name] - Could not find no-arg method named css_selector_with_underscore in type com.google.gwt.resources.client.CssResource All the errors seem to correspond to the fact that the CSS selector has an underscore in it. Questions: 1. I've been able to find old GWT SDKs; where can I get old versions of the eclipse plugin? I'd like to just keep my GWT/eclipse frozen in time. 2. Anyone know why I'd be receiving this error after upgrading? I saw mention of CssResource.NoStrict. Would this workaround this error? Any way to set it globally? I used underscores in my selectors pretty commonly, and if that is now invalid, I will have to fix ~40 .ui.xml templates and seemingly rename countless filenames. Obviously, I'd like to avoid this any way I can. -- 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: Error: Could not find no-arg method named [...].CssResource
Just wanted to throw in an update. Running ant from the command line works as-expected. The problem definitely seems to be related to GPE. Perhaps I should move this post to the newly created forum that I noticed? On Oct 17, 11:37 am, Cory c...@grit-design.com wrote: I've been working on a project in GWT 2.1.1 and have had no need to upgrade, until now. Recently, additional devs needed to be able to access the code and build, and I've needed to document the process for them. I set up a VM and a fresh install of Eclipse/GWT and have been unable to build. I've tried setting the SDK as the recent 2.4, as well as downloading 2.1.1. I'm using UiBinder, and the error I'm receiving is: [ERROR] [project name] - Could not find no-arg method named css_selector_with_underscore in type com.google.gwt.resources.client.CssResource All the errors seem to correspond to the fact that the CSS selector has an underscore in it. Questions: 1. I've been able to find old GWT SDKs; where can I get old versions of the eclipse plugin? I'd like to just keep my GWT/eclipse frozen in time. 2. Anyone know why I'd be receiving this error after upgrading? I saw mention of CssResource.NoStrict. Would this workaround this error? Any way to set it globally? I used underscores in my selectors pretty commonly, and if that is now invalid, I will have to fix ~40 .ui.xml templates and seemingly rename countless filenames. Obviously, I'd like to avoid this any way I can. -- 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.
2.1.1 fails in SimpleRequestProcessor.processInvocationMessages when nothing to invoke
Hi, I believe I've uncovered an error in version 2.1.1 of SimpleRequestProcessor when there are no invocations and only operations in a RequestMessage from the client (stacktrack at end of email). I'm checking here before creating an issue. I am using an editor on the client to modify a property, then flushing and firing. So the RequestMessage from the client is: --- {Operations=[{PropertyMap={title=150349-0 Title CHANGED}, ServerId=IjY1Zjg4ZjVlLWFlNDItNDcxYi04NGNkLWE2MWJmOGUxNzBjZCI=, Operation=UPDATE, Version=MQ==, TypeToken=au.projectx.gwt.request.ArticleProxy}]} --- With the following stacktrace: --- [#|2010-12-21T15:05:48.626+1100|SEVERE|glassfish3.0.1|com.google.gwt.requestfactory.server.RequestFactoryServlet|_ThreadID=28;_ThreadName=Thread-1;|Unexpected error java.lang.NullPointerException at com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:414) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:218) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:125) at com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:118) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) --- It seems to me that either SimpleRequestProcessor.processInvocationMessages() needs to cater for a null ListInvocationMessage or RequestMessage.getInvocations() should return an empty list instead of a null. -- Cory -- 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-contrib] 2.1.1 fails in SimpleRequestProcessor.processInvocationMessages when no Invokations
Hi, (cross posted from users list as this is most likely more relevant to this list, being a possible bug) I believe I've uncovered an error in version 2.1.1 of SimpleRequestProcessor when there are no invocations and only operations in a RequestMessage from the client (stacktrace at end of email). I'm checking here before creating an issue. I am using an editor on the client to modify a property, then flushing and firing. So the RequestMessage from the client is: --- {Operations=[{PropertyMap={title=150349-0 Title CHANGED}, ServerId=IjY1Zjg4ZjVlLWFlNDItNDcxYi04NGNkLWE2MWJmOGUxNzBjZCI=, Operation=UPDATE, Version=MQ==, TypeToken=au.projectx.gwt.request.ArticleProxy}]} --- With the following stacktrace: --- [#|2010-12-21T15:05:48.626+1100|SEVERE|glassfish3.0.1|com.google.gwt.requestfactory.server.RequestFactoryServlet|_ThreadID=28;_ThreadName=Thread-1;|Unexpected error java.lang.NullPointerException at com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:414) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:218) at com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:125) at com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:118) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) --- It seems to me that either SimpleRequestProcessor.processInvocationMessages() needs to cater for a null ListInvocationMessage or RequestMessage.getInvocations() should return an empty list instead of a null. -- Cory -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] 2.1.1 fails in SimpleRequestProcessor.processInvocationMessages when no Invokations
On the client I am effectively doing the following (I've removed the widget stuff for ease of reading): interface Driver extends RequestFactoryEditorDriverArticleProxy, ArticleEditorDesktop {} ... driver.initialize(clientFactory.getEventBus(), clientFactory.getRequestFactory(), editArticleView.getEditor()); driver.edit(articleProxy, clientFactory .getRequestFactory().articleRequest()); driver.flush().fire(new ReceiverVoid() {...}); ... -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] static findEntity method cannot access jndi resources
Hi, The static findEntity methods required by RequestFactory in 2.1.0 seem to prevent looking up JNDI resources? I am not using a normal persistence layer in my JEE server side code, and instead need to access a JNDI resource and marshal my entity objects without the aid of JPA or JDO. So I need to do something such as: new InitialContext().lookup(jndi/path) and operate on the resource. I have seen in the Wiki (http://code.google.com/p/google-web-toolkit/ wiki/RequestFactory_2_1_1) and issue 5111 (http://code.google.com/p/ google-web-toolkit/issues/detail?id=5111) that there are plans to allow a ReflectiveServiceLayer, and I'm assuming that will allow something like the above? (more preferably allowing use of @Inject or other such CDI goodness?) If anything I'm putting this out there in the hopes there's a better way, or that at least it's considered within the upcoming design of RequestFactory in 2.1.1 Thanks, -- Cory -- http://groups.google.com/group/Google-Web-Toolkit-Contributors