athibanraj / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

ResumableGDataFileUploader fails when a spreadsheet is converted to native google format #402

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I'm using ResumableGDataFileUploader to upload some 2-5 MB XLS files, and 
convert them to native google format (convert=true in URL).

What is the expected output? What do you see instead?
Upload completes successfully (the spreadsheet is present in my documents 
list/drive) BUT ResumableGDataFileUploader fails with CLIENT ERROR. At this 
point I can't retrieve the newly created DocumentListEntry as 
getResponse(DocumentListEntry.class) throws a NullPointer exception:
 java.lang.NullPointerException                                                                                     
         at java.lang.Throwable.<init>(Throwable.java:181)                                                          
         at java.lang.Exception.<init>(Exception.java:29)                                                           
         at java.lang.RuntimeException.<init>(RuntimeException.java:32)                                             
         at java.lang.NullPointerException.<init>(NullPointerException.java:36)                                     
         at com.google.gdata.client.media.ResumableGDataFileUploader.getResponse(ResumableGDataFileUploader.java:92)

Looks like it has something to do with the time it takes Google to convert the 
XLS to native format after upload is complete. Without conversion, I have no 
problems with this class.

What version of the product are you using? On what operating system?
jars in gdata-samples.java-1.47.1.zip

Please provide any additional information below.

Original issue reported on code.google.com by asbole on 5 Sep 2012 at 2:30