getting strange exception trying to implement asynchronous http in google app engine for java

后端 未结 3 845
粉色の甜心
粉色の甜心 2020-12-18 01:57

I\'m trying to implement async http in java. Here is the important part of the code:

for (String urlString : urls) 
{ 
    // TODO: try and get rid of the         


        
3条回答
  •  天命终不由人
    2020-12-18 02:17

    With Google appengine, you cannot use those api's in the local java applications. This will work only when you develop and deploy web application using google appengine sdk. This is designed to work this way only.

    When you use this api, it will make use of http client and in case of app engine environment, it will make use of google infrastructure. If you still want to unit test the application designed for google appengine you might consider using LocalURLServiceFactory.

提交回复
热议问题