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 List<InvocationMessage> 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.

Reply via email to