serialization - GWT Cannot Serialize My Object from Hibernate -
here error receiving. i've looked everywhere answers , cannot figure out why else isn't running same issue. error happens when i'm retrieving proposal object hibernate has many-to-one constraint user_info on 2 properties, author , advisor. if needed can provide classes , hibernate configs. note, implement isserializeable , have empty constructors...i appreciate advice or help...
starting jetty on port 8888 [warn] exception while dispatching incoming rpc call com.google.gwt.user.client.rpc.serializationexception: java.lang.reflect.invocationtargetexception @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializewithcustomserializer(serverserializationstreamwriter.java:760) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializeimpl(serverserializationstreamwriter.java:723) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serialize(serverserializationstreamwriter.java:612) @ com.google.gwt.user.client.rpc.impl.abstractserializationstreamwriter.writeobject(abstractserializationstreamwriter.java:129) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter$valuewriter$8.write(serverserializationstreamwriter.java:152) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializevalue(serverserializationstreamwriter.java:534) @ com.google.gwt.user.server.rpc.rpc.encoderesponse(rpc.java:609) @ com.google.gwt.user.server.rpc.rpc.encoderesponseforsuccess(rpc.java:467) @ com.google.gwt.user.server.rpc.rpc.invokeandencoderesponse(rpc.java:564) @ com.google.gwt.user.server.rpc.remoteserviceservlet.processcall(remoteserviceservlet.java:188) @ com.google.gwt.user.server.rpc.remoteserviceservlet.processpost(remoteserviceservlet.java:224) @ com.google.gwt.user.server.rpc.abstractremoteserviceservlet.dopost(abstractremoteserviceservlet.java:62) @ javax.servlet.http.httpservlet.service(httpservlet.java:637) @ javax.servlet.http.httpservlet.service(httpservlet.java:717) @ org.mortbay.jetty.servlet.servletholder.handle(servletholder.java:487) @ org.mortbay.jetty.servlet.servlethandler.handle(servlethandler.java:362) @ org.mortbay.jetty.security.securityhandler.handle(securityhandler.java:216) @ org.mortbay.jetty.servlet.sessionhandler.handle(sessionhandler.java:181) @ org.mortbay.jetty.handler.contexthandler.handle(contexthandler.java:729) @ org.mortbay.jetty.webapp.webappcontext.handle(webappcontext.java:405) @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) @ org.mortbay.jetty.handler.requestloghandler.handle(requestloghandler.java:49) @ org.mortbay.jetty.handler.handlerwrapper.handle(handlerwrapper.java:152) @ org.mortbay.jetty.server.handle(server.java:324) @ org.mortbay.jetty.httpconnection.handlerequest(httpconnection.java:505) @ org.mortbay.jetty.httpconnection$requesthandler.content(httpconnection.java:843) @ org.mortbay.jetty.httpparser.parsenext(httpparser.java:647) @ org.mortbay.jetty.httpparser.parseavailable(httpparser.java:211) @ org.mortbay.jetty.httpconnection.handle(httpconnection.java:380) @ org.mortbay.io.nio.selectchannelendpoint.run(selectchannelendpoint.java:396) @ org.mortbay.thread.queuedthreadpool$poolthread.run(queuedthreadpool.java:488) caused by: java.lang.reflect.invocationtargetexception @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:616) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializewithcustomserializer(serverserializationstreamwriter.java:742) ... 30 more **caused by: com.google.gwt.user.client.rpc.serializationexception: type 'edu.scranton.segpis.client.shared.user_info_$$_javassist_2' not included in set of types can serialized serializationpolicy or class object not loaded. security purposes, type not serialized.: instance = edu.scranton.segpis.client.shared.user_info@1497d11** @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serialize(serverserializationstreamwriter.java:610) @ com.google.gwt.user.client.rpc.impl.abstractserializationstreamwriter.writeobject(abstractserializationstreamwriter.java:129) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter$valuewriter$8.write(serverserializationstreamwriter.java:152) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializevalue(serverserializationstreamwriter.java:534) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializeclass(serverserializationstreamwriter.java:700) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serializeimpl(serverserializationstreamwriter.java:730) @ com.google.gwt.user.server.rpc.impl.serverserializationstreamwriter.serialize(serverserializationstreamwriter.java:612) @ com.google.gwt.user.client.rpc.impl.abstractserializationstreamwriter.writeobject(abstractserializationstreamwriter.java:129) @ com.google.gwt.user.client.rpc.core.java.util.collection_customfieldserializerbase.serialize(collection_customfieldserializerbase.java:43) @ com.google.gwt.user.client.rpc.core.java.util.arraylist_customfieldserializer.serialize(arraylist_customfieldserializer.java:36) ... 35 more [error] 500 - post /uofsisweb/thesisproposal (127.0.0.1) 57 bytes request headers host: 127.0.0.1:8888 user-agent: mozilla/5.0 (x11; u; linux i686; en-us; rv:1.9.2.12) gecko/20101027 ubuntu/10.10 (maverick) firefox/3.6.12 accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 accept-language: en-us,en;q=0.5 accept-encoding: gzip,deflate accept-charset: iso-8859-1,utf-8;q=0.7,*;q=0.7 keep-alive: 115 connection: keep-alive cache-control: no-cache referer: x-gwt-permutation: hostedmode x-gwt-module-base: content-type: text/x-gwt-rpc; charset=utf-8 content-length: 185 pragma: no-cache response headers content-type: text/plain
to manage bug several options exists, can see here: http://code.google.com/intl/fr-fr/webtoolkit/articles/using_gwt_with_hibernate.html
the new gwt 2.1.0 release comes requestfactory solves bug jpa (and hibernate).
Comments
Post a Comment