我對Google App Engine(GAE)和Glassware開發(對於Google Glass)非常陌生。找不到API包'urlfetch'或調用'Fetch()'
我配置mirror-quickstart-java項目上Netbeans
和Apache tomcat
也是我成功地運行該項目,但我未來有麻煩。
我的要求是,我不想使用谷歌應用程序引擎來開發自己的Glassware,因爲我想使用很少的第三方API。此外,應用引擎不支持javax.imageio
和BufferedImage
apis。
我有以下幾點問題
- 是否是強制性使用谷歌
app-engine
爲鏡快速入門的Java /玻璃器皿發展? - 如果不是,在交換訪問令牌時出現「允許訪問」步驟後出現以下錯誤。
message The API package 'urlfetch' or call 'Fetch()' was not found.
description The server encountered an internal error that prevented it from fulfilling this request.
com.google.apphosting.api.ApiProxy$CallNotFoundException: The API package 'urlfetch' or call 'Fetch()' was not found.
com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:100)
com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java:38)
com.google.api.client.extensions.appengine.http.UrlFetchRequest.execute(UrlFetchRequest.java:75)
com.google.api.client.http.HttpRequest.execute(HttpRequest.java:980)
com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:299)
com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest.execute(GoogleAuthorizationCodeTokenRequest.java:175)
com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeTokenRequest.execute(GoogleAuthorizationCodeTokenRequest.java:78)
com.google.glassware.AuthServlet.doGet(AuthServlet.java:56)
javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)