我已经制作了示例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
可能是什么原因造成的?请帮我解决这个问题。 谢谢。
答案 0 :(得分:3)
Eclipse从4.4更新到4.4.1后,我遇到了这样的错误。所有插件都丢失了,我重新安装它们,然后问题就出现了。 我试过了:
没有什么是有用的。 虽然我的Eclipse 4.4.1有Internet连接。
对我来说唯一可行的解决方案是使用command-line tool appcfg
答案 1 :(得分:1)
我通过退出谷歌(在eclipse的右下角)并再次签名来解决这个问题。
我希望它有所帮助...
这应该是您用来发布到GAE的帐户
答案 2 :(得分:0)
我刚刚遇到这个问题。如果我在没有插入笔记本电脑的情况下在笔记本电脑上打开插座,则默认节电功能将启动并且插座将关闭。如果我把它插入,我没有那个问题。
答案 3 :(得分:0)
我也有这个问题,重启Eclipse解决了这个问题。