Synthesis AG - SyncML Discussion Forum

Synthesis AG - SyncML Discussion Forum (http://forum.synthesis.ch/index.php)
-   SyncML Clients for Android (http://forum.synthesis.ch/forumdisplay.php?f=11)
-   -   Error 404 from device (http://forum.synthesis.ch/showthread.php?t=2184)

juras 2012-08-17 13:17

Error 404 from device
 
Hi,

I've synthesis client on Android GT-N7000, Android/4.0.4.

Synchronization works fine, but sometimes, when I try to add contact to device, I found error 404, returning from device. The only way to repair this state is clear device and sync all contacts again. After that, fault contact is synced without error.

Is there any way to repair this error without clearing device?

Code:


[2012-07-12 11:27:25.375] 'Process_Item' - processing remote item, SyncOp=add, RemoteID=9869 [--][++] [->end] [->enclosing]

    add item operation received
    contacts: testState=TRUE - expected state>='sync_gen_done', found state=='sync_gen_done'
    Testing filter '' against item:
    Filter test result is TRUE
    startDataWrite called, status=0
    TStdLogicDS::logicProcessRemoteItem starting, SyncOp=add, RemoteID='9869', LocalID=''
    (4A3128) JNI (LNK): InsertItemAsKey: n=3712 tCB=00580218 cC=3752776 mC=3752776 sC=0
    (4A3128) JNI (LNK): InsertItemAsKey: aItemKey=00CFFBA8
    ##### cc_contacts 'W' (contacts) UpdateFields: itemKey=13630376 aID=() ins=true
    ##### cc_contacts 'W' (contacts) BDAY_Leaf: s=''
    ##### cc_contacts 'W' (contacts) BDAY_Leaf: s=''
    ##### cc_contacts 'W' (contacts) InsertLeavesFL_All: mimeN=4 / arr=1
    ##### cc_contacts 'W' (contacts) InsertLeavesFL_All: mimeN=5 / arr=1
    ##### cc_contacts 'W' (contacts) InsertLeavesFL_All: mimeN=6 / arr=0
    ##### cc_contacts 'W' (contacts) DispTree: TREE START () U BEFORE
    ##### cc_contacts 'W' (contacts) DispTree: == mime=NAME (1) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=7 ind=0 v='Marek Vačlena'
    ##### cc_contacts 'W' (contacts) DispTree: id=2 ind=0 v='Marek'
    ##### cc_contacts 'W' (contacts) DispTree: id=1 ind=0 v='Vačlena'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=POSTAL (7) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=32 ind=0 v='Bratří Štefanů 979'
    ##### cc_contacts 'W' (contacts) DispTree: id=38 ind=0 v='Hradec Králové'
    ##### cc_contacts 'W' (contacts) DispTree: id=40 ind=0 v='500 03'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=ORG (3) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=11 ind=0 v='Raab Karcher'
    ##### cc_contacts 'W' (contacts) DispTree: id=9 ind=0 v='4'
    ##### cc_contacts 'W' (contacts) DispTree: id=13 ind=0 v='rizikomanager'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=PHONE (4) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=20 ind=0 v='+420602662027'
    ##### cc_contacts 'W' (contacts) DispTree: id=21 ind=0 v='4'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=EMAIL (5) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=24 ind=0 v='vaclena.m@rkstaviva.cz'
    ##### cc_contacts 'W' (contacts) DispTree: id=25 ind=0 v='4'
    ##### cc_contacts 'W' (contacts) DispTree: TREE END
    ##### cc_contacts 'W' (contacts) DispTree:
    ##### cc_contacts 'W' (contacts) DispTree: TREE START () U AFTER
    ##### cc_contacts 'W' (contacts) DispTree: == mime=NAME (1) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=7 ind=0 v='Marek Vačlena'
    ##### cc_contacts 'W' (contacts) DispTree: id=2 ind=0 v='Marek'
    ##### cc_contacts 'W' (contacts) DispTree: id=1 ind=0 v='Vačlena'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=POSTAL (7) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=32 ind=0 v='Bratří Štefanů 979'
    ##### cc_contacts 'W' (contacts) DispTree: id=38 ind=0 v='Hradec Králové'
    ##### cc_contacts 'W' (contacts) DispTree: id=40 ind=0 v='500 03'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=ORG (3) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=11 ind=0 v='Raab Karcher'
    ##### cc_contacts 'W' (contacts) DispTree: id=9 ind=0 v='4'
    ##### cc_contacts 'W' (contacts) DispTree: id=13 ind=0 v='rizikomanager'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=PHONE (4) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=20 ind=0 v='+420602662027'
    ##### cc_contacts 'W' (contacts) DispTree: id=21 ind=0 v='4'
    ##### cc_contacts 'W' (contacts) DispTree: == mime=EMAIL (5) id=0
    ##### cc_contacts 'W' (contacts) DispTree: id=24 ind=0 v='vaclena.m@rkstaviva.cz'
    ##### cc_contacts 'W' (contacts) DispTree: id=25 ind=0 v='4'
    ##### cc_contacts 'W' (contacts) DispTree: TREE END
    ##### cc_contacts 'W' (contacts) DispTree:
    ##### cc_contacts 'W' (contacts) UpdateFields: ACC *any* match=-1 ok=false
    (4A3128) JNI (LNK): InsertItemAsKey: n=3713 tCB=00580218 cC=3752776 mC=3752776 sC=0
    (4A3128) JNI (LNK): InsertItemAsKey: aItemKey=00CFFBA8 () err=404
    cannot create record in database (sta=404)
    Database Error --> SyncML status 404
    - Operation add failed with SyncML status=404

–[2012-07-12 11:27:25.411] End of 'Process_Item' [->top] [->enclosing]
processSyncOpItem: Error while processing item, status=404
Irregularity in execution of item, status=404

[2012-07-12 11:27:25.411] 'issue' - issuing command, Cmd=Status [--][++] [->end] [->enclosing]

    Command 'Status': is 1-th counted cmd, cmdsize(+tags needed to end msg)=41, available=59605 (maxfree=98253, freeaftersend=98212, notUsableBufferBytes()=38648)
    WARNING: Non-OK Status 404 returned to remote!
    Status Code 404 issued for Cmd=Add, (incoming MsgID=2, CmdID=6)
    - SourceRef (remoteID) = '9869'
    Status: issued as (outgoing MsgID=3, CmdID=3), not waiting for status
    Status: issue finished and not waiting for status -> deleting command
    Deleted command 'Status' (outgoing MsgID=3, CmdID=3)
    Outgoing Message size is now 434 bytes

–[2012-07-12 11:27:25.412] End of 'issue' [->top] [->enclosing]
Add: command finished execution -> deleting
Deleted command 'Add' (incoming MsgID=2, CmdID=6)


bfo 2012-09-12 11:25

Re: Error 404 from device
 
It looks like the assignment to an internal account does not match.

Usually this happens when the entry contains categories which are not matching to the ones of the device. And the non-matching switch is off.

Best Regards
Beat

juras 2012-10-26 08:38

Re: Error 404 from device
 
Hi,

where can I find "non-matching" switch (can I switch it "on")?

If I clear device, fault contact is synced without error. There is no need to change contact (or his category) on server side.

Regards
Juras

bfo 2012-10-26 09:36

Re: Error 404 from device
 
Hi Juras

sorry, my fault.
The mentioned switch is only available for the calendar
For contacts it *should* work automatically.

Could you send me a log file with the problem, using the newest version (V2.4.12), or send me the whole log file where your snippet is coming from.

Best Regards
Beat
(bfo@synthesis.ch)


All times are GMT +2. The time now is 22:11.

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.