google-code-export / gwt-log

Automatically exported from code.google.com/p/gwt-log
1 stars 0 forks source link

Remote logger fails with gwt-2.1.0-M3: IncompatibleRemoteServiceException #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. set up a gwt project using
<inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG"/>
<inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger" />
<set-property name="log_DivLogger" value="DISABLED"/>

What is the expected output? What do you see instead?
log messages on the server side

What version of the product are you using? On what operating system?
gwt-2.1.0-M3
gwt-log-3.0.3

Please provide any additional information below.
full stack trace:
     [java] 28.09.2010 16:38:41 org.apache.catalina.core.ApplicationContext log
     [java] SEVERE: Key[type=com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl, annotation=[none]]: An IncompatibleRemoteServiceException was thrown while processing this call.
     [java] com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: 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.
     [java]     at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:308)
     [java]     at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:205)
     [java]     at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
     [java]     at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
     [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
     [java]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
     [java]     at com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:229)
     [java]     at com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:143)
     [java]     at com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:95)
     [java]     at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:62)
     [java]     at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
     [java]     at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)
     [java]     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
     [java]     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     [java]     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
     [java]     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
     [java]     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     [java]     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
     [java]     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     [java]     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
     [java]     at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
     [java]     at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
     [java]     at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
     [java]     at java.lang.Thread.run(Thread.java:619)
     [java] Caused by: com.google.gwt.user.client.rpc.SerializationException: 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.
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:575)
     [java]     at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119)
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:137)
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:384)
     [java]     at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:296)
     [java]     ... 23 more
     [java] 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.
     [java]     at com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize(LegacySerializationPolicy.java:127)
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:544)
     [java]     at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:119)
     [java]     at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.deserialize(Collection_CustomFieldSerializerBase.java:34)
     [java]     at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.deserialize(ArrayList_CustomFieldSerializer.java:32)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeWithCustomFieldDeserializer(ServerSerializationStreamReader.java:784)
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:703)
     [java]     at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:554)
     [java]     ... 27 more

Original issue reported on code.google.com by A.A.Vasi...@gmail.com on 28 Sep 2010 at 9:54

GoogleCodeExporter commented 9 years ago
sorry, I was wrong here. The war was compiled using
    <inherits name="com.allen_sauer.gwt.log.gwt-log-OFF"/>
, but gwt devmode was started using another module compiled as shown above.

When both project and devmode are compiled the same way no problem occur.

Original comment by A.A.Vasi...@gmail.com on 28 Sep 2010 at 10:08

GoogleCodeExporter commented 9 years ago

Original comment by fredsa on 28 Sep 2010 at 1:19

GoogleCodeExporter commented 9 years ago
Fixed in f4dd86b233fed1cd88718556fee3f2a45f987446

Please try the attached jar

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

Attachments: