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 
List<InvocationMessage> or RequestMessage.getInvocations() should return an 
empty list instead of a null.

 -- Cory

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to