Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Serialization error #67

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments
Closed

Serialization error #67

GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

I am try to use the gwt-log(remote logging, and I got a serialization exception.

gwt-log version: 3.1.8
in my XXX.gwt.xml file:
<inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG"/>
<inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger"/>

In my GWT application I want to use a log: 
Log.info("Current log level: " + Log.getCurrentLogLevelString());

In web.xml:
<servlet>
 <servlet-name>GwtRemoteLoggerServlet</servlet-name>
 <servlet-class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
 <servlet-name>GwtRemoteLoggerServlet</servlet-name>
 <url-pattern>gwt-log</url-pattern>
</servlet-mapping>

After I run my GWT app, I got this exception:
Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 
'com.allen_sauer.gwt.log.shared.LogRecord' 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.

Thanks

Original issue reported on code.google.com by barna...@szabobarnabas.hu on 8 Mar 2012 at 11:49

@GoogleCodeExporter
Copy link
Author

Original comment by fredsa on 30 Apr 2012 at 11:17

  • Changed state: InsufficientInformation

@GoogleCodeExporter
Copy link
Author

An easy fix for this is to add IsSerializable to 
com.allen_sauer.gwt.log.shared.LogRecord:

public class LogRecord implements IsSerializable, Serializable {

Original comment by c...@rahmstrom.com on 27 Feb 2014 at 1:46

@GoogleCodeExporter
Copy link
Author

Fixed in f4dd86b233fed1cd88718556fee3f2a45f987446

Please try the attached jar

Original comment by fredsa on 4 Apr 2014 at 8:21

  • Changed state: Fixed

Attachments:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant