Skip to content

RPC Tutorial - Issue with Serialization #277

@docwarems

Description

@docwarems

Hello, the GWT Website and it's tutorial is excellent. Congratulations for that!

When you run the example at http://www.gwtproject.org/doc/latest/tutorial/RPC.html, for me in super dev mode (embedded Jetty), I get the following error during the RPC call.

com.google.gwt.user.client.rpc.SerializationException: Type '[Lcom.google.gwt.sample.stockWatcher.client.StockPrice;' 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 serialized.

However, I do not get this error in production mode. If I let my class to be serialized implement the GWT IsSerializable rather than java.io.Serializable, both run modes work fine.

I don't know if this is a documentation issue or a GWT issue. I just wanted to comment that in order to keep the tutorial as perfect as it is.

Best regards Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions