on 11-01-2005 3:08 PM
Hi,
Can anybody help me to resolve this mapping error.I am getting this error when I test my mapping in test tab of message mapping. Even in SXMB_MONI it gives me During the application mapping com/sap/xi/tf/_ZZINT032ZZINT03201_to_UpdateGLSQL_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio
Messages:
08:47:33 Start of test
Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 9] in class com.sap.aii.mappingtool.flib3.TextFunctions method substring[TEST-101, com.sap.aii.mappingtool.tf3.rt.Context@1fe4659]
com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 9] in class com.sap.aii.mappingtool.flib3.TextFunctions method substring[TEST-101, com.sap.aii.mappingtool.tf3.rt.Context@1fe4659]
at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:55)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:369)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:287)
at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:63)
at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:232)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:432)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:170)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Root Cause:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:46)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:369)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:387)
at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:287)
at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:63)
at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:232)
at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:432)
at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:170)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceBean.execute(MapServiceBean.java:52)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0.execute(MapServiceRemoteObjectImpl0.java:259)
at com.sap.aii.ibrep.sbeans.mapping.MapServiceRemoteObjectImpl0p4_Skel.dispatch(MapServiceRemoteObjectImpl0p4_Skel.java:146)
at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:294)
at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:183)
at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:119)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 9
at java.lang.String.substring(String.java:1441)
at com.sap.aii.mappingtool.flib3.TextFunctions.substring(TextFunctions.java:32)
... 27 more
08:47:33 End of test
Thank you
Indrasena R. Janga
Indrasena,
Copy your inbound message into the Message Mapping -> Test tab and click on source message XML button (SRC button) and paste the copied message and run a test. Make sure that the message you are copying should be source message not the one which is diplayed with hyphens.
regards
Shravan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It looks to me as if you are using a substring function somewhere... and you have given an index of 9, but the original string is shorter than that.
Check the length of the string you are using as input to the substring function.
Cheers
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Indra, are you using a userdefined function.. It looks like your userdefined function is failing with string index out of range failure.. You can copy the payload to file (from SXMB_MONI) and then upload the payload to test tool in mapping (in IR)... you should be able to figure out why it is failing..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.