dkuspawono / google-plugin-for-eclipse

Automatically exported from code.google.com/p/google-plugin-for-eclipse
Eclipse Public License 1.0
0 stars 0 forks source link

SocketTimeout too early while storing project in Drive #325

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I've had this error several times now in the past week or so.

I'm using a Google Apps Script project. I've pressed Ctrl+S to save the current 
file (though this can also happen when I save multiple files at the same time 
pressing Ctrl+Shift+S) and after a few seconds, I get the exception below in 
the error log.

I go immediately to the web-based Apps script ide and I can see the files are 
updated in there with the latest version - the save clearly worked - but you 
have to check it to be sure just in case.

This error doesn't happen often, but enough to be annoying as you have to guess 
which files you changed in eclipse and then make a change to each and then 
re-save them, or goto the web ide and manually eyeball each file you think has 
changed for the changes you think you made and verify if you need to save them 
again.

So it looks like the timeout in eclipse is too short and needs to wait a bit 
longer before assuming the failure.

com.google.gdt.eclipse.drive.driveapi.DriveWritingException: Server error while 
storing project in Drive.
    at com.google.gdt.eclipse.drive.driveapi.DriveServiceFacade.writeProject(DriveServiceFacade.java:222)
    at com.google.gdt.eclipse.drive.DriveEclipseProjectMediator.performDriveUpdate(DriveEclipseProjectMediator.java:446)
    at com.google.gdt.eclipse.drive.DriveEclipseProjectMediator$2.run(DriveEclipseProjectMediator.java:406)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.read(SocketInputStream.java:152)
    at java.net.SocketInputStream.read(SocketInputStream.java:122)
    at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
    at sun.security.ssl.InputRecord.read(InputRecord.java:480)
    at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934)
    at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:891)
    at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1324)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
    at com.google.api.client.http.javanet.NetHttpResponse.<init>(NetHttpResponse.java:37)
    at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:94)
    at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:964)
    at com.google.api.client.googleapis.media.MediaHttpUploader.executeCurrentRequest(MediaHttpUploader.java:559)
    at com.google.api.client.googleapis.media.MediaHttpUploader.resumableUpload(MediaHttpUploader.java:434)
    at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:345)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:418)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
    at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
    at com.google.gdt.eclipse.drive.driveapi.DriveServiceFacade.writeProject(DriveServiceFacade.java:219)
    ... 5 more

Using:
jdk1.7.0_75
Eclipse IDE for Java Developers 2.0.1.20130919-0803
Google Plugin for Eclipse 4.3   3.8.0.v201410302155-rel-r43

Original issue reported on code.google.com by appsscr...@howardb.com on 30 Jan 2015 at 2:22

GoogleCodeExporter commented 8 years ago
same thing

Original comment by salim.be...@gmail.com on 10 Feb 2015 at 10:58