[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
更多文章、技術交流、商務合作、聯系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯系: 360901061
您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
