Exception Received with Large Amounts of Data

Problem: You receive an exception when attempting to download a large amount of data.

When the amount of data is too large to download to the Hybrid App client device, you may see a message similar to the following in the WorkflowClient trace log:
"iAnywhere.MobileOffice.AMP.ResponseRetryException" on device, and following error in WorkflowClient.log: 

20110616T110249.554|4|My:1 -- ExecuteRequest- > Out 
20110616T110249.694|1|iAnywhere.MobileOffice.AMP.ResponseRetryException: Exception of type 
'iAnywhere.MobileOffice.AMP.ResponseRetryException' was thrown. 
20110616T110249.694|1| at Sybase.UnwiredPlatform.WorkflowClient.Utils.CheckMessageSize
(String serializedMessage, ContextData oContextData, Boolean fromResponder) 
20110616T110249.694|1| at Sybase.UnwiredPlatform.WorkflowClient.Responder.ProcessMessageFromDevice
(ContextData oContextData, String sData, Boolean isSynchronous) 
20110616T110249.694|1| at Sybase.UnwiredPlatform.WorkflowClient.Responder.ProcessSyncRequest
(ContextData oContextData, String sData) 
20110616T110249.694|4|My:1 -- ProcessSyncRequest- > Out

Or, when the operation fails, you may see the phrases "COMException" and "Response too large" in the WorkflowClient trace log, or on the client.

Explanation: By default, only messages of 1MB or less are allowed.

Solution: Increase the allowed maximum Hybrid App message size (SupMaximumMessageLength). From Sybase Control Center, expand Hybrid App and select the Hybrid App of interest. Select the Context Variables tab. Modify the property.

See Configuring Context Variables for Mobile Workflow Packages in Sybase Control Center for Sybase Unwired Platform.