Remote Logger encountered possibly transient communication failure with servlet at

94 views
Skip to first unread message

Bert

unread,
Mar 30, 2010, 10:15:50 AM3/30/10
to gwt-log
I'm unable to use logging because of this exception:

Remote Logger encountered possibly transient communication failure
with servlet at http://127.0.0.1:8080/ProjectName/ProjectName/gwt-log

com.google.gwt.user.client.rpc.StatusCodeException:
<html><head><title>Apache Tomcat/6.0.26 - Error report</
title><style><!--H1 {font-family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-
family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-
serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-
family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-
color:#525D76;} P {font-family:Tahoma,Arial,sans-
serif;background:white;color:black;font-size:12px;}A {color : black;}
A.name {color : black;}HR {color : #525D76;}--></style> </
head><body><h1>HTTP Status 404 - /ProjectName/ProjectName/gwt-log</
h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</
p><p><b>message</b> <u>/ProjectName/ProjectName/gwt-log</u></
p><p><b>description</b> <u>The requested resource (/ProjectName/
ProjectName/gwt-log) is not available.</u></p><HR size="1"
noshade="noshade"><h3>Apache Tomcat/6.0.26</h3></body></html>
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
192)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java:
1668)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
401)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Unknown Source)


My .gwt.xml properties:

<!-- Add gwt-log support, default level `DEBUG` -->
<inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG"/>
<!-- Turn on the `RemoteLogger` -->
<set-property name="log_RemoteLogger" value="ENABLED"/>
<!-- Turn off the divLogger -->
<set-property name="log_DivLogger" value="DISABLED"/>

I am using gwt 2.0.3 and gwt-log 3.0.1

Web.xml

<servlet>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<servlet-
class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
class>
</servlet>

<servlet-mapping>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<url-pattern>/ProjectName/gwt-log</url-pattern>
</servlet-mapping>

Log4j properties:

<appender name="R" class="org.apache.log4j.RollingFileAppender">
<!-- DEV -->
<param name="file" value="C:/temp.log"/>
<param name="MaxFileSize" value="2MB"/>
<param name="MaxBackupIndex" value="2"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{ISO8601} %-5p %c{2}
%x - %m%n"/>
</layout>
</appender>

<logger name="gwt-log">
<level value="debug" />
<appender-ref ref="R"/>
</logger>

Thanks in advance!

Fred Sauer

unread,
Mar 30, 2010, 4:38:43 PM3/30/10
to gwt...@googlegroups.com
It seems the configuration of your web.xml is not working w.r.t this servlet:
  /ProjectName/gwt-log

You'll want to fix this in your web server


--
You received this message because you are subscribed to the Google Groups "gwt-log" group.
To post to this group, send email to gwt...@googlegroups.com.
To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.




--
Fred Sauer
Developer Advocate
G
ooglInc.
1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.com


Bert

unread,
Mar 31, 2010, 3:44:18 AM3/31/10
to gwt-log
I'm not sure what you're getting at but when trying to access this
servlet witch is a gwt rpc service

<servlet-mapping>
<servlet-name>loginServlet</servlet-name>
<url-pattern>/ProjectName/login</url-pattern>
</servlet-mapping>

I have no problems.

this is my gwt-log set-up

<servlet>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<servlet-
class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
class>
</servlet>

<servlet-mapping>
<servlet-name>gwt-log-remote-logger-servlet</servlet-name>
<url-pattern>/ProjectName/gwt-log</url-pattern>
</servlet-mapping>

> > gwt-log+u...@googlegroups.com<gwt-log%2Bunsu...@googlegroups.com>

Fred Sauer

unread,
Mar 31, 2010, 1:37:35 PM3/31/10
to gwt...@googlegroups.com
I noticed that the error page said:
  HTTP Status 404 - /ProjectName/ProjectName/gwt-log

and not:
  HTTP Status 404 - /ProjectName/gwt-log

Could this be the cause?

To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.

Bert

unread,
Apr 1, 2010, 4:35:33 AM4/1/10
to gwt-log
Could be, but why would it route to that URL.

I've tried leaving of the /ProjectName in my web.xml, but still it
tries to go to /ProjectName/ProjectName/gwt-log.

> > <gwt-log%2Bunsu...@googlegroups.com<gwt-log%252Buns...@googlegroups.com>

Fred Sauer

unread,
Apr 1, 2010, 1:05:15 PM4/1/10
to gwt...@googlegroups.com
The default is defined on the RemoteLoggerService as follows:
  @RemoteServiceRelativePath("gwt-log")

which means your code must be running from /ProjectName/ProjectName

If you really can't fix it you can configure a specific URL via log_url, e.g.

 <set-configuration-property name="log_url" value="/ProjectName/gwt-log" />

Fred

To unsubscribe from this group, send email to gwt-log+u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/gwt-log?hl=en.

Reply all
Reply to author
Forward
0 new messages