cancel
Showing results for 
Search instead for 
Did you mean: 

Error during RFC Look UP

Former Member
0 Kudos

Hi,

When a try to display queue of a RFC lookup i am getting below error.

"Generic exception".

What could be the problem?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check whether the Business Service and communication channel name which you specified in the lookup program created and activated in the intgeration directory.

Regards,

Prakash

Former Member
0 Kudos

Yes. Business Service and communication channel are created and activated.

Former Member
0 Kudos

Yes.Business Service and communication channel are created nd activated.

former_member181962
Active Contributor
0 Kudos

Hi,

Increase the trace level to 3 in SXMB_ADM for IE Configuration and then run your mapping in the test tab of the mapping.

You can get more details about the problem.

Post some more details of the error to get better answers.

Regards,

ravi

Former Member
0 Kudos

Hi,

Check the lookup codes in the following blogs

/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

/people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups

/people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer

/people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi

/people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes

Regards,

Prakash

Former Member
0 Kudos

This is the error.

<Trace level="1" type="T"> *** END APPLICATION TRACE *** </Trace> <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_PAYEXT_PEXR2002_To_PEXR2002_BPM_ Thrown: com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping /PEXR2002/IDOC/HSBCEXTN//PEXR2002/IDOC/HSBCEXTN/ErrorType; root message: Generic Exception: at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:443) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:482) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:133) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:612) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:92) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:87) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:71) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:119) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:72) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at sun.reflect.GeneratedMethodAccessor844_10000.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at $Proxy682_10000.processFunction(Unknown Source) 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:585) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:183) at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:269) 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:152) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247) Caused by: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Generic Exception: at com.sap.aii.mappingtool.flib7.RfcPayload.setRfcExceptionProperty(RfcPayload.java:65) at com.sap.aii.mappingtool.flib7.RfcPayload.&lt;init&gt;(RfcPayload.java:41) at com.sap.aii.mappingtool.flib7.RfcLookup.cacheMore(RfcLookup.java:84) at com.sap.aii.mappingtool.tf7.rt.AMultiResIterator$MultiOutIterator.gotoNextContext(AMultiResIterator.java:95) at com.sap.aii.mappingtool.tf7.ConcurrentBuffer.gainValue(ConcurrentBuffer.java:30) at com.sap.aii.mappingtool.tf3.RQBuffer.getInt(RQBuffer.java:58) at com.sap.aii.mappingtool.tf3.RQPtr.get(RQPtr.java:24) at com.sap.aii.mappingtool.tf7.CBufIter.gotoNextContext(CBufIter.java:45) at com.sap.aii.mappingtool.tf7.rt.AResIterator.gotoNextContext(AResIterator.java:20) at com.sap.aii.mappingtool.tf7.rt.AbstractFunctionWrapper.gotoNextContext(AbstractFunctionWrapper.java:38) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:299) ... 45 more Caused by: com.sap.engine.lib.xml.parser.NestedSAXParseException: Generic Exception: at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:157) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at com.sap.aii.mappingtool.flib7.RfcPayload.setRfcExceptionProperty(RfcPayload.java:55) ... 55 more Caused by: com.sap.aii.mappingtool.flib7.RfcPayload$StopParsingException: at com.sap.aii.mappingtool.flib7.RfcPayload$RfcExceptionChecker.startElement(RfcPayload.java:93) at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.startElementEnd(SAXDocHandler.java:146) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1821) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2852) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:282) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:293) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:126) ... 57 more </Trace> <Trace level="1" type="T">RuntimeException when executing application mapping program com/sap/xi/tf/_MM_PAYEXT_PEXR2002_To_PEXR2002_BPM_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /PEXR2002/IDOC/HSBCEXTN//PEXR2002/IDOC/HSBCEXTN/ErrorType; root message: Generic Exception: Thrown: com.sap.aii.ib.core.mapping.execution.ApplicationRuntimeException: RuntimeException when executing application mapping program com/sap/xi/tf/_MM_PAYEXT_PEXR2002_To_PEXR2002_BPM_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /PEXR2002/IDOC/HSBCEXTN//PEXR2002/IDOC/HSBCEXTN/ErrorType; root message: Generic Exception: at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:118) at com.sap.aii.ib.server.mapping.execution.Mapping.execute(Mapping.java:60) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:87) at com.sap.aii.ib.server.mapping.execution.MappingHandler.map(MappingHandler.java:71) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:119) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:72) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:79) at sun.reflect.GeneratedMethodAccessor844_10000.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at $Proxy682_10000.processFunction(Unknown Source) 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:585) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:183) at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:269) 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:152) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247) Caused by: com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping /PEXR2002/IDOC/HSBCEXTN//PEXR2002/IDOC/HSBCEXTN/ErrorType; root message: Generic Exception: at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:443) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:482) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:133) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:612) at com.sap.aii.ib.server.mapping.execution.JavaMapping.executeStep(JavaMapping.java:92) ... 38 more Caused by: com.sap.aii.utilxi.misc.api.BaseRuntimeException: Generic Exception: at com.sap.aii.mappingtool.flib7.RfcPayload.setRfcExceptionProperty(RfcPayload.java:65) at com.sap.aii.mappingtool.flib7.RfcPayload.&lt;init&gt;(RfcPayload.java:41) at com.sap.aii.mappingtool.flib7.RfcLookup.cacheMore(RfcLookup.java:84) at com.sap.aii.mappingtool.tf7.rt.AMultiResIterator$MultiOutIterator.gotoNextContext(AMultiResIterator.java:95) at com.sap.aii.mappingtool.tf7.ConcurrentBuffer.gainValue(ConcurrentBuffer.java:30) at com.sap.aii.mappingtool.tf3.RQBuffer.getInt(RQBuffer.java:58) at com.sap.aii.mappingtool.tf3.RQPtr.get(RQPtr.java:24) at com.sap.aii.mappingtool.tf7.CBufIter.gotoNextContext(CBufIter.java:45) at com.sap.aii.mappingtool.tf7.rt.AResIterator.gotoNextContext(AResIterator.java:20) at com.sap.aii.mappingtool.tf7.rt.AbstractFunctionWrapper.gotoNextContext(AbstractFunctionWrapper.java:38) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:299) ... 45 more Caused by: com.sap.engine.lib.xml.parser.NestedSAXParseException: Generic Exception: at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:157) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at com.sap.aii.mappingtool.flib7.RfcPayload.setRfcExceptionProperty(RfcPayload.java:55) ... 55 more Caused by: com.sap.aii.mappingtool.flib7.RfcPayload$StopParsingException: at com.sap.aii.mappingtool.flib7.RfcPayload$RfcExceptionChecker.startElement(RfcPayload.java:93) at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.startElementEnd(SAXDocHandler.java:146) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1821) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2852) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:229) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parse_DTDValidation(Parser.java:282) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:293) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:126) ... 57 more </Trace> <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>

Former Member
0 Kudos

it shows error in the target field

/PEXR2002/IDOC/HSBCEXTN//PEXR2002/IDOC/HSBCEXTN/*ErrorType; root message: Generic Exception

can you check how this gets populated

Also check for any error in RFC receiver channel in the monitor

Former Member
0 Kudos

I have a RFC which fetches information from custom PI tables. There are some validation done in the RFC. If the validation fails, an exception is raised. Those errors caught here are mapped to Error Type which is a variable.

Which monitor are you talkng about? I have put error log from SXMB_MONI already. Are you talking about this?

Former Member
0 Kudos

check RFC receiver in communication channel monitoring

BTW if no exception is raised in RFC does the mapping work successfully

Former Member
0 Kudos

Yes.

Former Member
0 Kudos

There is no problem with RFC reciever channel . I checked in monitoring.

Its saying message processed for interface.

Former Member
0 Kudos

Hi,

How you are capturing the RFC return value when an exception is raised in RFC? Can you paste your look up code here so that it may throw more light on the problem.

Regards,

Vineetha.

Former Member
0 Kudos

Hi Veenitha,

I cannot paste the entire code here but yes i can try and explain in my very best to u what exactly have we done.

In se80, we have function module where, in the exception tab we have defined few ecpetion objects with its key and value. For example key is "Creditor bank details" and value is "Missing Creditor Bank ID".

In the function module, validations are done and if an exceptin needs to be raised the line of code over there is " Raise Creditor bank details".

Now, in the maaping, where we are calling this RFC, while defining the inputs and outputs to this RFC we enable the Use exception checkbox which is available in there. Then what ever exception is raised in the RFC is caught through this output and is stored in a variable. This variable is ERROR TYPE in our mapping that you can see in the trace.

Hope this is clear.

Former Member
0 Kudos

Hi Ravi,

Could you tell me how to enable trace 3 through SXMB_ADM.

If you can provide the steps for it, that would be better.

Former Member
0 Kudos

Hi,

Check this blog /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni to increase trace level

Regards,

Prakash

Former Member
0 Kudos

Hi Guys,

This is resolved now. I had to apply latest support package (SP07) on PI.

Former Member
0 Kudos

Hi,

RFC lookup is done only at the run time. Hence you cant see its queue at design time.

Regards,

Shweta.