I have (had) a similar issue.
Running CM 11-20141124-NIGHTLY-ks01lte (Galaxy S4 i9506-ks01lte) as client
ownCloud 7.0.3 as host.
This was happening also with previous nightlies, so is not related to this particular ROM version.
The contact has been created days ago, so it was trying and retrying every time.
I’ve found out the contact causing the issue, was the one just before the error in the logs.
Here’s the contact VCF (I’ve removed all the jpeg encoding and replaced data) as in logs:
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "BEGIN:VCARD[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "VERSION:3.0[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "UID:177ae5e6-ae0c-4ace-8c53-28564b0d6365[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "FN:Name Surname[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "N:Surname;Name;;;[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "TEL;TYPE=work:111[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "TEL;TYPE=work:+11 111 111 111[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "ORG:XX XXX[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "CATEGORIES:XX XXX[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "PHOTO;ENCODING=b;TYPE=jpeg:/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJ[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << " tAEsIBiBNasSjyk/3RWVB/qVrQQny15PQUAf/9k=[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "PRODID:DAVdroid/0.6.7.1 (ez-vcard/0.9.6)[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "REV:2014-11-18T14:02:13+00:00[\r][\n]"
D/ch.boye.httpclientandroidlib.wire( 7161): http-outgoing-0 << "END:VCARD[\r][\n]"
and here’s the error just after the vcard:
W/dalvikvm( 7161): VFY: unable to find class referenced in signature (Lorg/jsoup/nodes/Element;)
I/dalvikvm( 7161): Could not find method org.jsoup.nodes.Element.getElementsByTag, referenced from method ezvcard.io.scribe.SoundScribe._parseHtml
W/dalvikvm( 7161): VFY: unable to resolve virtual method 23158: Lorg/jsoup/nodes/Element;.getElementsByTag (Ljava/lang/String;)Lorg/jsoup/select/Elements;
D/dalvikvm( 7161): VFY: replacing opcode 0x6e at 0x002bI/davdroid.SyncManager( 7161): Updating 177ae5e6-ae0c-4ace-8c53-28564b0d6365.vcf
D/davdroid.LocalCollection( 7161): Committing 8 operations
W/ContactsDatabaseHelper( 1030): invalidateAllCache: [ContactsDatabaseHelper]
E/DatabaseUtils( 1030): Writing exception to parcel
E/DatabaseUtils( 1030): android.database.sqlite.SQLiteConstraintException: contacts.pinned may not be NULL (code 19)
E/DatabaseUtils( 1030): at android.database.sqlite.SQLiteConnection.nativeExecute(Native Method)
E/DatabaseUtils( 1030): at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:555)
E/DatabaseUtils( 1030): at android.database.sqlite.SQLiteSession.execute(SQLiteSession.java:619)
E/DatabaseUtils( 1030): at android.database.sqlite.SQLiteStatement.execute(SQLiteStatement.java:44)
E/DatabaseUtils( 1030): at com.android.providers.contacts.aggregation.ContactAggregator.updatePinned(ContactAggregator.java:2373)
E/DatabaseUtils( 1030): at com.android.providers.contacts.ContactsProvider2.updateRawContact(ContactsProvider2.java:4596)
E/DatabaseUtils( 1030): at com.android.providers.contacts.ContactsProvider2.updateRawContacts(ContactsProvider2.java:4504)
E/DatabaseUtils( 1030): at com.android.providers.contacts.ContactsProvider2.updateInTransaction(ContactsProvider2.java:4157)
E/DatabaseUtils( 1030): at com.android.providers.contacts.AbstractContactsProvider.update(AbstractContactsProvider.java:166)
E/DatabaseUtils( 1030): at com.android.providers.contacts.ContactsProvider2.update(ContactsProvider2.java:2320)
E/DatabaseUtils( 1030): at android.content.ContentProviderOperation.apply(ContentProviderOperation.java:225)
E/DatabaseUtils( 1030): at com.android.providers.contacts.AbstractContactsProvider.applyBatch(AbstractContactsProvider.java:237)
E/DatabaseUtils( 1030): at com.android.providers.contacts.ContactsProvider2.applyBatch(ContactsProvider2.java:2432)
E/DatabaseUtils( 1030): at android.content.ContentProvider$Transport.applyBatch(ContentProvider.java:260)
E/DatabaseUtils( 1030): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:192)
E/DatabaseUtils( 1030): at android.os.Binder.execTransact(Binder.java:404)
E/DatabaseUtils( 1030): at dalvik.system.NativeStart.run(Native Method)
D/davdroid.DavSyncAdapter( 7161): Server supports VCard version 3.0
W/dalvikvm( 7161): threadid=13: thread exiting with uncaught exception (group=0x419face0)
D/davdroid.WebDavResource( 7161): Using preemptive authentication (not compatible with Digest auth)
D/davdroid.WebDavResource( 7161): Using preemptive authentication (not compatible with Digest auth)
E/AndroidRuntime( 7161): FATAL EXCEPTION: SyncAdapterThread-1
E/AndroidRuntime( 7161): Process: at.bitfire.davdroid:sync, PID: 7161
E/AndroidRuntime( 7161): android.database.sqlite.SQLiteConstraintException: contacts.pinned may not be NULL (code 19)
E/AndroidRuntime( 7161): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:173)
E/AndroidRuntime( 7161): at android.database.DatabaseUtils.readExceptionWithOperationApplicationExceptionFromParcel(DatabaseUtils.java:160)
E/AndroidRuntime( 7161): at android.content.ContentProviderProxy.applyBatch(ContentProviderNative.java:519)
E/AndroidRuntime( 7161): at android.content.ContentProviderClient.applyBatch(ContentProviderClient.java:377)
E/AndroidRuntime( 7161): at at.bitfire.davdroid.resource.LocalCollection.commit(LocalCollection.java:311)
E/AndroidRuntime( 7161): at at.bitfire.davdroid.resource.LocalAddressBook.commit(LocalAddressBook.java:148)
E/AndroidRuntime( 7161): at at.bitfire.davdroid.syncadapter.SyncManager.pullChanged(SyncManager.java:208)
E/AndroidRuntime( 7161): at at.bitfire.davdroid.syncadapter.SyncManager.synchronize(SyncManager.java:89)
E/AndroidRuntime( 7161): at at.bitfire.davdroid.syncadapter.DavSyncAdapter.onPerformSync(DavSyncAdapter.java:134)
E/AndroidRuntime( 7161): at android.content.AbstractThreadedSyncAdapter$SyncThread.run(AbstractThreadedSyncAdapter.java:259)
D/davdroid.WebDavResource( 7161): Using preemptive authentication (not compatible with Digest auth)
D/davdroid.WebDavResource( 7161): Using preemptive authentication (not compatible with Digest auth)
D/davdroid.WebDavResource( 7161): Using preemptive authentication (not compatible with Digest auth)
D/davdroid.WebDavResource( 7161): Using preemptive authentication (not compatible with Digest auth)
D/davdroid.DavSyncAdapter( 7161): Closing httpClient
Edit: Changed ` to ```