Ice::MemoryLimitException and Ice.MessageSizeMax

in Help Center
Hi,
i am trying to transfer an object of size > 1 MB using icebox.
but i am getting an exception
Outgoing.cpp:478: Ice::UnknownLocalException:
unknown local exception:
..\..\include\Ice/BasicStream.h:112: Ice::MemoryLimitException:
protocol error: memory limit exceeded
I have tried increasing the Ice.MessageSizeMax on both client and servers but nothing happened.
please help.
TIA,
i am trying to transfer an object of size > 1 MB using icebox.
but i am getting an exception
Outgoing.cpp:478: Ice::UnknownLocalException:
unknown local exception:
..\..\include\Ice/BasicStream.h:112: Ice::MemoryLimitException:
protocol error: memory limit exceeded
I have tried increasing the Ice.MessageSizeMax on both client and servers but nothing happened.
please help.
TIA,
0
Comments
For your IceBox service where are you setting Ice.MessageSizeMax? Is it in the IceBox configuration or your service configuration. If you are setting it in the IceBox configuration you will need to make sure that IceBox.InheritProperties is set so that your service sees the property as well. Either that or move it to your service configuration.
I have set Ice.MessageSizeMax to 10240 (10 MB) in the config file of client (client.config file).
Similarly I have set Ice.MessageSizeMax to 10240 (10 MB) in the config file of server (config.xml file, as i am using IceGrid).