[bug?] Lineageos 16 Android 9 Davx5 not syncing tasks



  • Hello,
    after upgrading from Lineage 15 to 16 and upgrading from Davdroid to Davx5 simultaneously I cant sync tasks from my nextcloud anymore. Contacts and calendar events are fine and it also synced the name and colours of my task lists. The actual content, however, was missing. Each attempt to sync would end in a notification of a

    java.lang.ClassCastException: net.fortuna.ical4j.model.property.XProperty cannot be cast to net.fortuna.ical4j.model.property.Uid
    

    for each task list.

    I fixed my issue by downgrading the app to version 2.0.7 and attached the debug.txt, hoping it may solve to fix the described issues (since I think I didn’t miss any steps like granting permissions etc - please correct me if I’m wrong)

    --- BEGIN DEBUG INFO ---
    Account name: XXXX
    Authority: com.android.calendar
    
    REMOTE RESOURCE:
    https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/sonstiges-1/54b9155f-3c3b-4425-bd39-41c43af09b4b.ics
    
    EXCEPTION:
    java.lang.ClassCastException: net.fortuna.ical4j.model.property.XProperty cannot be cast to net.fortuna.ical4j.model.property.Uid
    	at net.fortuna.ical4j.model.component.VEvent.getUid(VEvent.java:671)
    	at at.bitfire.ical4android.Event$Companion.fromReader(Event.kt:95)
    	at at.bitfire.ical4android.Event$Companion.fromReader$default(Event.kt:72)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager.processVEvent(CalendarSyncManager.kt:159)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager.access$processVEvent(CalendarSyncManager.kt:41)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$2$1$1.invoke(CalendarSyncManager.kt:144)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$2$1$1.invoke(CalendarSyncManager.kt:41)
    	at at.bitfire.davdroid.syncadapter.SyncManager.useRemote(SyncManager.kt:794)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$2$1.invoke(CalendarSyncManager.kt:131)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$2$1.invoke(CalendarSyncManager.kt:41)
    	at at.bitfire.dav4android.Response$Companion.parse(Response.kt:211)
    	at at.bitfire.dav4android.DavResource$processMultiStatus$2.invoke(DavResource.kt:465)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:484)
    	at at.bitfire.dav4android.DavResource.processMultiStatus(DavResource.kt:435)
    	at at.bitfire.dav4android.DavCalendar.multiget(DavCalendar.kt:151)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$2.invoke(CalendarSyncManager.kt:130)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$2.invoke(CalendarSyncManager.kt:41)
    	at at.bitfire.davdroid.syncadapter.SyncManager.useRemote(SyncManager.kt:783)
    	at at.bitfire.davdroid.syncadapter.SyncManager.useRemoteCollection(SyncManager.kt:804)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager.downloadRemote(CalendarSyncManager.kt:129)
    	at at.bitfire.davdroid.syncadapter.SyncManager$syncRemote$1$1.run(SyncManager.kt:447)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    	at java.lang.Thread.run(Thread.java:764)
    
    SOFTWARE INFORMATION
    * at.bitfire.davdroid 2.1-ose (257) from org.fdroid.fdroid.privileged
    * org.dmfs.tasks 1.1.15 (7330) from org.fdroid.fdroid.privileged
    * com.android.providers.contacts 9 (28)
    * com.android.providers.calendar 9 (28)
    * com.android.contacts 1.7.31 (10731)
    * ws.xsoh.etar 1.0.13 (15) from org.fdroid.fdroid.privileged
    
    CONNECTIVITY (at the moment)
    Active connection: WiFi, CONNECTED
    
    CONFIGURATION
    Power saving disabled: yes
    android.permission.READ_CONTACTS permission: granted
    android.permission.WRITE_CONTACTS permission: granted
    android.permission.READ_CALENDAR permission: granted
    android.permission.WRITE_CALENDAR permission: granted
    org.dmfs.permission.READ_TASKS permission: granted
    org.dmfs.permission.WRITE_TASKS permission: granted
    System-wide synchronization: automatically
    Account: XXXX
      Address book sync. interval: 1440 min
      Calendar     sync. interval: 60 min
      OpenTasks    sync. interval: 60 min
      WiFi only: false
      [CardDAV] Contact group method: GROUP_VCARDS
      [CalDAV] Time range (past days): 360
               Manage calendar colors: true
    Address book account: Kontakte (XXXX VA)
      Main account: Account {name=XXXX, type=bitfire.at.davdroid}
      URL: https://nextcloud.XXXX/remote.php/dav/addressbooks/users/XXXX/contacts/
      Sync automatically: true
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  en_GB |
    ----------
    services
    	|  _id | accountName | service | principal |
    	|  1 | XXXX | carddav | https://nextcloud.XXXX/remote.php/dav/principals/users/XXXX/ |
    	|  2 | XXXX | caldav | https://nextcloud.XXXX/remote.php/dav/principals/users/XXXX/ |
    ----------
    sqlite_sequence
    	|  name | seq |
    	|  services | 2 |
    	|  homesets | 5 |
    	|  collections | 25 |
    ----------
    homesets
    	|  _id | serviceID | url |
    	|  2 | 1 | https://nextcloud.XXXX/remote.php/dav/addressbooks/users/XXXX/ |
    	|  5 | 2 | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/ |
    ----------
    collections
    	|  _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
    	|  7 | 1 | ADDRESS_BOOK | https://nextcloud.XXXX/remote.php/dav/addressbooks/users/XXXX/contacts/ | 1 | 1 | 0 | Kontakte | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
    	|  20 | 2 | CALENDAR | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/19a73b2b-6027-478c-b57d-4231d851ec45/ | 1 | 1 | 0 | Lesen, Schauen, Hören | <null> | -1579148 | <null> | 0 | 1 | <null> | 1 |
    	|  21 | 2 | CALENDAR | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/6a5236a0-aba8-451a-9a1f-364f845c8425/ | 1 | 1 | 0 | Texte | <null> | -9115694 | <null> | 1 | 1 | <null> | 1 |
    	|  22 | 2 | CALENDAR | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/8615e4c7-4a01-40bc-ada2-c95652c4d7f7/ | 1 | 1 | 0 | Tuxen | <null> | -1608502 | <null> | 0 | 1 | <null> | 1 |
    	|  23 | 2 | CALENDAR | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/personal/ | 1 | 1 | 0 | Calendar1 | <null> | -9139225 | <null> | 1 | 1 | <null> | 1 |
    	|  24 | 2 | CALENDAR | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/sonstiges-1/ | 1 | 1 | 0 | Calendar2 | <null> | -1593996 | <null> | 1 | 1 | <null> | 1 |
    	|  25 | 2 | CALENDAR | https://nextcloud.XXXX/remote.php/dav/calendars/XXXX/Calendar3/ | 1 | 1 | 0 | Calendar3 | <null> | -9122585 | <null> | 1 | 1 | <null> | 1 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 9 (lineage_scorpio-userdebug 9 PQ1A.181205.006 c6f7e32574 test-keys)
    Device: Xiaomi MI Note 2 (scorpio)
    
    --- END DEBUG INFO ---
    

    best regards


  • developer

    Hello,

    Does it help to uninstall DAVx⁵ and install it (newest version) again?



  • Yes, it’s fixed. Thanks!


 

Maybe you're interested in these topics?

  • 6
  • 9
  • 3
  • 9
  • 3