mrmohamed / gdocbackup

Automatically exported from code.google.com/p/gdocbackup
0 stars 0 forks source link

cmd line error "Object reference not set to an instance of an object" #53

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[From a user]

Username:     [hidden]
Password:     [hidden]
DestDir:      /google
Document:     pdf
Spreadsheet:  csv
Presentation: ppt
Drawing:      pdf
DownloadAll:
----------------------------------------
LOG> 000 : ************************************************************
LOG> 000 : ****** START BACKUP PROCESS ******
LOG> 000 : GDocBackupLib - ver. 0.4.34.134
LOG> 000 : Setup connection & get doc list
LOG> 000 : GLOBAL-ERROR:  Object reference not set to an instance of an object

Original issue reported on code.google.com by fht...@gmail.com on 11 May 2011 at 6:03

GoogleCodeExporter commented 9 years ago
I see this on Mono 2.8.2 in openSUSE 11.4.

Original comment by davidmmu...@gmail.com on 12 May 2011 at 4:57

GoogleCodeExporter commented 9 years ago
5/12/2011 10:58:28 AM - 000 > 
************************************************************
5/12/2011 10:58:28 AM - 000 > ****** START BACKUP PROCESS ******
5/12/2011 10:58:28 AM - 000 > GDocBackupLib - ver. 0.4.34.134
5/12/2011 10:58:28 AM - 000 > Setup connection & get doc list
5/12/2011 10:58:28 AM - 000 > GLOBAL-ERROR:  Object reference not set to an 
instance of an object
5/12/2011 10:58:28 AM - -001 > ############### EXCEPTION ###############
5/12/2011 10:58:28 AM - -001 > System.NullReferenceException: Object reference 
not set to an instance of an object
  at Google.GData.Client.GDataGAuthRequest.Execute (Int32 retryCounter) [0x00000] in <filename unknown>:0 
  at Google.GData.Client.GDataGAuthRequest.Execute () [0x00000] in <filename unknown>:0 
  at Google.GData.Client.Service.Query (System.Uri queryUri, DateTime ifModifiedSince, System.String etag, System.Int64& contentLength) [0x00000] in <filename unknown>:0 
5/12/2011 10:58:28 AM - -001 > #########################################

Original comment by davidmmu...@gmail.com on 12 May 2011 at 5:00

GoogleCodeExporter commented 9 years ago
I've reproduce the issue on my OpenSuse + Mono. It's noa GDocBackup bug.

The exception you see is not the right one. The Google Lib has a bug: it throws 
a System.NullReferenceException but the real exception is another.  (I've 
opened an issue for this google lib bug 
http://code.google.com/p/google-gdata/issues/detail?id=502 ).

The real exception is: 
Google.GData.Client.GDataRequestException: Execution of request failed: 
https://docs.google.com/feeds/default/private/full?max-results=100&showfolders=t
rue 
---> System.Net.WebException: Error getting response stream (Write): 
SendFailure 
---> System.IO.IOException: The authentication or decryption has failed. 
---> Mono.Security.Protocol.Tls.TlsException: Invalid certificate received from 
server.

Reason: Mono/Linux does not trust the Google https certifates. Two workaround:
 - FAQ #5 at http://gs.fhtino.it/gdocbackup/faq   (not tested)
 - add the option -bypassHttpsCertChecks at the command line  (this works fine)

Original comment by fht...@gmail.com on 14 May 2011 at 12:35

GoogleCodeExporter commented 9 years ago
I will release a new BETA when the bug will be fixed.
http://code.google.com/p/gdocbackup/issues/detail?id=54

Original comment by fht...@gmail.com on 14 May 2011 at 12:39