IBM Support

MediationRuntimeException and CWSXM1025E on Move transformation on array elements in XSL Transformation primitive



In some cases, when applying Move transformation on array elements in an XSL Transformation primitive of a Mediation Flow, the following exception and error message may be received at runtime: MediationRuntimeException CWSXM1025E


The following exceptions will exist in the system log file:

0000006e ExceptionUtil E   CNTR0020E: EJB threw an unexpected (non-declared) exception during invocation of method "transactionRequiredActivitySessionNotSupported" on bean "BeanId(MMTApp#MMTEJB.jar#Module, null)". Exception data: CWSXM1025E: An unexpected exception occurred when the flow was called: Error reading XML
Caused by: java.lang.IndexOutOfBoundsException: The property named 'xxx' is already set, but the input XML contains more instances


If you have an array where the source and target element names do not match, but the type names do match, then a Move between these similar types does not work. Also, this issue only applies for complex element arrays.

Resolving The Problem

The correct way to map array elements is to use For-each transformation.

[{"Product":{"code":"SS7J6S","label":"WebSphere Enterprise Service Bus"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"XSLT Primitive","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"7.5;7.0;6.2;6.1.2;6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018