Hi All, I've tried my first GWT RPC project without success. I think I' missing something but I don't find what. Can you help me finding what's wrong ?
=========== The exception =========== 1 oct. 2009 11:06:18 com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE: [1254387978424000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'fr.km.server.KMServiceImpl$5' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. ===========My model =============== package fr.km.client.model; import java.util.ArrayList; import com.google.gwt.user.client.rpc.IsSerializable; public class Article implements IsSerializable { private int id; private String title; private ArrayList<String> tags; private String content; public Article() {} public Article(int id, String title, ArrayList<String> tags, String content) { this.id = id; this.title = title; this.tags = tags; this.content = content; } public int getId() { return id; } public String getTitle() { return title; } public ArrayList<String> getTags() { return tags; } public String getContent() { return content; } } =============My RPC Impl ============= public class KMServiceImpl extends RemoteServiceServlet implements KMService { public ArrayList<Article> findArticles(String keywords) { final Article a = new Article(0, "Title 1", new ArrayList<String>() {{add("J2EE");add("eclipse");}}, "some content"); final Article b = new Article(0, "Title 2", new ArrayList<String>() {{add("J2EE");add("eclipse");}}, "some content"); final Article c = new Article(0, "Title 3", new ArrayList<String>() {{add("J2EE");add("eclipse");}}, "some content"); final Article d = new Article(0, "Title 4", new ArrayList<String>() {{add("J2EE");add("eclipse");}}, "some content"); return new ArrayList<Article>(){{add(a);add(b);add(c);add(d);}}; } } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---