Kbase P140485: Index out of range error when accessing part of the multipart message by index which does not exist
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  23/02/2009 |
|
Status: Unverified
SYMPTOM(s):
Index out of range error when accessing part of the multipart message by index which does not exist
jms/impl/errorhndlr.p' Line:17) Index out of range.
Errors in AppServer log file
FACT(s) (Environment):
JMS client is run inside the AppServer
Using the following code: DYNAMIC-FUNCTION('isMessagePart' IN hMessage, index)
OpenEdge 10.1A
SonicMQ adapter
SonicMQ 7.6
CAUSE:
trying to access message part using a wrong index number
FIX:
Use the correct index number when accessing a part of the multipart message:
Example code:
DO idx = 1 TO DYNAMIC-FUNCTION('getPartCount' IN hMessage):
IF NOT DYNAMIC-FUNCTION('isMessagePart' IN hMessage, idx) THEN
DO: