0 Replies Latest reply: Oct 12, 2009 5:11 PM by 807581 RSS

    JAXRS connector-getBusinessObjects methods is called twice on a single sync

    807581
      I developed a JAX-RS based connector in SGMP1.1. From the server.log, I observed that for each client's slowsync/fastsync, lifeCycle (with initialize operation) and getBusinessObjects methods are called twice. I made sure that the client did not sync twice and the connector is properly configured in the server. I am not sure if I have done anything wrong. Following are the messages from the server.log:

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      [#|2009-10-12T17:29:44.994-0400|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=a9bce3e489b7e04a1c7fc99adccc;|
      lifeCycle - check the credentials for username:asgcredentials,password:,asgcred,,asgcred,1,sessionid:,operation:initialize|#]

      [#|2009-10-12T17:29:44.999-0400|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=a9bce3e489b7e04a1c7fc99adccc;|
      getBusinessObjects - check the credentials for username:asgcredentials,password:,asgcred,,asgcred,1,sessionid:|#]

      [#|2009-10-12T17:29:45.028-0400|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=22;_ThreadName=a9bce3e489b7e04a1c7fc99adccc;|
      lifeCycle - check the credentials for username:asgcredentials,password:,asgcred,,asgcred,1,sessionid:,operation:terminate|#]

      [#|2009-10-12T17:29:45.030-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.security.SyncLoginModule|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|successful login for username=asgcredentials, back-end=JCR|#]

      [#|2009-10-12T17:29:45.032-0400|INFO|sun-appserver2.1|com.synchronica.ds.persistence.PersistentStore|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|principal id=null email=asgcredentials|#]

      [#|2009-10-12T17:29:45.032-0400|INFO|sun-appserver2.1|com.synchronica.ds.persistence.PersistentStore|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|find principal by email/device [asgcredentials/014095903595688]|#]

      [#|2009-10-12T17:29:45.041-0400|INFO|sun-appserver2.1|com.synchronica.ds.persistence.PersistentStore|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Read principal from email/device|#]

      [#|2009-10-12T17:29:45.041-0400|INFO|sun-appserver2.1|com.synchronica.ds.persistence.PersistentStore|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|email:    asgcredentials|#]

      [#|2009-10-12T17:29:45.042-0400|INFO|sun-appserver2.1|com.synchronica.ds.persistence.PersistentStore|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|username: null|#]

      [#|2009-10-12T17:29:45.042-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.session|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Closing OMA DS package #1|#]

      [#|2009-10-12T17:29:45.046-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.server.legacy.ClassicDatabase|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Read anchor for database; source=default tag=1255382774497 start=Mon Oct 12 17:16:22 EDT 2009 end=Mon Oct 12 17:16:24 EDT 2009|#]

      [#|2009-10-12T17:29:45.046-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.server.legacy.ClassicDatabase|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|LastTimestamp: tag=1255382774497 source=default startDate=Mon Oct 12 17:16:22 EDT 2009 endDate=Mon Oct 12 17:16:24 EDT 2009|#]

      [#|2009-10-12T17:29:45.046-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.server.legacy.ClassicDatabase|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|anchor: last: '1255382774497', next: '1255383575647'|#]

      [#|2009-10-12T17:29:45.047-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.server.legacy.ClassicDatabase|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Clear mappings for slow sync|#]

      [#|2009-10-12T17:29:45.061-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.server.standard.action.FinalInitializationAction|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Requesting device info from client: ./devinf12|#]

      [#|2009-10-12T17:29:45.062-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.session|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Closing OMA DS package #2|#]

      [#|2009-10-12T17:29:47.631-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.standard.SyncLog|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|[<] Sending back response, length: 1388, content type: application/vnd.syncml+xml|#]

      [#|2009-10-12T17:29:47.646-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|HTTP POST request answered|#]

      [#|2009-10-12T17:29:48.425-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=22;_ThreadName=a9bce3e489b7e04a1c7fc99adccc;|HTTP POST request received [thread name is not session ID yet]|#]

      [#|2009-10-12T17:29:48.426-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|HTTP POST session ID is aa807b38bbd4904f86b6bd7e12ad|#]

      [#|2009-10-12T17:29:48.426-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|[>] Content-Type: application/vnd.syncml+xml|#]

      [#|2009-10-12T17:29:48.426-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|[>] Content-Length: -1|#]

      [#|2009-10-12T17:29:48.427-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|[>] Transfer-Encoding chunked: true|#]

      [#|2009-10-12T17:29:48.427-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.servlet.SyncServlet|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|[>] User-Agent: null|#]

      [#|2009-10-12T17:29:48.754-0400|INFO|sun-appserver2.1|com.synchronica.ds.sync.standard.SyncLog|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|[>] Received request, length: 68330, content type: application/vnd.syncml+xml|#]

      [#|2009-10-12T17:29:48.782-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.session|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Closing OMA DS package #3|#]

      [#|2009-10-12T17:29:48.784-0400|INFO|sun-appserver2.1|com.synchronica.syncml.ds.server.legacy.ClassicDatabase|_ThreadID=22;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|Initialize SyncSource files|#]

      [#|2009-10-12T17:29:48.868-0400|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|
      lifeCycle - check the credentials for username:asgcredentials,password:,asgcred,,asgcred,1,sessionid:,operation:initialize|#]

      [#|2009-10-12T17:29:48.873-0400|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=20;_ThreadName=aa807b38bbd4904f86b6bd7e12ad;|
      getBusinessObjects - check the credentials for username:asgcredentials,password:,asgcred,,asgcred,1,sessionid:|#]

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------