Skip to content

ParseError syntax error, unexpected token "readonly", expecting "abstract" or "final" or "class" #54

@CelianGdfrd

Description

@CelianGdfrd

Upon activating DAV Push on my server and refreshing the collections list, I get an error on server and client side, and refresh fails.

`--- BEGIN DEBUG INFO ---

NOTIFICATION TIME
Local time: 2025-06-28T10:34:21+02:00
UTC: 2025-06-28T08:34:21Z

SYNCHRONIZATION INFO
Account: Account {name=Kalytis, type=bitfire.at.davdroid}

EXCEPTION
at.bitfire.dav4jvm.exception.HttpException: HTTP 500
at at.bitfire.dav4jvm.DavResource.checkStatus(SourceFile:3)
at at.bitfire.dav4jvm.DavResource.checkStatus(SourceFile:1)
at at.bitfire.dav4jvm.DavResource.processMultiStatus(SourceFile:2)
at at.bitfire.dav4jvm.DavResource.propfind(SourceFile:75)
at at.bitfire.davdroid.servicedetection.CollectionListRefresher.refreshHomelessCollections$davx5_ose_4_5_oseRelease(SourceFile:127)
at at.bitfire.davdroid.servicedetection.RefreshCollectionsWorker.doWork$lambda$3$lambda$2(SourceFile:57)
at at.bitfire.davdroid.servicedetection.RefreshCollectionsWorker.$r8$lambda$phNEMoL0Zrza1EpdNukywL-2Cko(SourceFile:1)
at kotlin.text.Regex$$ExternalSyntheticLambda0.invoke(SourceFile:44)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(SourceFile:59)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invoke(SourceFile:13)
at kotlin.TuplesKt.startUndspatched(SourceFile:17)
at kotlinx.coroutines.JobKt.withContext(Unknown Source:46)
at kotlinx.coroutines.JobKt.runInterruptible(Unknown Source:7)
at at.bitfire.davdroid.servicedetection.RefreshCollectionsWorker.doWork(SourceFile:154)
at androidx.work.CoroutineWorker$startWork$1.invokeSuspend(SourceFile:29)
at androidx.work.CoroutineWorker$startWork$1.invoke(SourceFile:13)
at androidx.work.ListenableFutureKt$launchFuture$1$2.invokeSuspend(SourceFile:37)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(SourceFile:9)
at kotlinx.coroutines.DispatchedTask.run(SourceFile:115)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(SourceFile:127)

HTTP REQUEST
Request{method=PROPFIND, url=https://xxxxx/remote.php/dav/addressbooks/users/xxx/contacts-1/, headers=[Depth:0, User-Agent:DAVx5/4.5-ose (dav4jvm; okhttp/4.12.0) Android/15, Accept-Language:fr-FR, fr;q=0.7, *;q=0.5, Accept-Encoding:br,gzip, Authorization:Basic S2FseXRpczpiUXpYUC1aUVNlSi1nYUdmTC1yRmFGUC1nZG82Qg==]}

HTTP RESPONSE
Response{protocol=h2, code=500, message=, url=xxxxx/remote.php/dav/addressbooks/users/xxx/contacts-1/}

<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>ParseError</s:exception>
<s:message>syntax error, unexpected token "readonly", expecting "abstract" or "final" or "class"</s:message>
</d:error>

SOFTWARE INFORMATION

┌────────────────────────────────┬─────────┬───────────┬───────────────────┬───────┐
│ Package │ Version │ Code │ Installer │ Notes │
├────────────────────────────────┼─────────┼───────────┼───────────────────┼───────┤
│ at.bitfire.davdroid │ 4.5-ose │ 405000000 │ org.fdroid.fdroid │ │
│ org.tasks │ 14.7.3 │ 140710 │ org.fdroid.fdroid │ │
│ com.android.providers.contacts │ 15 │ 35 │ — │ │
│ com.android.providers.calendar │ 15 │ 35 │ — │ │
│ ws.xsoh.etar │ 1.0.48 │ 48 │ org.fdroid.fdroid │ │
└────────────────────────────────┴─────────┴───────────┴───────────────────┴───────┘

SYSTEM INFORMATION

Android version: 15 (lineage_hotdog-userdebug 15 BP1A.250505.005 9efca67bec)
Device: OnePlus HD1911 (OnePlus7TPro)

Locale(s): [fr_FR]
Time zone: Europe/Paris
Internal memory (/data): 125 Go free of 228 Go

App standby bucket: exempted (very good)
App exempted from power saving: yes (good)
System in power-save mode: no
System-wide synchronization: automatically

CONNECTIVITY

☒ rmnet_data2

  • [ Transports: CELLULAR Capabilities: MMS SUPL INTERNET NOT_RESTRICTED TRUSTED NOT_VPN VALIDATED NOT_ROAMING FOREGROUND NOT_CONGESTED NOT_SUSPENDED NOT_VCN_MANAGED NOT_BANDWIDTH_CONSTRAINED LinkUpBandwidth>=20847Kbps LinkDnBandwidth>=31014Kbps Specifier: <TelephonyNetworkSpecifier [mSubId = 1]> SubscriptionIds: {1} UnderlyingNetworks: Null]
  • DNS: 62.201.129.202, 62.201.129.201 (private mode)
    ☐ rmnet_data4
  • [ Transports: CELLULAR Capabilities: IMS NOT_METERED TRUSTED NOT_VPN VALIDATED NOT_ROAMING FOREGROUND NOT_CONGESTED NOT_SUSPENDED NOT_VCN_MANAGED MMTEL NOT_BANDWIDTH_CONSTRAINED LinkUpBandwidth>=14Kbps LinkDnBandwidth>=14Kbps Specifier: <TelephonyNetworkSpecifier [mSubId = 3]> SubscriptionIds: {3} UnderlyingNetworks: Null]
  • DNS:

Data saver: disabled

CONFIGURATION

Notifications:

  • sync isBlocked=false
  • syncProblems: importance=0
  • syncIoErrors: importance=1
  • syncWarnings: importance=2
  • status: importance=0
  • general: importance=3
  • debug: importance=4

Permissions:

  • ACCESS_NETWORK_STATE: granted
  • ACCESS_WIFI_STATE: granted
  • INTERNET: granted
  • POST_NOTIFICATIONS: granted
  • READ_SYNC_SETTINGS: granted
  • READ_SYNC_STATS: granted
  • WRITE_SYNC_SETTINGS: granted
  • RECEIVE_BOOT_COMPLETED: granted
  • REQUEST_IGNORE_BATTERY_OPTIMIZATIONS: granted
  • READ_CONTACTS: granted
  • WRITE_CONTACTS: granted
  • READ_CALENDAR: granted
  • WRITE_CALENDAR: granted
  • ACCESS_COARSE_LOCATION: denied
  • ACCESS_FINE_LOCATION: denied
  • ACCESS_BACKGROUND_LOCATION: denied
  • WAKE_LOCK: granted
  • FOREGROUND_SERVICE: granted
  • org.dmfs.permission.READ_TASKS: denied
  • org.dmfs.permission.WRITE_TASKS: denied
  • org.tasks.permission.READ_TASKS: granted
  • org.tasks.permission.WRITE_TASKS: granted
  • at.techbee.jtx.permission.READ: denied
  • at.techbee.jtx.permission.WRITE: denied
  • at.bitfire.davdroid.DYNAMIC_RECEIVER_NOT_EXPORTED_PERMISSION: granted

ACCOUNTS

  • Account: xxx

┌─────────────────────────┬────────────┬──────────────────────┬───────────────────────────────────┐
│ Authority │ isSyncable │ syncsOnContentChange │ Entries │
├─────────────────────────┼────────────┼──────────────────────┼───────────────────────────────────┤
│ com.android.calendar │ true │ true │ 192 event(s) │
│ at.techbee.jtx.provider │ true │ false │ — │
│ org.dmfs.tasks │ true │ false │ — │
│ org.tasks.opentasks │ true │ true │ 183 tasks.org task(s) │
│ com.android.contacts │ false │ false │ 0 wrongly assigned raw contact(s) │
└─────────────────────────┴────────────┴──────────────────────┴───────────────────────────────────┘

Authentication: user name, password
WiFi only: false
Contact group method: GROUP_VCARDS
Time range (past days): 120
Default alarm (min before): null
Manage calendar colors: false
Use event colors: false

Sync workers:

┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬───────────┬──────────────────┬───────────────┬─────────┬────────────┬──────────────┐
│ Tags │ Data Type │ State │ Next run │ Retries │ Generation │ Periodicity │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼──────────────────┼───────────────┼─────────┼────────────┼──────────────┤
│ [sync-CONTACTS bitfire.at.davdroid/xxx, .sync.worker.OneTimeSyncWorker, onetime-sync CONTACTS bitfire.at.davdroid/xxx] │ CONTACTS │ SUCCEEDED (-256) │ — │ 1 │ 0 │ not periodic │
│ [periodic-sync EVENTS bitfire.at.davdroid/Kalytis, sync-EVENTS bitfire.at.davdroid/xxx, .sync.worker.PeriodicSyncWorker] │ EVENTS │ ENQUEUED (-256) │ Dans 0 minute │ 0 │ 0 │ every 15 min │
│ [periodic-sync TASKS bitfire.at.davdroid/xxx, .sync.worker.PeriodicSyncWorker, sync-TASKS bitfire.at.davdroid/xxx] │ TASKS │ ENQUEUED (-256) │ Dans 0 minute │ 0 │ 0 │ every 15 min │
│ [periodic-sync CONTACTS bitfire.at.davdroid/xxx, sync-CONTACTS bitfire.at.davdroid/xxx, .sync.worker.PeriodicSyncWorker] │ CONTACTS │ ENQUEUED (-256) │ Dans 0 minute │ 0 │ 0 │ every 15 min │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴───────────┴──────────────────┴───────────────┴─────────┴────────────┴──────────────┘

ADDRESS BOOK ACCOUNTS

  • Address book: Contacts (xxx) Update README: provide basic information #13

    ┌──────────────────────┬────────────┬──────────────────────┬────────────────────┐
    │ Authority │ isSyncable │ syncsOnContentChange │ Entries │
    ├──────────────────────┼────────────┼──────────────────────┼────────────────────┤
    │ com.android.contacts │ true │ true │ 422 raw contact(s) │
    └──────────────────────┴────────────┴──────────────────────┴────────────────────┘

    Collection ID: 13
    Read-only: 0

OTHER WORKERS

┌──────────────────────────────────────────────────────────────────────────┬─────────────────┬────────────────┬─────────┬────────────┬────────────────┐
│ Tags │ State │ Next run │ Retries │ Generation │ Periodicity │
├──────────────────────────────────────────────────────────────────────────┼─────────────────┼────────────────┼─────────┼────────────┼────────────────┤
│ [.sync.account.AccountsCleanupWorker] │ ENQUEUED (-256) │ Dans 19 heures │ 0 │ 13721 │ every 1440 min │
│ [.servicedetection.RefreshCollectionsWorker, refreshCollectionsWorker-5] │ FAILED (-256) │ — │ 1 │ 0 │ not periodic │
│ [.servicedetection.RefreshCollectionsWorker, refreshCollectionsWorker-6] │ FAILED (-256) │ — │ 1 │ 0 │ not periodic │
└──────────────────────────────────────────────────────────────────────────┴─────────────────┴────────────────┴─────────┴────────────┴────────────────┘

DATABASE DUMP

android_metadata

┌────────┐
│ locale │
├────────┤
│ fr_FR │
└────────┘

service

┌────┬─────────────┬─────────┬───────────────────────────────────────────────────────────────────┐
│ id │ accountName │ type │ principal │
├────┼─────────────┼─────────┼───────────────────────────────────────────────────────────────────┤
│ 5 │ xxx │ carddav │ https://xxxxx/remote.php/dav/principals/users/xxx/
│ 6 │ xxx │ caldav │ https://xxxxx/remote.php/dav/principals/users/xxx/
└────┴─────────────┴─────────┴───────────────────────────────────────────────────────────────────┘

sqlite_sequence

┌─────────────────┬────────┐
│ name │ seq │
├─────────────────┼────────┤
│ service │ 6 │
│ homeset │ 6 │
│ principal │ 5 │
│ webdav_document │ 0 │
│ collection │ 24 │
│ syncstats │ 453077 │
└─────────────────┴────────┘

homeset

┌────┬───────────┬──────────┬─────────────────────────────────────────────────────────────────────┬──────────┬─────────────┐
│ id │ serviceId │ personal │ url │ privBind │ displayName │
├────┼───────────┼──────────┼─────────────────────────────────────────────────────────────────────┼──────────┼─────────────┤
│ 5 │ 5 │ 1 │ https://xxxxx/remote.php/dav/addressbooks/users/xxx/ │ 1 │ — │
│ 6 │ 6 │ 1 │ https://xxxxx/remote.php/dav/calendars/xxx/ │ 1 │ — │
└────┴───────────┴──────────┴─────────────────────────────────────────────────────────────────────┴──────────┴─────────────┘

webdav_mount

┌────┬──────┬─────┐
│ id │ name │ url │
├────┼──────┼─────┤
└────┴──────┴─────┘

room_master_table

┌────┬──────────────────────────────────┐
│ id │ identity_hash │
├────┼──────────────────────────────────┤
│ 42 │ 6a0f7e1553e1f621ae7913ea14370fd0 │
└────┴──────────────────────────────────┘

principal

┌────┬───────────┬──────────────────────────────────────────────────────────────────┬─────────────┐
│ id │ serviceId │ url │ displayName │
├────┼───────────┼──────────────────────────────────────────────────────────────────┼─────────────┤
│ 3 │ 5 │ https://xxxxx/remote.php/dav/principals/users/xxx │ xxx │
│ 4 │ 6 │ https://xxxxx/remote.php/dav/principals/users/xxx │ xxx │
│ 5 │ 5 │ https://xxxxx/remote.php/dav/principals/system/system │ system │
└────┴───────────┴──────────────────────────────────────────────────────────────────┴─────────────┘

webdav_document: 0 row(s), data not listed here

collection

┌────┬───────────┬───────────┬─────────┬──────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────────────┬────────────┬───────────────┬───────────────────────────┬─────────────────────────────────────────────────────────┬───────────┬──────────────┬────────────────┬───────────────┬──────────────────┬────────┬──────┬───────────┬─────────────────┬──────────────────┬─────────────────────────┬─────────────────────────┬──────────────┐
│ id │ serviceId │ homeSetId │ ownerId │ type │ url │ privWriteContent │ privUnbind │ forceReadOnly │ displayName │ description │ color │ timezoneId │ supportsVEVENT │ supportsVTODO │ supportsVJOURNAL │ source │ sync │ pushTopic │ supportsWebPush │ pushSubscription │ pushSubscriptionExpires │ pushSubscriptionCreated │ pushVapidKey │
├────┼───────────┼───────────┼─────────┼──────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────────────┼────────────┼───────────────┼───────────────────────────┼─────────────────────────────────────────────────────────┼───────────┼──────────────┼────────────────┼───────────────┼──────────────────┼────────┼──────┼───────────┼─────────────────┼──────────────────┼─────────────────────────┼─────────────────────────┼──────────────┤
│ 13 │ 5 │ — │ 3 │ ADDRESS_BOOK │ │ 1 │ 1 │ 0 │ Contacts │ — │ — │ — │ — │ — │ — │ — │ 1 │ — │ 0 │ — │ — │ — │ — │
│ 14 │ 5 │ — │ 3 │ ADDRESS_BOOK │ / │ 0 │ 0 │ 0 │ Contacté récemment │ — │ — │ — │ — │ — │ — │ — │ 0 │ — │ 0 │ — │ — │ — │ — │
│ 17 │ 6 │ — │ 4 │ CALENDAR │ │ 0 │ 0 │ 0 │ Anniversaire des contacts │ — │ -6842473 │ — │ 1 │ 0 │ 0 │ — │ 1 │ — │ 0 │ — │ — │ — │ — │
│ 18 │ 6 │ — │ 4 │ CALENDAR │ │ 1 │ 1 │ 0 │ Personnel │ — │ -10313494 │ Europe/Paris │ 1 │ 1 │ 0 │ — │ 1 │ — │ 0 │ — │ — │ — │ — │
│ 19 │ 6 │ — │ 4 │ CALENDAR │
│ 1 │ 1 │ 0 │ Université │ — │ -10289092 │ Europe/Paris │ 1 │ 1 │ 0 │ — │ 1 │ — │ 0 │ — │ — │ — │ — │
│ 20 │ 5 │ — │ 5 │ ADDRESS_BOOK │ │ 0 │ 0 │ 0 │ Comptes │ Carnet d'adresses système qui regroupe tous les comptes │ — │ — │ — │ — │ — │ — │ 0 │ — │ 0 │ — │ — │ — │ — │
│ 22 │ 6 │ — │ 4 │ CALENDAR │ │ 1 │ 1 │ 0 │ Travail │ — │ -11953502 │ Europe/Paris │ 1 │ 0 │ 0 │ — │ 1 │ — │ 0 │ — │ — │ — │ — │
│ 23 │ 6 │ — │ 4 │ CALENDAR │ │ 0 │ 0 │ 0 │ Deck: Personnel │ — │ -16742459 │ — │ 0 │ 1 │ 0 │ — │ 0 │ — │ 0 │ — │ — │ — │ — │
│ 24 │ 6 │ — │ 4 │ CALENDAR │ │ 1 │ 1 │ 0 │ │ — │ -6860636 │ Europe/Paris │ 1 │ 1 │ 0 │ — │ 1 │ — │ 0 │ — │ — │ — │ — │
└────┴───────────┴───────────┴─────────┴──────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────────────┴────────────┴───────────────┴───────────────────────────┴─────────────────────────────────────────────────────────┴───────────┴──────────────┴────────────────┴───────────────┴──────────────────┴────────┴──────┴───────────┴─────────────────┴──────────────────┴─────────────────────────┴─────────────────────────┴──────────────┘

syncstats

┌────────┬──────────────┬──────────┬───────────────┐
│ id │ collectionId │ dataType │ lastSync │
├────────┼──────────────┼──────────┼───────────────┤
│ 453069 │ 24 │ TASKS │ 1751098923166 │
│ 453070 │ 13 │ CONTACTS │ 1751098923214 │
│ 453071 │ 17 │ EVENTS │ 1751098923274 │
│ 453072 │ 18 │ TASKS │ 1751098924372 │
│ 453073 │ 18 │ EVENTS │ 1751098924401 │
│ 453074 │ 19 │ TASKS │ 1751098924507 │
│ 453075 │ 19 │ EVENTS │ 1751098924584 │
│ 453076 │ 22 │ EVENTS │ 1751098924777 │
│ 453077 │ 24 │ EVENTS │ 1751098924953 │
└────────┴──────────────┴──────────┴───────────────┘

APP SETTINGS

  1. SharedPreferencesProvider canWrite=true

┌───────────────────────────┬─────────────────────┐
│ Setting │ Value │
├───────────────────────────┼─────────────────────┤
│ battery_optimization │ true │
│ distrust_system_certs │ false │
│ foreground_service │ true │
│ hint_AutostartPermissions │ false │
│ log_to_file │ false │
│ preferred_tasks_provider │ org.tasks.opentasks │
│ time_nextDonationPopup │ 1709890851193 │
└───────────────────────────┴─────────────────────┘

  1. DefaultsProvider canWrite=false

┌────────────────────────────────┬────────────────────────────────────────────────┐
│ Setting │ Value │
├────────────────────────────────┼────────────────────────────────────────────────┤
│ default_sync_interval │ 14400 │
│ distrust_system_certs │ false │
│ force_read_only_addressbooks │ false │
│ ignore_vpns │ true │
│ preselect_collections │ 0 │
│ preselect_collections_excluded │ /z-app-generated--contactsinteraction--recent/ │
│ proxy_host │ localhost │
│ proxy_port │ 9050 │
│ proxy_type │ -1 │
└────────────────────────────────┴────────────────────────────────────────────────┘

--- END DEBUG INFO ---`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions