IBM Support

"An exception has been thrown when reading the stream" error when executing ruleset on RES

Troubleshooting


Problem

When executing ruleset on RES, how can the error message "An exception has been thrown when reading the stream" be resolved?

Symptom

Error message "An exception has been thrown when reading the stream"

Cause

This is caused by the size of the ruleset exceeding the default value set for the parameter maxReceivedMessageSize in the netTcpBinding section of your web.config.

Resolving The Problem

You should first run a sample ruleset that is small enough to ensure RES is setup correctly. Then, you shall try increasing the parameter maxReceivedMessageSize value to make sure it meets the requirement of your ruleset size.

Following is the corresponding section of web.config file with default value:

<netTcpBinding>
<binding name="TCPBinding" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Streamed" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="67108864">
....

[{"Product":{"code":"SS6MVU","label":"WebSphere ILOG Rules for .NET"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Module:Rule Execution Server","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.1;7.0;3.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21422658