Hi ramraj,
You will run into problems sending a Map<String,Object> through GWT RPC
because the map's values don't respect the conditions for serialization
through GWT RPC (see Serializable Types documentation below). The Date
class, on the other hand, is supported and can be serialized in GWT RPC. The
error message you saw isn't consistent with this cause, however, but sending
Map<String,Object> through GWT RPC is guaranteed to be a problem regardless.

Serializable Types:
http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideSerializableTypes

<http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideSerializableTypes>Hope
that helps,
-Sumit Chandel

On Fri, Jul 24, 2009 at 10:24 PM, ramraj <[email protected]> wrote:

>
> Hi all,
>
> I am new to this rpc,i facing a problem with Date type,I have one
> methods that takes Map<String,Object>
> argument,when i am trying to send to Date as value for that  map i am
> getting exception like
>
> java.lang.reflect.InvocationTargetException
> java.lang.AssertionError: Not enough methods, expecting 3 saw 2
>
> If a change to Map<String,Date> it is working fine
>
> please give suggessions,
> >
>

--~--~---------~--~----~------------~-------~--~----~
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