EMS server reports: "ERROR: Failed to create selector, Corrupt message“.
book
Article ID: KB0092708
calendar_today
Updated On:
Products
Versions
TIBCO Enterprise Message Service
-
Not Applicable
-
Description
Description: EMS server reports: "ERROR: Failed to create selector, Corrupt message“ when creating a message consumer with a selector.
Symptoms: EMS server reported message: "ERROR: Failed to create selector, Corrupt message“ when creating a message consumer with a selector. The message consumer can still receive messages.
Cause: The error message, "Failed to create selector, Corrupt message." is due to the selector "IN" array size reached an element limit on the EMS server side code. With EMS 8.2.1 and lower versions, the server enforces a limit of 32767 elements in the IN array while the EMS clients are not. An error to create a selector on the server when creating a consumer does not prevent the creation of the consumer. This introduces two defects:
- EMS-6295: A consumer create should fail if the server has an issue upon creating a selector. - EMS-6299: The 32,767 server limit on literals in a selector string set needs to be enforced in the client as well.
Issue/Introduction
EMS server reports: "ERROR: Failed to create selector, Corrupt message“.
Resolution
The 32,767 limit for "IN" arrary size within the selector is unreasonable performance wise. Revisit the selector code and the use of such a selector to avoid a huge "IN" array size in the selector. The two defects will be addressed in a future release.