I see references to problems with serializing Map objects across the
RPC layer.  From what I read, folks have a lot of trouble with this,
but that is should work.  Well, it's not working for me.

I have an application to which I wish pass the parsed query string to
the server, as in MyAppl.html?foo=bar&eanie=meanie
In client/MyAppl.java I call
Map<String, List<String>> paramMap = Window.Location.getParameterMap
();

Now I call myService.execute(paramMap, callback).  This fails, whether
passed as a Map or as "new HashMap(paramMap)".  The first line in my
service is a System.out.println() and it never gets called.  I'm
tossed right into my callback's onFailure() method. (The Throwable's
getMessage() is "[ERROR] java.util.Collections
$UnmodifiableRandomAccessList
com.google.gwt.user.client.rpc.SerializationException:
java.util.Collections$UnmodifiableRandomAccessList").

What gives?  A HashMap implements serializable.  The keys are Strings
and the value is a List of Strings.

Why won't this serialize?

(My fallback is to call a servlet, let it worry the query string, read
the config file, set some session attributes, and then call
MyAppl.html.  However I'd like to save myself this initial trip to and
fro.)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to