[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
|
zhengyun@ultrapower 20050920
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=485703