cancel
Showing results for 
Search instead for 
Did you mean: 

ERROR- com.sap.aii.utilxi.misc.api.BaseRuntimeException

Former Member
0 Kudos

Hi All,

In mapping i used udf's. while testing the mapping i got runtime exception error as the following.i have refresh "SXI_CACHE" adn also executed the report "SAI_REFRESH_CACHE" but i am facing same problem. i used "DateTimeFormat" udf in this mappping. Please help me to solve this.

15:04:29 Start of test

Compilation of MM_EAST successful Method DateTimeFormat1$ with 2 arguments not found in class com.sap.xi.tf._MM_EAST_ com.sap.aii.utilxi.misc.api.BaseRuntimeException: Method DateTimeFormat1$ with 2 arguments not found in class com.sap.xi.tf._MM_EAST_ at com.sap.aii.mappingtool.tf3.AMappingProgram.getMethod(AMappingProgram.java:437) at com.sap.xi.tf._MM_EAST_.getMethod(_MM_EAST_.java:574) at com.sap.xi.tf._MM_EAST_.__CreateStructures(_MM_EAST_.java:247) at com.sap.aii.mappingtool.tf3.AMappingProgram.preStart(AMappingProgram.java:171) at com.sap.xi.tf._MM_EAST_.preStart(_MM_EAST_.java:583) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:332) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:60) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:105) at com.sap.aii.ibrep.server.mapping.ServerMapService.transformInternal(ServerMapService.java:431) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:169) 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:304) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) 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:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Method DateTimeFormat1$ with 2 arguments not found in class com.sap.xi.tf._MM_EAST_

15:04:33 End of test

regards

Peera

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

The problem is the DateTimeFormat UDF. I guess it accepts 2 arguments and one of the args is being passed as null.

To check this test ur mapping in test tab. After doing the test, you can come back and right click the function and select "Display Queue" option to check what exactly is passed at runtime.

Former Member
0 Kudos

Hi Anand,

while testing the mapping in test tab i got this error. and also i came back to design tab adn check the queue that time i got same error adn also it is not showing the queue.

actually my scenario is RFC to file. in this, for one mapping condition i used DateTimeFormat udf . i explained for what purpose i am using this udf.

in rfc i have a field through which Date adn time values are passed. First this udf get date vaule adn wait for time value after getting time value the udf do concat with both values adn then send to target field in format yyyy-MM-ddTHH:mm:ss.

i am giving javacode for DateTimeFormat adn classes which we are used for java code

import java.awt.Container;

import java.awt.TextComponent;

import java.awt.TextField;

import java.io.*;

public String dateTimeFormat(String a,String b,Container container)

{

String dateTimeString = "";

if (a.length() == 8 && b.length() == 6)

{

//Substrings for extracting date

String year = "";

String mon = "";

String day = "";

//Substrings for extracting time

String hour = "";

String min = "";

String sec = "";

//Extracting date into year , month and day

year = a.substring(0,4);

mon = a.substring(4,6);

day = a.substring(6,8);

//Extracting time into hour , minute and second

hour = b.substring(0, 2);

min = b.substring(2, 4);

sec = b.substring(4, 6);

//Now constructing final date time string

dateTimeString = year"-"mon"-"day"T"hour"-"min"-"sec;

}

return dateTimeString;

}

Thanks adn regards

Peera

Former Member
0 Kudos

Hi,

Plz chk whether ur source structure is okay. did u test ur mapping with the test tab? is tht thru?

regards

Former Member
0 Kudos

Hi Vijaya,

I went through what you said . i got this error while testing the mapping.

Source structure is ok. There is no problem that is RFC.

Regards

Peera