[sync4j]Nokia手机和sync4j服务器同步的第四次手机登录,手工新建了syncSource同步源
[sync4j]Nokia手机和sync4j服务器同步的第四次手机登录:
在sync4j社区看到一个话题,讨论如何纠正Nokia系列手机会自动在远程数据库前面添加一个“./”符号。据Harrie说,“You can work around this by configure a similar syncsource
as the one with the scard URI. Create with the admin tool
a similar syncsource that has the URI ./scard.”
也就是说,我们需要自己到Sync4j Admin中,配置一个数据库源。步骤是这样的:
展开localhost,
àModules,
àpdi,
àSIF SyncSource。
你会看到同步源有好几个,如scal、scard、snote、stask等。我们再添加一个“./scard”,配置画面为:
这样,Nokia7610手机上就可以设置远程数据库名称为“scard”了,请求到了服务器后,已经变成了“./scard”,sync4j在Sync4j\server\db\contact目录下开始建立用户的子目录,并将新上传的联系人放置在这个子目录里。
这种策略用sync4j的gui client测试成功。
但是,在Nokia手机上,当服务器端日志打到这个地方的时候,总是停止下来,从而导致手机报告错误“服务器无响应”:
Log提示: |
[Sep 20, 2005 2:11:46 PM][sync4j.server] FINEST: Calling output pipeline [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: Starting postprocessing [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: sync4j.foundation.synclet.ChangeSourceUriSynclet.postProcessMessage(...) [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: Replace TargetRef into output Status commands [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: Replace SourceRef into output Result commands [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: Replace TargetRef into output Alert commands [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: sync4j.foundation.ChangeDeviceIdSynclet.postProcessMessage(...) [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: sync4j.foundation.ChangeDeviceIdSynclet - processing not required [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: postProcessMessage: SlowFastSyncManagement of output message [Sep 20, 2005 2:11:46 PM][sync4j.engine] FINEST: postProcessMessage: man: NOKIA [Sep 20, 2005 2:11:46 PM][sync4j.transport.http] FINEST: Outgoing message length: 988 [Sep 20, 2005 2:11:46 PM][sync4j.transport.http] FINEST: Finally |