无法连接到localhost Google App Engine

时间:2017-08-12 00:59:40

标签: java eclipse maven google-app-engine google-cloud-endpoints

我最近在Google App Engine上从Google Cloud Endpoints v1升级到v2。在更新之前,我的Android模拟器可以连接到GAE的localhost实例(与Eclipse一起运行),但是现在当我尝试访问本地URL时会显示此错误。有人可以建议吗?

HTTP ERROR 500

Problem accessing /_ah/api/. Reason:

    Failed to retrieve API configs with status: 500
Caused by:

java.io.IOException: Failed to retrieve API configs with status: 500
    at com.google.api.server.spi.tools.devserver.ApiServlet.getApiConfigSources(ApiServlet.java:104)
    at com.google.api.server.spi.tools.devserver.ApiServlet.initConfigsIfNecessary(ApiServlet.java:69)
    at com.google.api.server.spi.tools.devserver.RestApiServlet.service(RestApiServlet.java:114)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:63)

我的pom.xml已启用这两个配置,我认为这与连接到localhost有关:

<address>0.0.0.0</address>
<port>8080</port>

在Eclipse控制台中,还会产生此错误:

[INFO] GCLOUD: WARNING: /_ah/spi/BackendService.getApiConfigs
[INFO] GCLOUD: java.lang.NullPointerException
[INFO] GCLOUD:  at com.google.api.server.spi.SystemServiceServlet.execute(SystemServiceServlet.java:100)
[INFO] GCLOUD:  at com.google.api.server.spi.SystemServiceServlet.doPost(SystemServiceServlet.java:71)
[INFO] GCLOUD:  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

0 个答案:

没有答案