Read:
http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideSerializableTypes

And in general read:
http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideRemoteProcedureCalls


On Dec 13, 9:52 pm, Cris <mmmkris...@gmail.com> wrote:
> Hi
> My requirement is as below.
> 1. I have a DTO  as below with setters and getters for the same
>  package com.gwt.sample.client.data
>
>  public class TempDTO implements IsSerializable
>  {
>    private String name;
>    private String condition;
>  }
>
> 2. My RPC stuff is as below
>    package com.gwt.sample.client
>    public interface MyService extends RemoteService
>    {
>      List getNames();
>    }
>
>   package com.gwt.sample.client
>   public interface MyServiceAsync
>   {
>     void getNames(AsyncCallback async);
>   }
>
> 3. Servlet is
>   public class MyServlet extends RemoteServiceServlet implements
> MyService
>   {
>     public List getNames()
>     {
>       List rs = new ArrayList();
>       TempDTO dto1 = new TempDTO();
>       dto1.setName("A1");
>       dto1.setCondition("Set");
>       rs.add(dto1);
>       return rs;
>     }
>   }
>
> When made a request to this MyServlet I am getting strange error in
> browser "Could not complete the operation due to error c00ce514
> number:"
> This error message is (throwable.getMessage()) is displaying in
> onFailure() method.
>
> The same code is working fine if I pass List of strings. The problem
> is only with List of DTOs.
>
> Please, can anyone help me.
>
> Thansk,
> Cris

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