on 05-14-2009 12:01 PM
Hi,
When a try to display queue of a RFC lookup i am getting below error.
"Generic exception".
What could be the problem?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.<init>(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.<init>(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>
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?
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.
Hi,
RFC lookup is done only at the run time. Hence you cant see its queue at design time.
Regards,
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.