Version of OOo2GD: 2.3.1 Version of Java: 1.6.0_24-b07 Operating System: Windows 7 Home Premium Version of OO.org: 3.3.1 Is OO.org using Sun Java?: Yes
What steps will reproduce the problem? 1. Open a document in .odt format 2. Click on upload, with correct username and password 3. You will get the error "Could not convert document."
What is the expected output? What do you see instead? Expect document to be uploaded successfully. Instead, a dialog box appear with error "Could not convert document."
Please provide any additional information below.
From error log:
com.google.gdata.util.InvalidEntryException: Could not convert document. <errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</domain><code>InvalidEntryException</code><internalReason>Could not convert document.</internalReason></error></errors>
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:558)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:536)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:515)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515)
at com.google.gdata.client.media.MediaService.insert(MediaService.java:390)
at org.openoffice.gdocs.util.GoogleDocsWrapper.uploadFile(GoogleDocsWrapper.java:170)
at org.openoffice.gdocs.util.GoogleDocsWrapper.upload(GoogleDocsWrapper.java:114)
at org.openoffice.gdocs.ui.dialogs.UploadDialog$9.run(UploadDialog.java:499)
at java.lang.Thread.run(Unknown Source)
Comment #1
Posted on May 9, 2011 by Helpful BirdSame problem but with normal .xls files. Some of them work some not. (system: windows 2003 server R2)
Comment #2
Posted on May 9, 2011 by Massive RabbitCan anybody attach to this issue at least one xls which cannot be uploaded? Please without any confidential data :-)
Comment #3
Posted on May 9, 2011 by Helpful Birdcan I email it to you?
Comment #4
Posted on May 9, 2011 by Massive RabbitOf course, you may find my e-mail on http://www.przemelek.pl/kontakt
Comment #5
Posted on Jun 8, 2011 by Massive CamelHi,
I am running into the same issue.
I have a script (python) that uploads files to Google Docs. After going through these errors a few times, I have set it in a loop so that if it fails to upload the file, then it retries ... 3 times.
The interesting thing is that I am uploading all files as binary files (no conversion), and Google will give me an InvalidEntryException error "Could not convert document." Why is is even trying to convert? I have the parameter set convert=false parameter.
The log files show that if it fails in the first attempt, then the same file may get uploaded in the second or third attempt (some of them fail even after 3 tries). Those that fail, if I upload them separately, then they get uploaded just fine.
For example this is a portion of the log file (I have changed some dir/file names):
2011-06-07 17:26:13,657 5832 / Thread4 - File_Uploads DEBUG Uploading file d:\sh2\Marie\HR\Corporate EEs\somedir\somefilename.tif bytes: 0-110947/110948
2011-06-07 17:26:28,717 5832 / Thread4 - File_Uploads INFO Server responded with: 400, http://schemas.google.com/g/2005'>GDataInvalidEntryException
Could not convert document.
2011-06-07 17:26:28,719 5832 / Thread4 - File_Uploads ERROR Server responded with: 400, http://schemas.google.com/g/2005'>GDataInvalidEntryException
Could not convert document.
Traceback (most recent call last):
File "main.py", line 743, in vUploadDoc
entry1 = uploader.UploadChunk(start_byte, uploader.file_handle.read(uploader.chunk_size))
File "C:\Python27\lib\site-packages\gdata\client.py", line 993, in upload_chunk
raise error
RequestError: Server responded with: 400, http://schemas.google.com/g/2005'>GDataInvalidEntryException
Could not convert document.
I see these kinds of errors in .doc files, .xls files, .tif files, .gif files, .htm files, .js files ...
Why would it even try to convert a .tif or a .gif file? And yes, I am setting the correct "DocType" image/gif or image/tif (or tiff) ...
Someone please fix this nightmare.
Ss
Comment #6
Posted on Jun 8, 2011 by Massive Camelhere's some more ...
I had the program running with 6 threads.
And I had set httplib in the debug mode (so that I can see everything on stdout).
Any ways, where I get an "InvalidEntryException" in one thread and look at the log, I have 6 consecutive errors .... most likely an error in all 6 threads at the same time (when I look at the individual thread log files, I see errors in 4 out of 6 of them at around the same time (2011-06-08 00:53:33,805) ... all the errors are around 00:53:33 - 00:53:35. Since things run so fast it is difficult to correlate these without more debugging ... but I am pretty sure that its the same errors.
reply: 'HTTP/1.1 400 Bad Request\r\n' header: Server: Upload Server Built on Jun 6 2011 12:48:11 (1307389691) header: Content-Type: application/vnd.google.gdata.error+xml header: Date: Wed, 08 Jun 2011 07:53:24 GMT header: Pragma: no-cache header: Expires: Fri, 01 Jan 1990 00:00:00 GMT header: Cache-Control: no-cache, no-store, must-revalidate header: Content-Length: 189 reply: 'HTTP/1.1 503 Service Unavailable\r\n' header: Content-Type: application/vnd.google.gdata.error+xml header: Date: Wed, 08 Jun 2011 07:53:30 GMT header: Expires: Wed, 08 Jun 2011 07:53:30 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Server: GSE header: Transfer-Encoding: chunked reply: 'HTTP/1.1 400 Bad Request\r\n' header: Server: Upload Server Built on Jun 6 2011 12:48:11 (1307389691) header: Content-Type: application/vnd.google.gdata.error+xml header: Date: Wed, 08 Jun 2011 07:53:31 GMT header: Pragma: no-cache header: Expires: Fri, 01 Jan 1990 00:00:00 GMT header: Cache-Control: no-cache, no-store, must-revalidate header: Content-Length: 189 reply: 'HTTP/1.1 503 Service Unavailable\r\n' header: Content-Type: application/vnd.google.gdata.error+xml header: Date: Wed, 08 Jun 2011 07:53:33 GMT header: Expires: Wed, 08 Jun 2011 07:53:33 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Server: GSE header: Transfer-Encoding: chunked reply: 'HTTP/1.1 503 Service Unavailable\r\n' header: Content-Type: application/vnd.google.gdata.error+xml header: Date: Wed, 08 Jun 2011 07:53:34 GMT header: Expires: Wed, 08 Jun 2011 07:53:34 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Server: GSE header: Transfer-Encoding: chunked reply: 'HTTP/1.1 503 Service Unavailable\r\n' header: Content-Type: application/vnd.google.gdata.error+xml header: Date: Wed, 08 Jun 2011 07:53:34 GMT header: Expires: Wed, 08 Jun 2011 07:53:34 GMT header: Cache-Control: private, max-age=0 header: X-Content-Type-Options: nosniff header: X-Frame-Options: SAMEORIGIN header: X-XSS-Protection: 1; mode=block header: Server: GSE header: Transfer-Encoding: chunked
If I am to guess, then all 6 threads are connected to the same instance of an "upload server" (one of the header lines that comes back is "header: Server: Upload Server Built on Jun 6 2011 12:48:11 (1307389691)" ). If that instance goes down, or has an error, then all threads connected to that get an error, and they have to restart.
Interestingly enough, the thread that got the error "InvalidEntryException", when it sent the request to create that file (i.e. the 'Entry' was sent), the server responded with 'HTTP OK', and the logs show that the data to upload was also sent. When the instance goes down, I get a "HTTP/1.1 400 Bad Request" 'after' the data was sent ... implying that there was nothing wrong with the 'Entry' per se.
Ss
Comment #7
Posted on Jun 8, 2011 by Massive RabbitOK, but what those 2 last comments have common with OOo2GD? Problems with OOo2GD was caused by this that Google Docs wasn't able to convert documents into its internal format. If XLS was sent as ODS it worked in most cases.
Comment #8
Posted on Jun 21, 2011 by Massive CamelOK - my apologies for posting that in the OOo2GD forum.
Ss
Status: Invalid
Labels:
Type-Defect
Priority-Medium