From: Armin B. <arm...@de...> - 2006-10-21 22:31:46
|
Hi, the (funambol) client sends a username/password to the server, but you didnt specify username in the config file. Therefore, the server rejected the session with an 508 error code (visible in the syncml answer package). Best Regards, Armin Bauer lishuai zhao wrote: > Hi, > This is Lishuai.Zhao. Thank you for your help before. > I would try to test the syncml-http-server plugin and file-sync > plugin, but failed. >=20 > I add a group like this: > [root@localhost ~]# msynctool --showgroup httpfile > Groupname: httpfile > Member 2: file-sync > Configuration : > <config><path>/home/httpfile/sync2</path><recursive>FALSE</recursive></= config> >=20 >=20 > Member 1: syncml-http-server > Configuration : > <config><username></username><password></password><url>/home/httpfile/s= ync1</url><port>9999</port><usestringtable>0</usestringtable><onlyreplace= >0</onlyreplace><recvLimit>100000</recvLimit><maxObjSize>0</maxObjSize><c= ontact_db>contacts</contact_db><calendar_db>calendar</calendar_db><note_d= b>notes</note_db></config> >=20 >=20 > Because I do not have a mobile phone, so I use the > funambol-javagui-plugin to simulate a mobile terminal. >=20 > When I do "msyncml --sync httpfile --wait" and make the > funambol-javagui-plugin to sync, it says: > [root@localhost ~]# msynctool --sync httpfile --wait > Synchronizing group "httpfile" > received contact dsession > Member 1 of type syncml-http-server just connected > Member 2 of type file-sync just connected > All clients connected or error > Member 2 of type file-sync just sent all changes > Member 1 of type syncml-http-server had an error while getting > changes: Timeout while waiting for a reply to message "GET_CHANGES" > Member 2 of type file-sync just disconnected > Member 1 of type syncml-http-server had an error while disconnecting: > Timeout while waiting for a reply to message "DISCONNECT" > All clients have disconnected > The sync failed: Unable to read from one of the members >=20 > I have the log file of Thread3075451824.log with the environment > variable $SYNCML_TRACE. The function of smlAssemblerAddStatusFull > appears twice (in line226 and line263 of Thread3075451824.log). I > think it related to the context between line926 and line935 of > smlSessionReceiveBody in sml_session.c. > The first time smlAssemblerAddStatus executed(the line226 of > Thread3075451824.log) is in the function of smlSessionReceiveBody, > also in the _server_callback function(Because smlSessionReceiveBody > executed in _server_callback). But obviously the second time it > appears(line 263 of Thread3075451824.log)is out of the > _server_callback function. Why it execute in such order? > In my opinion, the code after line 926 of sml_session.c is related > to the reason that I failed closely. Could you help me? >=20 > Following is my environment: > (1). Fedora Core 4 (2.6.11-1.1369_FC4) > (2). funambol-javagui-plugin-3.0.4.tgz > (3). Packages built: > (a).libopensync-0.18.tar.gz > (b).multisync-0.90.18.tar.gz > (c).libsyncml-0.4.0.tar.gz > (d).libopensync-plugin-syncml-0.18 > (e).libopensync-plugin-file-0.18.tar.gz >=20 > The accessory is the log file of Thread3075451824.log. >=20 > Best regards! >=20 > Lishuai.Zhao >=20 >=20 |