Re: Problem with GWT RPC call with List of DTO objects
Have you tried: public interface MyService extends RemoteService { ListTempDTO getNames(); } public class MyServlet extends RemoteServiceServlet implements MyService { public ListTempDTO getNames() { ListTempDTO rs = new ArrayListTempDTO(); TempDTO dto1 = new TempDTO(); dto1.setName(A1); dto1.setCondition(Set); rs.add(dto1); return rs; } } On Dec 13, 8: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 -~--~~~~--~~--~--~---
Re: Problem with GWT RPC call with List of DTO objects
Read: http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideSerializableTypes And in general read: http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=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 -~--~~~~--~~--~--~---
Re: Problem with GWT RPC call with List of DTO objects
It's odd that the RPC documentation still talks about typeArgs. I've just double checked, and I have systematically removed all typeArg statements relating to RPC parameters/return values from the last project I upgraded to 1.5.3. All now replaced with 1.5. syntax and it works fine. My assumption is that specifying the type for collections in 1.5 syntax (i.e. ListMyType) means the GWT compiler uses that info in the same way it used to rely on typeArg tags. I sincerely hope I'm right about that..but those docs have got me worried. On Dec 14, 12:24 pm, HT(dk) helge.tesga...@gmail.com wrote: Read:http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-... And in general read:http://code.google.com/intl/da/docreader/#p=google-web-toolkit-doc-1-... 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 -~--~~~~--~~--~--~---
Problem with GWT RPC call with List of DTO objects
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 -~--~~~~--~~--~--~---