cancel
Showing results for 
Search instead for 
Did you mean: 

Error with RFC Channel

Former Member
0 Kudos

Hello,

I am getting this error when I try a RFC call to a FM in XI from a UDF. It works in our development system but failed when I moved it to our production system. I've doubled checked and made sure everything moved in properly and I'm not seeing anything missing.

Is this a problem related to how the RFC adapter is set up in Dev and Prod??

com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /TransportOrderRequest_Ack/MessageID. The message is: Exception:[java.lang.RuntimeException: Parent not found: com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel GeneratedReceiverChannel_RFC (Party: , Service: XI, Object ID: 6a2e13d0389633889770183a73c8c2ab) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'.] in class com.sap.xi.tf._TransportOrderRequest_Monitor_MM_ method Get_Parent_MsgID$[0017E2C000F38942A0AA574A52E74E4C, com.sap.aii.mappingtool.tf3.rt.Context@1d1fc82] at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:403) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy152.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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) Root Cause: com.sap.aii.mappingtool.tf3.MessageMappingException: Runtime exception during processing target field mapping /TransportOrderRequest_Ack/MessageID. The message is: Exception:[java.lang.RuntimeException: Parent not found: com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel GeneratedReceiverChannel_RFC (Party: , Service: XI, Object ID: 6a2e13d0389633889770183a73c8c2ab) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'.] in class com.sap.xi.tf._TransportOrderRequest_Monitor_MM_ method Get_Parent_MsgID$[0017E2C000F38942A0AA574A52E74E4C, com.sap.aii.mappingtool.tf3.rt.Context@1d1fc82] at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:347) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:309) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:398) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy152.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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) Root Cause: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Exception:[java.lang.RuntimeException: Parent not found: com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel GeneratedReceiverChannel_RFC (Party: , Service: XI, Object ID: 6a2e13d0389633889770183a73c8c2ab) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'.] in class com.sap.xi.tf._TransportOrderRequest_Monitor_MM_ method Get_Parent_MsgID$[0017E2C000F38942A0AA574A52E74E4C, com.sap.aii.mappingtool.tf3.rt.Context@1d1fc82] at com.sap.aii.mappingtool.tf3.rt.FunctionWrapper.getValue(FunctionWrapper.java:56) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:279) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:309) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:398) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy152.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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) Root Cause: java.lang.reflect.InvocationTargetException at sun.reflect.GeneratedMethodAccessor866.invoke(Unknown Source) 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:47) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:279) at com.sap.aii.mappingtool.tf3.AMappingProgram.processNode(AMappingProgram.java:309) at com.sap.aii.mappingtool.tf3.AMappingProgram.start(AMappingProgram.java:398) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:142) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:68) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0_0.processFunction(MappingServiceObjectImpl0_0.java:131) at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187) at $Proxy152.processFunction(Unknown Source) at sun.reflect.GeneratedMethodAccessor297.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:100) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:157) 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) Caused by: java.lang.RuntimeException: Parent not found: com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel GeneratedReceiverChannel_RFC (Party: , Service: XI, Object ID: 6a2e13d0389633889770183a73c8c2ab) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not get functiontemplate from repository: com.sap.mw.jco.JCO$AbapException: (126) NOT_FOUND: NOT_FOUND'. at com.sap.xi.tf._TransportOrderRequest_Monitor_MM_.Get_Parent_MsgID$(_TransportOrderRequest_Monitor_MM_.java:105) ... 31 more

Any ideas?

Thanks,

Matt

Edited by: Julius Bussche on Mar 13, 2009 6:05 PM

Still an ugly error, but not as ugly as before...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I logged into my Production XI with the RFC user and it worked. My BASIS team has indicated that the server/system info on the RFC adapter is correct. I'm using the RFC lookup that is found on these forums so my only hard coding is the Business System and Communication channel.

// 1. Determine a channel (Business system, Communication channel)
Channel channel = LookupService.getChannel("XI","GeneratedReceiverChannel_RFC");
// 2. Get a RFC accessor for a channel.
accessor = LookupService.getRfcAccessor(channel);
// 3. Create a xml input stream representing the function module request message.
// InputStream inputStream = new ByteArrayInputStream(m.getBytes());
InputStream inputStream = new ByteArrayInputStream(m.getBytes ("UTF-8"));
// 4. Create xml payload
XmlPayload payload = LookupService.getXmlPayload(inputStream);
// 5. Execute Lookup.
Payload result = accessor.call(payload);

I have the business system "XI" as a "Service without Party".

I'm not sure what this means "If you have imported the RFC in your IR/ ESR in your Dev (any of the common SWCV) have you transported the same to Prd." I have created the UDF in IB and test the FM in production. Is there something else that needed to be transported (swcv??).

Thanks,

Matt

Former Member
0 Kudos

Hi

There are different ways of achieving this funtionality, based on the requirement.

In one of the options the structure of the RFC is imported in Int Repository. (just similar to any of the RFC scenarios of XI, where you import the metadata & use it in your mapping etc).

but based on a different requirement/solution, if you construct that structure in Java code & make a call, then it may not be required.

thats what I wanted you to check, if you have imported that & mistakenly not transported that to PRD

you can make a quick search of your FM in the Int Repository/ESR in both environments if at all they are used.

- Do a Cache refresh.

Regards

Vishnu

Answers (6)

Answers (6)

Former Member
0 Kudos

Hai !

I am facing the same problem can u pls tell me the solution how u have solved the issue.

I have checked all the thinks which has mentioned in this link.

Regard's

Preethi.

Former Member
0 Kudos

Hi

In addition to above

- Check if there are any Hard-Codings in your code w.r.t any of the environment information/ Credentials

- If you have imported the RFC in your IR/ ESR in your Dev (any of the common SWCV) have you transported the same to Prd. (you can also check with team for this info, if it was already there)

- Check & compare the status of the FM in ABAP stack of both environments

- Check authorisation of the RFC user as well.

additional info :

not sure if this can be a cause : but a thought, if you have correct data entry for your look-up. (I think you are trying to get the Parent_Id of the msg, from some other posts)

Regards

Vishnu

Former Member
0 Kudos

Sorry about the display of this message...I guess I should not have put the error message in a code window.

I did move the FM to Production and change the settings on the communication channel to match production. I did not look at the business system as the business system is the XI backend. What would i need to add to the XI business system to allow its JAVA side to communicate with the ABAP side?

Does something in the error message point to a problem with the business system?

Thanks,

Matt

Former Member
0 Kudos

Hi Matt,

May be....

Have u changed the RFC channel parameters like Aplication server details and logon details??

Regards

Biplab

Former Member
0 Kudos

does ur RFC Function Module is transported to QAS and PROD?

Make sure in RFC Lookup code, u gave correct Business System name of QAS,PROD Systems.

Former Member
0 Kudos

Are you sure that the Business system and RFC receiver Channel are imported properly and exist in your PI box.

Rajesh