AppEngine上的连接超时错误 [英] Appengine connection time out error

查看:1716
本文介绍了AppEngine上的连接超时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用java.It一直很好。但现在来创建应用程序引擎模块,它突然开始显示错误

I have been trying to create app engine module using java.It has been working well .But now it suddenly start to show error

Error:Execution failed for task ':backend:appengineEndpointsGetClientLibs'.There was an error running endpoints command get-client-lib: connect timed out 

我的堆栈跟踪

My stack trace is

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':backend:appengineEndpointsGetClientLibs'.
> There was an error running endpoints command get-client-lib: connect timed out

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':backend:appengineEndpointsGetClientLibs'.
    at    org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)

Caused by: org.gradle.api.GradleException: There was an error running endpoints command get-client-lib: connect timed out
    at com.google.appengine.task.endpoints.EndpointsTask.runEndpointsCommand(EndpointsTask.groovy:52)
    at com.google.appengine.task.endpoints.EndpointsTask$runEndpointsCommand.callCurrent(Unknown Source)

... 55 more
Caused by: java.net.SocketTimeoutException: connect timed out
    at com.google.appengine.repackaged.com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)
    at com.google.appengine.repackaged.com.google.api.client.http.HttpRequest.execute(HttpRequest.java:972)
    at com.google.api.server.spi.tools.CloudDiscoveryDocGenerator.postRequest(CloudDiscoveryDocGenerator.java:75)
... 66 more

我的web.xml文件

my web.xml file is

<?xml version="1.0" encoding="utf-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5">
<filter>
    <filter-name> ObjectifyFilter</filter-name>
    <filter-class>com.googlecode.objectify.ObjectifyFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>ObjectifyFilter</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
    <servlet-name>SystemServiceServlet</servlet-name>
    <servlet-class>com.google.api.server.spi.SystemServiceServlet</servlet-class>
    <init-param>
        <param-name>services</param-name>
        <param-value>com.example.user.childtracker.backend.RegistrationEndpoint, com.example.user.childtracker.backend.MessagingEndpoint</param-value>
    </init-param>
</servlet>
<servlet-mapping>
    <servlet-name>SystemServiceServlet</servlet-name>
    <url-pattern>/_ah/spi/*</url-pattern>
</servlet-mapping>

<welcome-file-list>
    <welcome-file>index.html</welcome-file>
</welcome-file-list>

我也试图创造新的应用程序引擎的项目它仍然显示error.Apps没有应用程序引擎工作正常。 有人帮助。

i have also tried to create new appengine project it still shows error.Apps without appengine works ok. Some one help.

推荐答案

但问题是防火墙拦截工作室更新新library.When我禁用防火墙,它工作正常。

The problem was firewall blocking studio to update new library.When I disable firewall it works fine.

这篇关于AppEngine上的连接超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆