As you can see I can reach the server from my client but the server does 
not show the correct log.


Am Donnerstag, 3. April 2014 20:26:45 UTC+2 schrieb confile:
>
> I used this configuration:
>
> <set-configuration-property name="log_url" value="
> http://192.168.178.26:8080/mobilePhoneGapIOS/gwt-log"; />
> and I get the following error. Any idea how to solve it?
>
>
>   [WARN] GWT-Log-remote-logger-Servlet: An 
> IncompatibleRemoteServiceException was thrown while processing this call.
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: 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.
> at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:323)
> at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:263)
> at 
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:305)
> at 
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
> at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)
> at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)
> at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)
> at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)
> at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at 
> org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:68)
> at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:370)
> at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at 
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)
> at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> at 
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
> at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)
> at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
> at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:722)
> 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.
> 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:676)
> at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
> at 
> com.google.gwt.user.server.rpc.core.java.util.Collection_ServerCustomFieldSerializerBase.deserialize(Collection_ServerCustomFieldSerializerBase.java:38)
> at 
> com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserialize(ArrayList_ServerCustomFieldSerializer.java:40)
> at 
> com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:54)
> at 
> com.google.gwt.user.server.rpc.core.java.util.ArrayList_ServerCustomFieldSerializer.deserializeInstance(ArrayList_ServerCustomFieldSerializer.java:33)
> at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeImpl(ServerSerializationStreamReader.java:884)
> at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:687)
> at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readObject(ServerSerializationStreamReader.java:592)
> at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader$ValueReader$8.readValue(ServerSerializationStreamReader.java:149)
> at 
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:434)
> at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:312)
> ... 30 more
>
>
>
> Am Donnerstag, 3. April 2014 20:00:17 UTC+2 schrieb Fred Sauer:
>>
>> Have you enabled the deobfuscation servlet?
>>
>> https://code.google.com/p/gwt-log/wiki/GettingStarted
>>
>>
>>
>> On Thu, Apr 3, 2014 at 10:25 AM, confile <[email protected]>wrote:
>>
>>> I use gwt-log with remote logging which works fine. My app is also 
>>> running in a PhoneGap container. 
>>>
>>> My web.xml configuration is the following: 
>>>
>>> <inherits name="com.allen_sauer.gwt.log.gwt-log-TRACE" />
>>> <inherits name="com.allen_sauer.gwt.log.gwt-log-RemoteLogger" />
>>>    <set-property name="log_DivLogger" value="DISABLED" />
>>>   <set-property name="log_FirebugLogger" value="DISABLED" />
>>>
>>> <set-property name="compiler.emulatedStack" value="true" />
>>>   <set-configuration-property 
>>> name="compiler.emulatedStack.recordLineNumbers" value="true"/>
>>>   <set-configuration-property 
>>> name="compiler.emulatedStack.recordFileNames" value="true"/>
>>>
>>>
>>> Remote logging works fine when using my app in web browser but when I 
>>> switch it to a phonegap container do not se the method names. I tried: 
>>>
>>>  Log.fatal("This is what an exception might look like", new 
>>> RuntimeException("2 + 2 = 5"));
>>>
>>>
>>> The Console output is: 
>>>
>>>
>>> 2014-04-03 19:20:41.202 Test[29194:907] ERROR: (-:-) 2014-04-03 
>>> 19:20:41,193 [FATAL] This is what an exception might look like
>>>
>>> java.lang.RuntimeException: 2 + 2 = 5
>>>
>>>     at Unknown._Jb(StackTraceCreator.java:180)
>>>
>>>     at Unknown.ixb(StackTraceCreator.java:518)
>>>
>>>     at Unknown.gxb(Throwable.java:56)
>>>
>>>     at Unknown.Bzb(Exception.java:29)
>>>
>>>     at Unknown.Ezb(RuntimeException.java:29)
>>>
>>>     at Unknown.Cc(Mobile.java:81)
>>>
>>>     at Unknown.Fc(Mobile.java:32)
>>>
>>>     at Unknown.FJb(SchedulerImpl.java:180)
>>>
>>>     at Unknown.wJb(SchedulerImpl.java:345)
>>>
>>>     at Unknown.JJb(SchedulerImpl.java:78)
>>>
>>>     at Unknown.DJb(SchedulerImpl.java:138)
>>>
>>>     at Unknown.TIb(Impl.java:290)
>>>
>>>     at Unknown.XIb(Impl.java:347)
>>>
>>>     at Unknown.anonymous(Impl.java:93)
>>>
>>>     at Unknown.anonymous(UnloadSupport.java:42)
>>>
>>>
>>>
>>> Somehow stacktrace deobfuscation does not run correctly. 
>>>
>>>
>>> *Does anyone has an idea how to fix it?*
>>>  
>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "gwt-log" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/gwt-log.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> -- 
>> Fred Sauer
>> [email protected] 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"gwt-log" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/gwt-log.
For more options, visit https://groups.google.com/d/optout.

Reply via email to