Project

General

Profile

Bug #50043

partial contact sync on Android

Added by Dirk Ahrnke almost 4 years ago. Updated almost 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Alexey Bobyr
Category:
Scalix Wireless
Target version:
Start date:
10/21/2015
Due date:
10/21/2015
% Done:

100%

Estimated time:
Operation System:
--

Description

scalix-wireless-12.6.0.14724-1 on CentOS 6 (2.6.32-504.30.3.el6.x86_64)
4GB RAM
HTTPD=/usr/sbin/httpd.worker
JAVA_OPTS="-server -Xms1024m -Xmx1024m -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true"

pgres-schema cleaned for this user before testing

SAMSUNGGTI9195, Android 4.4.2

attempt to sync a mailbox with 40+ "real life" contacts

Symptom: only a few contacts are synced, in this setup the initial sync showed 5 contacts on the device.

scalix-wireless* with default settings does not show anything.

scalix-api.log only has:
2015-08-05 19:07:32,265 WARN [Imap.releaseCurrentFolder:2550] Folder was already 'really' closed explicitly by SMS: This operation is not allowed on a closed folder
2015-08-05 19:07:32,422 WARN [Imap.releaseCurrentFolder:2550] Folder was already 'really' closed explicitly by SMS: This operation is not allowed on a closed folder

Number of synced contacts do not change anymore, even when cleaning the contacts folder in the mailbox.

History

#1

Updated by Dirk Ahrnke almost 4 years ago

adding contacts in small batches (up to 5) to the mailbox (e.g. from a pst-file) after adding the EAS account will sync more contacts to the device.

some contacts may not sync.
scalix-wireless.log shows entries like:
2015-08-05 19:21:56,637 WARN [SyncCommand.outputContactsMessage:599] Contact: John Doe(00010d1885bc0c77) to output contained no contact details
2015-08-05 19:21:57,727 WARN [SyncCommand.outputContactsMessage:599] Contact: John Doe(00010d1885bc0c77) to output contained no contact details

scalix-api.log:
2015-08-05 19:21:56,480 WARN [Imap.doImapFetch:914] IMAP - clientid: 93E71AA278A3A2FA92C7773714479190, user: doe, currentFolder: Contacts - 1 null messages were passed into doImapFetch - they will be ignored.
2015-08-05 19:21:57,718 WARN [Imap.doImapFetch:914] IMAP - clientid: 93E71AA278A3A2FA92C7773714479190, user: doe, currentFolder: Contacts - 1 null messages were passed into doImapFetch - they will be ignored.

Note:
the contact in question was synced in another test case without problems

#2

Updated by Dirk Ahrnke almost 4 years ago

when adding larger batches to the contacts folder, sync may stop completely

note: most of these contacts have been synced properly in earlier test cases (small batches)

scalix-wireless.log:
2015-08-05 19:27:21,122 ERROR [Connection.execute:149] <html><head><title>Apache Tomcat/7.0.63 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - M00006 incremental folder sync failed</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>M00006 incremental folder sync failed</u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.63</h3></body></html>
2015-08-05 19:27:21,129 FATAL [PlatformClient.getMessageChanges:755] CLIENT - IO operation was interrupted while getting the message sequence key
com.scalix.wireless.api.service.PlatformException
at com.scalix.wireless.api.service.Connection.execute(Connection.java:151)
at com.scalix.wireless.api.service.PlatformClient.getMessageChanges(PlatformClient.java:752)
at com.scalix.wireless.controller.command.SyncCommand.doSync(SyncCommand.java:172)
at com.scalix.wireless.controller.command.SyncCommand.execute(SyncCommand.java:130)
at com.scalix.wireless.handlers.WirelessRequestImpl.execute(WirelessRequestImpl.java:224)
015-08-05 19:27:21,132 ERROR [SyncCommand.doSync:190] COMMAND - deviceId: SEC1A7038A0479B5, user: doe SYNC - could not retrieve message sequence key from server
org.apache.commons.httpclient.HttpException
at com.scalix.wireless.api.service.PlatformClient.getMessageChanges(PlatformClient.java:756)
at com.scalix.wireless.controller.command.SyncCommand.doSync(SyncCommand.java:172)
at com.scalix.wireless.controller.command.SyncCommand.execute(SyncCommand.java:130)
at com.scalix.wireless.handlers.WirelessRequestImpl.execute(WirelessRequestImpl.java:224)
at com.scalix.wireless.HttpRequestHandler.handleRequest(HttpRequestHandler.java:133)
at com.scalix.wireless.WirelessServlet.doPost(WirelessServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
2015-08-05 19:27:21,133 WARN [HttpRequestHandler.handleRequest:174] SERVLET - deviceId: SEC1A7038A0479B5, user: doe - Unable to send response to client: null
2015-08-05 19:27:21,134 WARN [WirelessServlet.doPost:110] SERVLET - deviceId: SEC1A7038A0479B5, user: doe - Uncaught and unhandled exception was reported by the server:
A00000 unknown error
Message:java.lang.NullPointerException

Stacktrace:
[Ljava.lang.StackTraceElement;@1b74296
at com.scalix.wireless.HttpRequestHandler.handleRequest(HttpRequestHandler.java:175)
at com.scalix.wireless.WirelessServlet.doPost(WirelessServlet.java:104)

Note: further logs available on request.

#3

Updated by Alexey Bobyr almost 4 years ago

It can be server side issue.
It does not return valid imap response for imap command in some cases.
"Mime Browser Controller" service can crash silently etc.
I have informed server developers and waiting for their response.

#4

Updated by Alexey Bobyr almost 4 years ago

It seems fixed.

This issue still present in Android 4.2.2 but I don't know why . Using Android Device Manager I debugged device logs when Contacts are synched and it did not helped me because in device logs it's just says:
09-30 09:52:59.561: E/Contacts[](625): Uncaught exception in EasSyncServicejava.lang.ArrayIndexOutOfBoundsException: length=4;

and that's all . I don't know what cause this exception. So for know this bug more related to the Android implementation of AS.

please download latest 12.6 from upcoming folder and update.

Also please ensure that you have recommended amount of allowed opened file descriptors . how to set please visit https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Tuning_and_Optimizing_Red_Hat_Enterprise_Linux_for_Oracle_9i_and_10g_Databases/chap-Oracle_9i_and_10g_Tuning_Guide-Setting_File_Handles.html

#5

Updated by Volodymyr Tomash almost 4 years ago

  • Due date set to 10/21/2015
  • Status changed from Answered to Resolved
  • % Done changed from 0 to 100
#6

Updated by Volodymyr Tomash almost 4 years ago

  • Subject changed from https://bugzilla.scalix.com/show_bug.cgi?id=50043 to partial contact sync on Android
#7

Updated by Alexey Bobyr almost 4 years ago

  • Target version changed from All to Scalix 12.6

Also available in: Atom PDF