muhammadnaveed / syncnotes2google

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

com.google.gdata.util.PreconditionFailedException: Precondition Failed #82

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The synch cancels at various appointments with following error:

com.google.gdata.util.PreconditionFailedException: Precondition Failed
Mismatch: etags = ["FE8PRA1JeCp7JGA6WhJX"], version = [63444253987]

    at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:569)
    at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
    at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:535)
    at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:514)
    at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515)
    at com.google.gdata.client.Service.update(Service.java:1463)
    at com.google.gdata.client.Service.update(Service.java:1429)
    at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
    at com.google.gdata.data.BaseEntry.update(BaseEntry.java:608)
    at com.googlecode.syncnotes2google.dao.GoogleCalendarDAO.insert(GoogleCalendarDAO.java:137)
    at com.googlecode.syncnotes2google.SyncService.insert(SyncService.java:103)
    at com.googlecode.syncnotes2google.SyncService.executeSync(SyncService.java:42)
    at com.googlecode.syncnotes2google.SyncNotes2Google.main(SyncNotes2Google.java:23)

Original issue reported on code.google.com by m.hampe...@gmail.com on 20 Jun 2011 at 11:58

GoogleCodeExporter commented 9 years ago
The problem occures when the synchronization of my android-Phone for 
Google-Calendar is active. When I deactivate the synchronization everything 
works, but this can't be the solution.

Any ideas?

Original comment by m.hampe...@gmail.com on 20 Jun 2011 at 12:20

GoogleCodeExporter commented 9 years ago
Has anyone found a tweak for the issue? any ideas?

Original comment by robert.w...@googlemail.com on 13 Sep 2011 at 5:51

GoogleCodeExporter commented 9 years ago
In my case the problem disappears after upgrading to Android 2.3.3

Original comment by m.hampe...@gmail.com on 13 Sep 2011 at 5:09

GoogleCodeExporter commented 9 years ago
I have the same issue.
But also if I switch of synchronisation with my Android phone, it does not work.
Is there any solution for that?

Original comment by jens.zi...@gmail.com on 11 Nov 2011 at 1:11

GoogleCodeExporter commented 9 years ago
My phone already runs Android 2.3.3 and weeks ago the sync worked without 
problems.
Nothing was changed and now i've got the same error...
Is there any solution?

Original comment by viktor.h...@gmail.com on 16 Jan 2012 at 5:29

GoogleCodeExporter commented 9 years ago
Edit: The batch cancels with above error after sync of the first appointment. 
Curiously this first appointment is syncronized correctly to google cal...

Original comment by viktor.h...@gmail.com on 16 Jan 2012 at 5:37

GoogleCodeExporter commented 9 years ago
Edit2: Deactivating the synchronization with my Android-Phone does not fix the 
problem.

Original comment by viktor.h...@gmail.com on 16 Jan 2012 at 5:53

GoogleCodeExporter commented 9 years ago
I have the same problem.
Are there any fixes or workarounds known?

Original comment by bauc...@googlemail.com on 15 Feb 2012 at 6:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Same for me. It always syncs first calendar entry and stops. If I execute the 
bat twice I have the first calendar entry twice. I use syncnotes2google-0.0.5.

com.google.gdata.util.PreconditionFailedException: Precondition Failed
Mismatch: etags = ["FUsCRAZBfip7JGA6WxdQ"], version = [63468111337]

at 
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataReque
st.java:569)
at 
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataR
equest.java:543)
at 
com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.jav
a:535)
at 
com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:514)
at 
com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
515)
at com.google.gdata.client.Service.update(Service.java:1463)
at com.google.gdata.client.Service.update(Service.java:1429)
at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
at com.google.gdata.data.BaseEntry.update(BaseEntry.java:608)
at 
com.googlecode.syncnotes2google.dao.GoogleCalendarDAO.insert(GoogleCalendarDAO.j
ava:137)
at com.googlecode.syncnotes2google.SyncService.insert(SyncService.java:103)
at com.googlecode.syncnotes2google.SyncService.executeSync(SyncService.java:42)
at 
com.googlecode.syncnotes2google.SyncNotes2Google.main(SyncNotes2Google.java:23)

Original comment by todesbak...@gmail.com on 22 Mar 2012 at 3:00

GoogleCodeExporter commented 9 years ago
I am experiencing the same issue - only just started happening

Original comment by richnwil...@gmail.com on 19 Apr 2012 at 9:23

GoogleCodeExporter commented 9 years ago
Sorry, meant to add it fails on the first calendar entry, but it creates all 
the entries in my google calendar - I just get lots of duplicates. As a test, I 
removed the google calendar, re-added and removed the two files from the 
.syncnotes2google directory in my Windows users directory. When I repeated the 
test, I get the same failure, duplicate entries in the calendar and only the 
IDTable file is created. Not sure if this helps, but wanted to share

Original comment by richnwil...@gmail.com on 19 Apr 2012 at 9:29

GoogleCodeExporter commented 9 years ago
Have the same issue, with the first entry. Only the first calendar entry is 
synchronized, then this "PreconditionFailedExecption" raises, and program 
stopped. 
Unfortunately until now no solution for this error, looks like that there is no 
longer support on this tool. 
have to de-install it. 

Original comment by fairpayc...@gmail.com on 4 Sep 2012 at 12:01

GoogleCodeExporter commented 9 years ago
I am also having this problem at work
I am working behind a proxy, and the first entry is added successfully, but 
then the process fails with the following:

com.google.gdata.util.PreconditionFailedException: Precondition Failed 
Mismatch: etags = ["FUsCRAZBfip7JGA6WxdQ"], version = [63483641962]
        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:569)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGData
Request.java:535)
        at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataReques
t.java:514)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRe
quest.java:515)
        at com.google.gdata.client.Service.update(Service.java:1463)
        at com.google.gdata.client.Service.update(Service.java:1429)
        at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
        at com.google.gdata.data.BaseEntry.update(BaseEntry.java:608)
        at com.googlecode.syncnotes2google.dao.GoogleCalendarDAO.insert(GoogleCalendarDAO.java:137)
        at com.googlecode.syncnotes2google.SyncService.insert(SyncService.java:103)
        at com.googlecode.syncnotes2google.SyncService.executeSync(SyncService.java:42)
        at com.googlecode.syncnotes2google.SyncNotes2Google.main(SyncNotes2Google.java:23)

This is so close to working

Original comment by cmbaldw...@gmail.com on 18 Sep 2012 at 9:04

GoogleCodeExporter commented 9 years ago
I am also having this problem. I have discovered that if you write a 
non-existing calender in the sync.properties file;

# Google calendar name to sync with
google.calendar.name=fdfadaf

then all events are synced to the mail calender.

If I change to 
google.calendar.name=ThisCalendarExists

then I get the error...

The main calendar is synced on android devices, so this is probably not the 
issue.

Original comment by and...@lyhnemail.com on 2 Oct 2012 at 3:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Is this of any use?
https://developers.google.com/gdata/javadoc/com/google/gdata/util/PreconditionFa
iledException

Original comment by and...@lyhnemail.com on 3 Oct 2012 at 4:58

GoogleCodeExporter commented 9 years ago
I have come a bit closer;

If you share a calendar from another gmail account and allow editing this then 
syncing to this calendar alias will work. AFAIK it is only if you add a new 
calendar to your google account that is being synced, that this error appears.

Original comment by and...@lyhnemail.com on 3 Oct 2012 at 5:14

GoogleCodeExporter commented 9 years ago
I found another specific case : if you have a repeated event synced from
Notes to Google, then only one instance of the repeated event is changed,
you will have this error on next sync.

Original comment by joachim....@gmail.com on 4 Oct 2012 at 8:31

GoogleCodeExporter commented 9 years ago
I also have the same error, it was working well for quite some time, started 
just recently:

Calendar entry being handled ...
ID             : AF9F27F669740439C1257B940025D49E
Title          : xxx
Content        : xxx
startDateTime  : 25.06.13 14:30 Uhr MESZ
endDateTime    : 25.06.13 15:30 Uhr MESZ
location       : xxx
lastupdated    : 24.06.13 10:13 Uhr MESZ
apptype        : 3
frequency      : 0
interval       : 0

com.google.gdata.util.PreconditionFailedException: Precondition Failed
Mismatch: etags = ["FUsCRAZBfip7JGA6WxdQ"], version = [63508607612]

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:569)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:535)
        at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:514)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515)
        at com.google.gdata.client.Service.update(Service.java:1463)
        at com.google.gdata.client.Service.update(Service.java:1429)
        at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
        at com.google.gdata.data.BaseEntry.update(BaseEntry.java:608)
        at com.googlecode.syncnotes2google.dao.GoogleCalendarDAO.insert(GoogleCalendarDAO.java:137)
        at com.googlecode.syncnotes2google.SyncService.insert(SyncService.java:103)
        at com.googlecode.syncnotes2google.SyncService.executeSync(SyncService.java:42)
        at com.googlecode.syncnotes2google.SyncNotes2Google.main(SyncNotes2Google.java:23)

Original comment by mzu...@gmail.com on 4 Jul 2013 at 7:58

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
So no, update?  Guess open source is not all its cracked up to be. It looks to 
only happen on meetings that are reoccuring

executing insert: xxxx Backup Daily Service Review   xxx-xxx-xxxx xxxxx   
https://www.teleconference.att.com/xxxxxxxxxxxxxxxx
Calendar entry being handled ...
ID             : 636DF9AC498ACA9686257D7200770FA4
Title          : xxxx Backup Daily Service Review   xxx-xxx-xxxx xxxxx  
https://www.teleconference.att.com/xxxxxxxxxxxxxxx
Content        : xxx-xxx-xxxx xxxxx

ATT web conf
https://www.teleconference.att.com/xxxxxxxxxxxxxxxxxxxxxxxxxx

8885674484   1858509
startDateTime  : 10/23/14 11:00:00 AM CDT
endDateTime    : 10/23/14 12:00:00 PM CDT
location       : xxx-xxx-xxx
lastupdated    : 10/27/14 8:00:01 AM CDT
apptype        : 3
frequency      : 0
interval       : 0

com.google.gdata.util.PreconditionFailedException: Precondition Failed
Mismatch: etags = ["FUsCRAZBfip7JGA6WxdQ"], version = [63550877371]

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:569)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:543)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:535)
        at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:514)
        at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:515)
        at com.google.gdata.client.Service.update(Service.java:1463)
        at com.google.gdata.client.Service.update(Service.java:1429)
        at com.google.gdata.client.GoogleService.update(GoogleService.java:583)
        at com.google.gdata.data.BaseEntry.update(BaseEntry.java:608)
        at com.googlecode.syncnotes2google.dao.GoogleCalendarDAO.insert(GoogleCalendarDAO.java:137)
        at com.googlecode.syncnotes2google.SyncService.insert(SyncService.java:103)
        at com.googlecode.syncnotes2google.SyncService.executeSync(SyncService.java:42)
        at com.googlecode.syncnotes2google.SyncNotes2Google.main(SyncNotes2Google.java:23)

C:\Users\xxxxxx\Documents\Google\syncnotes2google-0.0.5>pause

Original comment by eskolnik...@gmail.com on 5 Nov 2014 at 1:42