Hi,

After installing Astrasync on about 10 blackberry, the calendar has stopped syncing on 8 of them. The error returned is : « HTTP/1.1 500 Unexpected server error ».
We use Astrasync solely for the purpose of syncing the calendars. When we check our server logs, we see that the server Zimbra is trying to sync events that no longer exist in the database.

Can you help me?

Thanks,

JL

Zimbra sync.log extract :

Code:
2012-03-13 00:00:35,834 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=FolderSync] [ip=127.0.0.1;] sync - POST Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=FolderSync
2012-03-13 00:00:35,834 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=FolderSync] [ip=127.0.0.1;] sync - DeviceID=MlSt362DF9F838583BBST7C77D8210BD; DeviceType=BlackBerry; UA=AstraSync/4.2.27 UNTRUSTED/1.0; Protocol=12.0; PolicyKey=1591819263
2012-03-13 00:00:35,839 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=FolderSync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=FolderSync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;] sync - Response size 63 bytes
2012-03-13 00:00:35,841 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=FolderSync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=FolderSync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;] sync - HTTP/1.1 200 OK
2012-03-13 00:00:37,514 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=GetItemEstimate] [ip=127.0.0.1;] sync - POST Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=GetItemEstimate
2012-03-13 00:00:37,514 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=GetItemEstimate] [ip=127.0.0.1;] sync - DeviceID=MlSt362DF9F838583BBST7C77D8210BD; DeviceType=BlackBerry; UA=AstraSync/4.2.27 UNTRUSTED/1.0; Protocol=12.0; PolicyKey=1591819263
2012-03-13 00:00:37,540 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=GetItemEstimate] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=GetItemEstimate;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;] sync - Response size 42 bytes
2012-03-13 00:00:37,540 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=GetItemEstimate] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=GetItemEstimate;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;] sync - HTTP/1.1 200 OK
2012-03-13 00:00:39,431 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [ip=127.0.0.1;] sync - POST Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync
2012-03-13 00:00:39,431 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [ip=127.0.0.1;] sync - DeviceID=MlSt362DF9F838583BBST7C77D8210BD; DeviceType=BlackBerry; UA=AstraSync/4.2.27 UNTRUSTED/1.0; Protocol=12.0; PolicyKey=1591819263
2012-03-13 00:00:39,434 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=Sync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;class=Calendar;folder=10;] sync - Client request version 19
2012-03-13 00:00:39,434 WARN  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=Sync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;class=Calendar;folder=10;] sync - MailItemIterator: exception during processing the batch
com.zimbra.cs.mailbox.MailServiceException$NoSuchItemException: no such appointment: 13193
ExceptionId:btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync:1331593239434:7c120eb7e3c72911
Code:mail.NO_SUCH_APPT Arg:(itemId, IID, "13193")
                at com.zimbra.cs.mailbox.MailServiceException.NO_SUCH_APPT(MailServiceException.java:217)
                at com.zimbra.cs.mailbox.MailItem.noSuchItem(MailItem.java:1316)
                at com.zimbra.cs.mailbox.Mailbox.getItemById(Mailbox.java:2223)
                at com.zimbra.cs.mailbox.Mailbox.getItemById(Mailbox.java:2127)
                at com.zimbra.cs.mailbox.Mailbox.getItemById(Mailbox.java:2119)
                at com.zimbra.zimbrasync.commands.MailItemIterator.hasNext(MailItemIterator.java:72)
                at com.zimbra.zimbrasync.commands.CalendarSync.findExpiredCalendarItems(CalendarSync.java:75)
                at com.zimbra.zimbrasync.commands.CalendarSync.findExpired(CalendarSync.java:180)
                at com.zimbra.zimbrasync.commands.CollectionSync.process(CollectionSync.java:535)
                at com.zimbra.zimbrasync.commands.Sync.process(Sync.java:38)
                at com.zimbra.zimbrasync.ZimbraSyncServlet.processCommand(ZimbraSyncServlet.java:549)
                at com.zimbra.zimbrasync.ZimbraSyncServlet.processPostRequest(ZimbraSyncServlet.java:456)
                at com.zimbra.zimbrasync.ZimbraSyncServlet.doPost(ZimbraSyncServlet.java:329)
                at com.zimbra.zimbrasync.ZimbraSync$HttpHandler.doPost(ZimbraSync.java:55)
                at com.zimbra.cs.extension.ExtensionDispatcherServlet.service(ExtensionDispatcherServlet.java:99)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:814)
                at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
                at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
                at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79)
                at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
                at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
                at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:155)
                at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
                at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
                at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218)
                at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
                at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
                at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:422)
                at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
                at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
                at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
                at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                at org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77)
                at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                at org.mortbay.jetty.Server.handle(Server.java:326)
                at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:585)
                at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:988)
                at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
                at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
                at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:415)
                at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429)
                at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
2012-03-13 00:00:39,435 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=Sync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;class=Calendar;folder=10;] sync - MailItemIterator: starting itemized mode
2012-03-13 00:00:39,435 WARN  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=Sync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;class=Calendar;folder=10;] sync - MailItemIterator: item skipped 13193
2012-03-13 00:00:39,435 WARN  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=Sync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;class=Calendar;folder=10;] sync - Unexpected server error
com.zimbra.zimbrasync.commands.UncheckedNoSuchItemException
                at com.zimbra.zimbrasync.commands.MailItemIterator.next(MailItemIterator.java:118)
                at com.zimbra.zimbrasync.commands.CalendarSync.findExpiredCalendarItems(CalendarSync.java:76)
                at com.zimbra.zimbrasync.commands.CalendarSync.findExpired(CalendarSync.java:180)
                at com.zimbra.zimbrasync.commands.CollectionSync.process(CollectionSync.java:535)
                at com.zimbra.zimbrasync.commands.Sync.process(Sync.java:38)
                at com.zimbra.zimbrasync.ZimbraSyncServlet.processCommand(ZimbraSyncServlet.java:549)
                at com.zimbra.zimbrasync.ZimbraSyncServlet.processPostRequest(ZimbraSyncServlet.java:456)
                at com.zimbra.zimbrasync.ZimbraSyncServlet.doPost(ZimbraSyncServlet.java:329)
                at com.zimbra.zimbrasync.ZimbraSync$HttpHandler.doPost(ZimbraSync.java:55)
                at com.zimbra.cs.extension.ExtensionDispatcherServlet.service(ExtensionDispatcherServlet.java:99)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:814)
                at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
                at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
                at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79)
                at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
                at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
                at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:155)
                at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
                at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
                at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218)
                at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
                at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
                at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:422)
                at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
                at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
                at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
                at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                at org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77)
                at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
                at org.mortbay.jetty.Server.handle(Server.java:326)
                at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:585)
                at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:988)
                at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
                at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
                at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:415)
                at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429)
                at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
2012-03-13 00:00:39,436 INFO  [btpool0-359://server.zimbra.com/Microsoft-Server-ActiveSync?User=mailuser&DeviceId=MlSt362DF9F838583BBST7C77D8210BD&DeviceType=BlackBerry&Cmd=Sync] [name=mail@serverzimbra.com;mid=2;ip=127.0.0.1;Cmd=Sync;DeviceID=MlSt362DF9F838583BBST7C77D8210BD;Version=12.0;class=Calendar;folder=10;] sync - HTTP/1.1 500 Unexpected server error