Yep, I'm attempting to do the same thing and am having the same
problems. However, by adding the following lines of code seems to fix
the issue:
if (invlist == null) {
return;
}
On Dec 20, 8:34 pm, Cory Prowse c...@prowse.com wrote:
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.reques
tfactory.server.RequestFactoryServlet|_ThreadID=28;_ThreadName=Thread-1;|Un
expected error
java.lang.NullPointerException
at
com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocati
onMessages(SimpleRequestProcessor.java:414)
at
com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleR
equestProcessor.java:218)
at
com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleR
equestProcessor.java:125)
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFa
ctoryServlet.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.