简体   繁体   English

java.net.SocketTimeoutException:在Google App Engine上部署应用程序时读取超时异常

[英]java.net.SocketTimeoutException: Read timed out exception while deploying app on Google App Engine

I have made sample Guestbook application and i want to deploy that application on GAE but when i try to deploy it, it shows following exception : 我已经制作了示例Guestbook应用程序,并且想要在GAE上部署该应用程序,但是当我尝试部署它时,它显示以下异常:

    Unable to update:
java.net.SocketTimeoutException: Read timed out
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:285)
    at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:253)
    at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:232)
    at com.google.appengine.tools.admin.ResourceLimits.remoteRequest(ResourceLimits.java:171)
    at com.google.appengine.tools.admin.ResourceLimits.request(ResourceLimits.java:138)
    at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:440)
    at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:55)
    at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:433)
    at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:158)
    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at sun.security.ssl.InputRecord.readFully(Unknown Source)
    at sun.security.ssl.InputRecord.read(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
    at sun.security.ssl.AppInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.fill(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at com.google.appengine.tools.admin.AbstractServerConnection.connect(AbstractServerConnection.java:133)
    at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:283)
    ... 10 more

What could be the cause of it? 可能是什么原因造成的? Please help me solve this problem. 请帮我解决这个问题。 Thank you. 谢谢。

I've got such an error after Eclipse had been updated from 4.4 to 4.4.1. 在Eclipse从4.4更新到4.4.1之后,出现了这样的错误。 All plugins were lost, I reinstalled them, then the problem occurred. 所有的插件都丢失了,我重新安装了它们,然后出现了问题。 I have tried: 我努力了:

  1. Close-open Eclipse 封闭式Eclipse
  2. Sign out - sign in into my proper Google account 退出-登录到我正确的Google帐户
  3. Reinstall Google plugin 重新安装Google插件
  4. Wait for a few hours... 等几个小时...

Nothing was helpful. 没有任何帮助。 While my Eclipse 4.4.1 has an Internet connection. 虽然我的Eclipse 4.4.1具有Internet连接。

The only working solution for me was to use command-line tool appcfg 我唯一可行的解决方案是使用命令行工具appcfg

I solved the issue by signing out of google (bottom right in eclipse) and signing back again. 我通过退出google(Eclipse右下角)并再次登录解决了该问题。

I hope it helps some one ... 希望对您有所帮助...

This should be account which you use to publish to GAE 这应该是您用来发布到GAE的帐户

I was just having that issue. 我只是遇到那个问题。 If I leave a socket open on my laptop without it being plugged in the default power savings will kick in and the socket will be closed. 如果我在笔记本电脑上未打开插座的情况下将其打开,则默认情况下会节省电源并关闭该插座。 If I leave it plugged in I do not have that issue. 如果我将其插入,则不会出现该问题。

我也遇到了这个问题,重新启动Eclipse解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 异常java.net.SocketTimeoutException:读取超时 - Exception java.net.SocketTimeoutException: Read timed out Google Maps和java.net.SocketTimeoutException:读取超时 - Google Maps and java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException:读取超时 - java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException:读取超时 - java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException:在下载谷歌电子表格时读取超时 - java.net.SocketTimeoutException: Read timed out while downloading google spreadsheet Java异常java.net.SocketTimeoutException:连接超时 - Java exception java.net.SocketTimeoutException: connect timed out Java 套接字异常:java.net.SocketTimeoutException:接受超时 - Java Socket Exception : java.net.SocketTimeoutException: Accept timed out 从 Zookeeper 获取错误 意外异常导致关闭而 sock 仍然打开 java.net.SocketTimeoutException:读取超时 - Getting error from Zookeeper Unexpected exception causing shutdown while sock still open java.net.SocketTimeoutException: Read timed out Java套接字:java.net.SocketTimeoutException:读取超时 - Java Socket : java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException:查询url时读取超时 - java.net.SocketTimeoutException: Read timed out when querying url
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM