Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8054039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:03:05+00:00 2026-06-05T08:03:05+00:00

I am trying to write a server-side component of a GWT application which should

  • 0

I am trying to write a server-side component of a GWT application which should pull an XML file every 3 minutes and keep a Hashtable up to date after parsing the XML.

After some research, I set up the thread using ScheduledThreadPoolExecutor

stationParser = new TFLStationsParserThread(bikeStations);
scheduler.scheduleWithFixedDelay(stationParser, 2, 180, SECONDS);

The TFLStationsParserThread has a minimal constructor, and this run() method

public void run() {
    System.out.println("TFLStationsParserThread run()");
    stationParser.refreshStationData(stations);
}

The stationParser eventually gets the data with the following command

HTTPResponse response = URLFetchServiceFactory.getURLFetchService().fetch(request);

Here is my problem: When this .fetch() is run from within a ScheduledThreadPoolExecutor I get the following error

com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'urlfetch' or call 'Fetch()' was not found.
    at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:98)
    at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:37)
    at couk.mtaylor.bikes.server.TFLStationsParser.refreshStationData(TFLStationsParser.java:66)
    at couk.mtaylor.bikes.server.TFLStationsParserThread.run(TFLStationsParserThread.java:35)
    ...

If I comment out the scheduleWithFixedDelay scheduler and call refreshStationData directly then I get no such issue.

This leads me to believe that the thread is missing some required GWT libraries, but this is beyond my knowledge and I cannot find any solutions online that are helping.

Why would I be getting these GWT error messages from within a scheduled thread but not when I call the method directly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:03:07+00:00Added an answer on June 5, 2026 at 8:03 am

    I cannot confirm this, but I think this might be GAE’s way of telling me this is not how to do threads in GAE. The code works fine if I remove GAE from the buildpath and stop using .fetch().

    For now I’m dropping the idea of writing for GAE while I get more used to Java.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a client-server application in Java with an XML-based protocol. But
I'm trying to write some example of client-server application which uses linux messages. Here
I am trying to write server side for my web application using Node.js. The
I'm trying to write the server side of my android app that uses C2DM.
I am trying to write a server side code for sending push notifications for
I am (trying to) write a server-side daemon in c, and it accepts connections
I'm running a java application that we distribute as a server-side system. I'm trying
I am trying to write a server side script (PHP) for generating an SVG
I trying to write a client server application in Python, but I faced a
I've been trying to write a small file server. I got it to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.