Tuesday, 15 September 2015

spring - Exception while dispatching incoming RPC call - GWT 2.6 -



spring - Exception while dispatching incoming RPC call - GWT 2.6 -

i'm working gwt(2.6) project spring using "gwtrpc-spring" lib.

i'm trying send pojo server client, pojo instance getting spring bean, , works well, when seek send client, got exception:

[warn] exception while dispatching incoming rpc phone call com.google.gwt.user.client.rpc.serializationexception: type 'java.lang.illegalargumentexception' not assignable 'com.google.gwt.user.client.rpc.isserializable' , did not have custom field serializer.for security purposes, type not serialized.: instance = java.lang.illegalargumentexception: unable find public method: setname 0 params. @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serialize(serverserializationstreamwriter.java:667) @ com.google.gwt.user.client.rpc.impl.abstractserializationstreamwriter.writeobject(abstractserializationstreamwriter.java:130) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter$valuewriter$8.write(serverserializationstreamwriter.java:153) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializevalue(serverserializationstreamwriter.java:587) @ com.google.gwt.user.server.rpc.rpc.encoderesponse(rpc.java:605) @ com.google.gwt.user.server.rpc.rpc.encoderesponseforfailure(rpc.java:393) @ com.google.gwt.user.server.rpc.rpc.invokeandencoderesponse(rpc.java:579) @ com.google.gwt.user.server.rpc.rpc.invokeandencoderesponse(rpc.java:545) @ org.gwtrpcspring.remoteservicedispatcher.invokeandencoderesponse(remoteservicedispatcher.java:100) @ org.gwtrpcspring.remoteservicedispatcher.processcall(remoteservicedispatcher.java:64) @ com.google.gwt.user.server.rpc.remoteserviceservlet.processpost(remoteserviceservlet.java:305) @ com.google.gwt.user.server.rpc.abstractremoteserviceservlet.dopost(abstractremoteserviceservlet.java:62) @ javax.servlet.http.httpservlet.service(httpservlet.java:755) @ javax.servlet.http.httpservlet.service(httpservlet.java:848) @ org.eclipse.jetty.servlet.servletholder.handle(servletholder.java:686) @ org.eclipse.jetty.servlet.servlethandler.dohandle(servlethandler.java:501) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:137) @ org.eclipse.jetty.security.securityhandler.handle(securityhandler.java:557) @ org.eclipse.jetty.server.session.sessionhandler.dohandle(sessionhandler.java:231) @ org.eclipse.jetty.server.handler.contexthandler.dohandle(contexthandler.java:1086) @ org.eclipse.jetty.servlet.servlethandler.doscope(servlethandler.java:428) @ org.eclipse.jetty.server.session.sessionhandler.doscope(sessionhandler.java:193) @ org.eclipse.jetty.server.handler.contexthandler.doscope(contexthandler.java:1020) @ org.eclipse.jetty.server.handler.scopedhandler.handle(scopedhandler.java:135) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:116) @ org.eclipse.jetty.server.handler.requestloghandler.handle(requestloghandler.java:68) @ org.eclipse.jetty.server.handler.handlerwrapper.handle(handlerwrapper.java:116) @ org.eclipse.jetty.server.server.handle(server.java:370) @ org.eclipse.jetty.server.abstracthttpconnection.handlerequest(abstracthttpconnection.java:489) @ org.eclipse.jetty.server.abstracthttpconnection.content(abstracthttpconnection.java:960) @ org.eclipse.jetty.server.abstracthttpconnection$requesthandler.content(abstracthttpconnection.java:1021) @ org.eclipse.jetty.http.httpparser.parsenext(httpparser.java:865) @ org.eclipse.jetty.http.httpparser.parseavailable(httpparser.java:240) @ org.eclipse.jetty.server.asynchttpconnection.handle(asynchttpconnection.java:82) @ org.eclipse.jetty.io.nio.selectchannelendpoint.handle(selectchannelendpoint.java:668) @ org.eclipse.jetty.io.nio.selectchannelendpoint$1.run(selectchannelendpoint.java:52) @ org.eclipse.jetty.util.thread.queuedthreadpool.runjob(queuedthreadpool.java:608) @ org.eclipse.jetty.util.thread.queuedthreadpool$3.run(queuedthreadpool.java:543) @ java.lang.thread.run(thread.java:745)

my pojo is:

import java.io.serializable; import com.google.gwt.user.client.rpc.isserializable; public class applicationitem implements serializable, isserializable { private static final long serialversionuid = 1l; private long id; private string name; private string path; private string grant; private string icon; public applicationitem(){} public void setid(long id) { this.id = id; } public long getid() { homecoming id; } public void setname() { } public void setname(string name) { this.name = name; } public string getname() { homecoming this.name; } public void setpath(string path) { this.path = path; } public string getpath() { homecoming path; } public void setgrant(string grant) { this.grant = grant; } public string getgrant() { homecoming grant; } public void seticon(string icon) { this.icon = icon; } public string geticon() { homecoming icon; } @override public string tostring() { homecoming "applicationitem: ["+this.id+", "+this.name+", "+this.path+", "+this.grant+", "+this.icon+"]"; } }

i appreciate help.

spring gwt gwt-rpc

No comments:

Post a Comment