In Eclipse 3.6 with Plugin v1.4.0 AppEngine 1.3.8 GWT 2.1.0

To reproduce:

Create a new GWT and AppEngine project (I called the package "test2"
below)

Add the following to GreetingServiceImpl greetServer() method before
the return line:

final Queue queue = QueueFactory.getDefaultQueue();
queue.add(TaskOptions.Builder.url("/taskrunner").param("id",
UUID.randomUUID().toString()));


Create a class in the server package "TaskRunner" with the following:

public class TaskRunner extends HttpServlet {

        @Override
        public void doGet(final HttpServletRequest req, final
HttpServletResponse resp) throws IOException {
        }

        @Override
        public void doPost(final HttpServletRequest req, final
HttpServletResponse resp) throws ServletException, IOException {
        }

}



Add the following to web.xml

  <servlet>
    <servlet-name>taskRunner</servlet-name>
    <servlet-class>test2.server.TaskRunner</servlet-class>
  </servlet>
  <servlet-mapping>
    <servlet-name>taskRunner</servlet-name>
    <url-pattern>/taskrunner</url-pattern>
  </servlet-mapping>



Run the project and click the GWT button. After about 10 seconds you
will get the following exception on the console:






[ERROR] Job default.task1 threw an unhandled Exception:
com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2: Received exception executing http method POST
against URL http://0.0.0.0:8888/taskrunner: No route to host: connect
        at
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:
239)
        at com.google.appengine.api.labs.taskqueue.dev.LocalTaskQueue
$UrlFetchServiceLocalTaskQueueCallback.execute(LocalTaskQueue.java:
471)
        at
com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:
77)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at org.quartz.simpl.SimpleThreadPool
$WorkerThread.run(SimpleThreadPool.java:520)
[ERROR] Job (default.task1 threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See
nested exception: com.google.apphosting.api.ApiProxy
$ApplicationException: ApplicationError: 2: Received exception
executing http method POST against URL http://0.0.0.0:8888/taskrunner:
No route to host: connect]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
        at org.quartz.simpl.SimpleThreadPool
$WorkerThread.run(SimpleThreadPool.java:520)
* Nested Exception (Underlying Cause) ---------------
com.google.apphosting.api.ApiProxy$ApplicationException:
ApplicationError: 2: Received exception executing http method POST
against URL http://0.0.0.0:8888/taskrunner: No route to host: connect
        at
com.google.appengine.api.urlfetch.dev.LocalURLFetchService.fetch(LocalURLFetchService.java:
239)
        at com.google.appengine.api.labs.taskqueue.dev.LocalTaskQueue
$UrlFetchServiceLocalTaskQueueCallback.execute(LocalTaskQueue.java:
471)
        at
com.google.appengine.api.labs.taskqueue.dev.UrlFetchJob.execute(UrlFetchJob.java:
77)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
        at org.quartz.simpl.SimpleThreadPool
$WorkerThread.run(SimpleThreadPool.java:520)






This used to work. Please can someone advise a fix as its cost me 2
days.

Thanks!

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

Reply via email to