Wednesday, October 31, 2012

GWT RPC Serialization on web and app server

Hi All,

I am facing a very strange scenario here. We have a GWT application that runs perfectly fine when deployed on weblogic app server. So far this was going pretty smooth for us. Now we are preparing our app for production release. For that, as per our company standard, we have installed a web server on our integration machine which will communicate with app server (installed on the same integration machine). When we access our application via webserver, we are getting the incompatibleremoteservletexception

We are using Serializable objects instead of IsSerializable for all the RPC calls in our application. This works fine when the application is directly access via the application server.

Your help here would be really appreciated.

----
sample exception stack trace:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.xyz.rpcservices.ABCRequest' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be deserialized.

        at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:308)

        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:186)

        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)

        at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

        Truncated. see log file for complete stacktrace

com.google.gwt.user.client.rpc.SerializationException: Type 'com.xyz.rpcservices.ABCRequest' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be deserialized.

        at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize(LegacySerializationPolicy.java:127)

        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:520)

        at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61)

        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:137)

        at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:384)

        Truncated. see log file for complete stacktrace     

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ccMjqPksMbEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment