You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.
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 [email protected] on 8 Mar 2012 at 11:49
The text was updated successfully, but these errors were encountered:
An easy fix for this is to add IsSerializable to
com.allen_sauer.gwt.log.shared.LogRecord:
public class LogRecord implements IsSerializable, Serializable {
Original issue reported on code.google.com by
[email protected]
on 8 Mar 2012 at 11:49The text was updated successfully, but these errors were encountered: