When running (embedded) GAE via appengine-tools-api API

         DevAppServerFactory factory = new DevAppServerFactory();
         server = factory.createDevAppServer(appLocation,
containerConfig.getBindAddress(), containerConfig.getBindHttpPort());
         Map properties = System.getProperties();
         //noinspection unchecked
         server.setServiceProperties(properties);
         server.start();

I get a known error, although I don't understand the reason behind it.

Running this test code

      URL url = new URL("http://localhost:8080/test";);
      URLConnection conn = url.openConnection();
      conn.setDoOutput(true);
      conn.setDoInput(true);
      OutputStream out = conn.getOutputStream();
      FooBar ping = new FooBar();
      out.write(SerializationFactory.serialize(ping));
      out.flush();
      out.close();
      InputStream in = conn.getInputStream(); // <-- ERROR

produces

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:95)
        at
com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:
34)
        at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.fetchResponse(URLFetchServiceStreamHandler.java:404)
        at
com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
$Connection.getInputStream(URLFetchServiceStreamHandler.java:283)

I found this old post, but I don't see how to enable this to fix my
problem.
e.g. when, how, where to setup this, ...

*
http://groups.google.com/group/google-appengine-java/browse_thread/thread/9512c09af2e969bc/e55ed5e2456865b9?lnk=gst&q=%27urlfetch%27+or+call+%27Fetch%28%29%27+was+not+found#e55ed5e2456865b9

Any idea what can be done to make this exception go away? :-)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-appengine-java?hl=en.

Reply via email to