I have installed the latest stable version of Funambol 6.5.14 and the svn version of the Funambol Zimbra Connector. I had used the stable version of the connector and still the same problem.
The problem is that I am getting a tag in the <data> that is preventing a successful sync. The tag is like this ...
<add>
.....
<data>
<?xml type=.....
<appointment>
.....
</appointment>
</data>
....
</add>
I don't where the <xml> tag is coming from but that is causing the problem. This could be a jetty server problem in the Zimbra. I am using Zimbra 5.0.5.
I am using the java demo client that comes with Funambol to see this problem. I can add/update/remove appointments from the client to Zimbra and it works fine but adding to Zimbra causes the sync to fail. The error that lead me to the <data> tag problem was a Sax error trying to read the response from Zimbra.
I will attach the complete log from the client and the server.
Client / Server logs
Logged In: YES
user_id=1020245
Originator: YES
This has been confirmed. Another user has the same problem.
Logged In: YES
user_id=2022043
Originator: NO
Now I writing testcase on it. This bug can't be related zimbra server.
May be some conversion format problem in the zimbraConnector.
Please try to use vcard instead.
Logged In: YES
user_id=2022043
Originator: NO
I cann't repeate this issue:
I do follow,
1. Create 4 contacts (exactly that in the log)
2. Run java Demo client
3. Set sync on scard only
4. sync - All fine
Also I try to sync contacts and calendars, the same result.
No WBXML log
Logged In: YES
user_id=1020245
Originator: YES
I added a new log file. This new log file is from syncing without WBXML. It is slightly different you can see the html coding is actng very weird. I have a idea. I am running this on Ubuntu Server 8.04. What are you running this on? Are you using the same versions I am running? Are you adding contacts to zimbra or the client? Adding contacts to the client works perfect. Addiung contacts to zimbra doesn't work. I think it could be the OS or the zimbra jetty server. The server could be answering with weird tags that the connector doesn't understand.
File Added: log01.txt
Logged In: YES
user_id=2090699
Originator: NO
I have the same problem on ubuntu 6.06 LTS and zimbra 5.0.5 opensource.
Calender items are successfully synced from iPhone (SyncJe) and Java Demo Client to Zimbra, but vice versa
it is not working.
If i add a new calender event in zimbra an error occurs in the funambol java demo client.
Using SyncJe on the iPhone i get garbled events (no text, date somewhere around year 2029)
Here is the output of the java demo client:
14:32:19:062 [DEBUG] - SyncTransportEvent - Received data end - data length: 2116
14:32:19:093 [DEBUG] - alert-response:<?xml version="1.0" encoding="UTF-8"?>
<SyncML>
<SyncHdr>
<VerDTD>1.1</VerDTD>
<VerProto>SyncML/1.1</VerProto>
<SessionID>12345678</SessionID>
<MsgID>3</MsgID>
<Target>
<LocURI>fjg-8b1XjTiy7zcwTlc8cDV+4Q==</LocURI>
</Target>
<Source>
<LocURI>http://x.x.x.x:8080/funambol/ds;jsessionid=ACB3F74D837C3FF03E5C23DCC6DBA43B</LocURI>
</Source>
<RespURI>http://x.x.x.x:8080/funambol/ds;jsessionid=ACB3F74D837C3FF03E5C23DCC6DBA43B</RespURI>
</SyncHdr>
<SyncBody>
<Status>
<CmdID>1</CmdID>
<MsgRef>3</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<TargetRef>http://x.x.x.x:8080/funambol/ds;jsessionid=ACB3F74D837C3FF03E5C23DCC6DBA43B</TargetRef>
<SourceRef>fjg-8b1XjTiy7zcwTlc8cDV+4Q==</SourceRef>
<Data>200</Data>
</Status>
<Status>
<CmdID>2</CmdID>
<MsgRef>3</MsgRef>
<CmdRef>2</CmdRef>
<Cmd>Alert</Cmd>
<TargetRef>http://x.x.x.x:8080/funambol/ds;jsessionid=ACB3F74D837C3FF03E5C23DCC6DBA43B</TargetRef>
<SourceRef>fjg-8b1XjTiy7zcwTlc8cDV+4Q==</SourceRef>
<Data>200</Data>
<Item>
<Target>
<LocURI>http://x.x.x.x:8080/funambol/ds;jsessionid=ACB3F74D837C3FF03E5C23DCC6DBA43B</LocURI>
</Target>
<Source>
<LocURI>fjg-8b1XjTiy7zcwTlc8cDV+4Q==</LocURI>
</Source>
</Item>
</Status>
<Sync>
<CmdID>3</CmdID>
<Target>
<LocURI>scal</LocURI>
</Target>
<Source>
<LocURI>scal</LocURI>
</Source>
<Add>
<CmdID>4</CmdID>
<Meta>
<Type xmlns='syncml:metinf'>text/x-s4j-sife</Type>
</Meta>
<Item>
<Source>
<LocURI>1330</LocURI>
</Source>
<Data><?xml version="1.0" encoding="UTF-8"?>
<appointment>
<SIFVersion>1.0</SIFVersion><AllDayEvent>0</AllDayEvent><IsRecurring>0</IsRecurring><Start>20080518T150000</Start><End>20080518T170000</End><Status>1</Status><BusyStatus>2</BusyStatus><Companies>herrbo_h@augenklinik-starnberg.de</Companies><Sensitivity>0</Sensitivity><Subject>maier</Subject><Transp>OPAQUE</Transp><null>20080518T143139Z</null><Last-Modified>20080518T143139Z</Last-Modified><Sequence>0</Sequence><Exceptions/><Attendees/></appointment></Data>
</Item>
</Add>
</Sync>
<Final/>
</SyncBody>
</SyncML>
14:32:19:109 [INFO] - Error setting the item 1330: org.xml.sax.SAXParseException: Content is not allowed in prolog.
14:32:19:140 [DEBUG] - SyncEvent - Sync error - date: Sun May 18 14:32:19 CEST 2008 - message: Error setting the hashmap in item { syncSource: 'com.funambol.syncclient.spds.source.SIFSyncSource@15d601f' key: 'com.funambol.syncclient.spds.engine.SyncItemKey { keyValue: 1330 } ' state: 'N'} - cause: org.xml.sax.SAXParseException: Content is not allowed in prolog.
14:32:19:156 [INFO] - Sync Exception: java.lang.NullPointerException
14:32:19:171 [INFO] - com.funambol.syncclient.javagui.MainWindow synchronizenull
Thanks in advance
Logged In: YES
user_id=1020245
Originator: YES
Ok I have tried every version of Funambol, every version of zimbra, and two different Linux OSes still not working and getting errors. What is the working configuration? Are you using Windows?
Logged In: YES
user_id=1020245
Originator: YES
I have found a successful configuration. This connector only works in Windows. Linux/Unix variant will not work.
Logged In: YES
user_id=2180143
Originator: NO
I get the same exact error. Bug confirmed.
Funambol Server 7.06
Zimbra 5.08
I have a very similar problem, which I've detailed below. The solution I found is at the end.
[servers]
Zimbra 5.0.11 on Ubuntu 6.06.2
Funambol 7.0.6 on Windows XP SP3
[clients]
BlackBerry 8703e w/ Funambol BB Plugin
Java Demo Client
[What works]
Sync'ing client -> server always works fine. Creating a contact or a calender entry on the BB and sync'ing will create that entry in Zimbra every time.
Creating entries in Zimbra, then performing a 'recovery' sync (slow-sync) will update the client correctly.
[What doesn't work]
Creating an entry in Zimbra, then performing a regular two-way sync will result in no update of the client (but any new entries on the client will get added to Zimbra).
The client does not report any errors. I could not find evidence of errors in the Funambol debug.log.
This is true with both the BB client and the Java Demo Client.
[solution]
I do not know why this makes a difference, but when I had configured the clients with username/password I used the short-form of the username (e.g. 'barius' instead of 'barius@zimbra.domain.com'). When I used the fully qualified name the above problem vanished.
I have no idea why a 'slow-sync' would work with the short name, while a 'fast-sync' would not, but at least it has solved the problem for me.