Synchronization Fails With Exception

Problem: Some applications fail to synchronize, and report either an uncaught exception for waitForKeyGenerator when calling the subscribe method, or an OutOfMemoryException.

Explanation: This may happen if Unwired Server does not send the key generator row in response to a login request from the client within 20 seconds of the client's subscribe request. This is typically because the mobile business object is handling a large amount of data. It can also happen if there is a connection problem with the enterprise information system (EIS) that slows response time.

Solution: Try one or more of these:
  • Increase the Unwired Server Max Heap Size. See the Configuring System Performance topic found in both System Administration and the Sybase Control Center online help.

    • System Administration for Sybase Unwired Platform > System Administration > Server Environment Administration > Server Administration Overview > Configuring System Performance Properties

    • Sybase Control Center > Configure > Configuring Unwired Platform > Unwired Server > Server Properties > General Server Ports > Configuring System Performance Properties

  • Redesign the mobile business object (MBO) to handle less data in a transaction.
  • Develop custom logging to better trap error messages for more details.