At 03:47 PM 10/10/2010, you wrote:
hi, i would like to add a timeout to some of my async callbacks. i am using a hacked up version of greet server. the normal code: greetingService.greetServer(id, new AsyncCallback<String>() { ... }

...
using the second (please see code below), the code: GWT.getHostPageBaseURL() + "greetingService?input=" + string);

returns: http://127.0.0.1:8888/greetingService?input=Command1

the url that the browser uses is: http://127.0.0.1:8888/Rtecg2.html?gwt.codesvr=127.0.0.1:9997

can someone tell me the correct url to use or how to fix the code to get it programatically?

i'm geting a 404, the console says: [WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes

the complete console log is below.

so i am trying to find out what the correct url is. the other normal async calls work fine, but i do not know what url that uses.

thanks

(Rtecg2.java:61) 2010-10-10 16:17:31,640 [INFO ] got wire: command0 fail!
(Rtecg2.java:103) 2010-10-10 16:17:31,640 [INFO ] http://127.0.0.1:8888/greetingService?input=command0id
[WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes
   Request headers
      Host: 127.0.0.1:8888
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
      Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
      Accept-Language: en-us,en;q=0.5
      Accept-Encoding: gzip,deflate
      Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
      Keep-Alive: 115
      Connection: keep-alive
      Content-Type: text/plain; charset=utf-8
      Referer: http://127.0.0.1:8888/rtecg2/hosted.html?rtecg2
   Response headers
      Content-Type: text/html; charset=iso-8859-1
      Content-Length: 1401
(Rtecg2.java:109) 2010-10-10 16:17:31,671 [ERROR] fail!



---
co-chair http://ocjug.org/

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

Reply via email to