PI 7.11 - LookupException

Hi,
I'm using a RFC Lookup in a Java Mapping. In PI 7.0 it was working fine. Now we use the Mapping in our PI 7.11 Testsystem and I get following LookupException:
The channel with object ID bde7c594d5023c38913437978a558708 could not be found in the Integration Server Java Cache. Check if the channel exists in the Integration Builder Directory and execute a refresh of the Java Cache...
The Channel name and Business Service Name are correct. If I look in the Integration Builder, my Communication Channel has a different ID as the one above in the exception.
I did a complete restart, the error afterwards was all the same. How can I refresh the cache for the ID's?
Thanks in advance
Michael
Edited by: Michael Buchli on Aug 9, 2010 9:52 AM
As i invoked a Cache Update for the Communication Channel in Edit-CacheUpdate in Integration Builder, i got following message:
Content of object 'Communication Channel * | BS_... | CC_IN_RFC... (DirContext)' on selected cache instance does not match the content of the object in the Integration Directory; the cache instance has not been informed of the change

Hi
I've refreshed all caches in the PI system and restartet it many times. Always with the same result:
The channel with object ID bde7c594d5023c38913437978a558708 could not be found in the Integration Server Java Cache. Check if the channel exists in the Integration Builder Directory and execute a refresh of the Java Cache.
I get the channel information with the Java method LookupService.getChannel() and when i print out the channel information into the trace, i got following:
CC_xy (Party: , Service: BS_xyz, Object ID: bde7c594d5023c38913437978a558708)
The exception will be thrown at LookupService.getRfcAccessor(channel).
1. The Business System is valid and works for several Integration Scenarios.
2. The Communication Channel is valid and works for several Integration Scenarios.
3. The Remote Bapi worked under PI 7.0 with the equal Java Mapping.
Any suggestion for further debuggings or traps?
Thanks
Michael

Similar Messages

  • LookupException with PI 7.0 in HA Environment

    Hi,
    In one of our XSLT mappings we use a RFC LookupService to call an ABAP FM via an RFC Communication Channel. In our QA environment this works fine but it does not in our production environment where a <b>LookupException</b> is thrown.
    In the Java API documentation for the com.sap.aii.mapping.lookup.LookupService
    class I found the following "Note that you can only use channels which are <b>located on the Integration Server (central adapters). Decentral adapters,adpapters which are not located on the Integration Server cannot be used.</b> "
    This makes me suspicious about the SLD registration of the AE...
    A difference between our prod environment and test environment is that the prod env. is a HA environment with a ASCS instance and two dialog instances.
    In the Integration Directory I have noticed in the prod environment that for the Communication Channels the drop down for Adapter Engine contains the value "af.pxi.sapxidb" versus "Integration Server" as in the test environment.
    I have checked the SLD entries and associations according to note 764176 but I can't find anything obviously wrong.
    In the RWB the AE is shown as a central AE under the Integration Server node in the Component Monitoring.
    I'm most curious why the central AE shows as af.pxi.sapxidb in the integration directory, but any input is appreciated?
    rgds Johan

    Also note 1036727 is applied but no effect...
    //Johan

  • Org.jdesktop.application.ResourceMap$LookupException

    Hi..
    My gui application works fine if I dont jar the appln. If I jar it and invoke it like,D:\my_instal>java -Djava.library.path=.;.\lib -jar jaf.jar,I get the attached error..Any ideas?.ThanksSerialPort class loaded: jspWin
    Aug 4, 2008 2:44:07 PM org.jdesktop.application.Application$1 run
    SEVERE: Application class com.my.gui.my failed to launch
    org.jdesktop.application.ResourceMap$LookupException: string conversion failed:
    resource btnAddAllAction.Action.icon, type interface javax.swing.Icon
            at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:578)
            at org.jdesktop.application.ResourceMap.getIcon(ResourceMap.java:787)
            at org.jdesktop.application.ApplicationAction.initActionProperties(Appli
    cationAction.java:449)
            at org.jdesktop.application.ApplicationAction.<init>(ApplicationAction.j
    ava:252)
            at org.jdesktop.application.ApplicationActionMap.addAnnotationActions(Ap
    plicationActionMap.java:147)
            at org.jdesktop.application.ApplicationActionMap.<init>(ApplicationActio
    nMap.java:81)
            at org.jdesktop.application.ActionManager.createActionMapChain(ActionMan
    ager.java:64)
            at org.jdesktop.application.ActionManager.getActionMap(ActionManager.jav
    a:169)
            at org.jdesktop.application.ApplicationContext.getActionMap(ApplicationC
    ontext.java:303)
            at com.my.gui.MidletSelectionPanel.initialize(MidletSelectionPanel.
    java:96)
            at com.my.gui.MidletSelectionPanel.<init>(MidletSelectionPanel.java
    :85)
            at com.my.gui.my.initialize(my.java:81)
            at org.jdesktop.application.Application$1.run(Application.java:170)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: org.jdesktop.application.ResourceConverter$ResourceConverterException
    : couldn't find Icon resource "right_right.png" string: "right_right.png"
            at org.jdesktop.application.ResourceMap.loadImageIcon(ResourceMap.java:1
    378)
            at org.jdesktop.application.ResourceMap.access$000(ResourceMap.java:93)
            at org.jdesktop.application.ResourceMap$IconStringConverter.parseString(
    ResourceMap.java:1465)
            at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:573)
            ... 20 more
    Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class com.mo
    t.jaf.gui.my failed to launch
            at org.jdesktop.application.Application$1.run(Application.java:177)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: org.jdesktop.application.ResourceMap$LookupException: string conversi
    on failed: resource btnAddAllAction.Action.icon, type interface javax.swing.Icon
            at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:578)
            at org.jdesktop.application.ResourceMap.getIcon(ResourceMap.java:787)
            at org.jdesktop.application.ApplicationAction.initActionProperties(Appli
    cationAction.java:449)
            at org.jdesktop.application.ApplicationAction.<init>(ApplicationAction.j
    ava:252)
            at org.jdesktop.application.ApplicationActionMap.addAnnotationActions(Ap
    plicationActionMap.java:147)
            at org.jdesktop.application.ApplicationActionMap.<init>(ApplicationActio
    nMap.java:81)
            at org.jdesktop.application.ActionManager.createActionMapChain(ActionMan
    ager.java:64)
            at org.jdesktop.application.ActionManager.getActionMap(ActionManager.jav
    a:169)
            at org.jdesktop.application.ApplicationContext.getActionMap(ApplicationC
    ontext.java:303)
            at com.my.gui.MidletSelectionPanel.initialize(MidletSelectionPanel.
    java:96)
            at com.my.gui.MidletSelectionPanel.<init>(MidletSelectionPanel.java
    :85)
            at com.my.gui.my.initialize(my.java:81)
            at org.jdesktop.application.Application$1.run(Application.java:170)
            ... 8 more
    Caused by: org.jdesktop.application.ResourceConverter$ResourceConverterException
    : couldn't find Icon resource "right_right.png" string: "right_right.png"
            at org.jdesktop.application.ResourceMap.loadImageIcon(ResourceMap.java:1
    378)
            at org.jdesktop.application.ResourceMap.access$000(ResourceMap.java:93)
            at org.jdesktop.application.ResourceMap$IconStringConverter.parseString(
    ResourceMap.java:1465)
            at org.jdesktop.application.ResourceMap.getObject(ResourceMap.java:573)
            ... 20 more
            ... 20 more

    my application is modular.
    algorithm java classes are added at runtime and all they got at construction time is org.jdesktop.application.Application.
    how can i set a flag for my thread?
    is there any way to "catch" running Task in app and do something like this: Task.cancel() ?

  • Not able to launch Self Service Application thru JDeveloper

    We have been able to install and configure the JDeveloper and Self Service application, but not able to launch the application because of the error message below. We have followed the steps mentioned in the attached Quick Installation guide. We tried the solution available on the metalink for the error message" Unable to Load Template mappings...etc... ", but still not able to proceed.
    Error message in brief:
    WARNING: Unable to connect to URL: http://siebeloraclelab/custappsvcs_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSOAP=1 due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized
    *09/10/21 09:56:07 java.rmi.RemoteException: ; nested exception is:*
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized
    *09/10/21 09:56:07 at*
    INFO: base exception:oracle.apps.ss.base.model.util.SelfServiceRuntimeException: Unable to load template mappings. Web service for template mappings has failed. Contact your system administrator.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    /home/oracle/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config>
    /usr/local/jdk1.5.0_05/bin/java -server -classpath /software/stage/JDeveloper_5_0_5/j2ee/home/oc4j.jar:/software/stage/JDeveloper_5_0_5/jdev/lib/jdev-oc4j-embedded.jar -DSIEBEL_WEBSERVER_URL=http://siebeloraclelab/custappsvcs/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Xrs -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config /home/oracle/jdevhome/system/oracle.j2ee.10.1.3.41.57/embedded-oc4j/config/server.xml
    [waiting for the server to complete its initialization...]
    Oct 21, 2009 9:55:30 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Oct 21, 2009 9:55:31 AM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    09/10/21 09:55:36 INFO: SecuritySensitive.lookupException password is not available for indirect password via application context (user: DataBase_User_340lmWKiVBfJ13eCPe1ZnYEVBbHAQFgg)
    09/10/21 09:55:36 INFO: SecuritySensitive.lookupException password is not available for indirect password via application context (user: DataBase_User_mWuHsh7xUpwQan6gwUvnOfj1kZXRclnF)
    09/10/21 09:55:36 INFO: SecuritySensitive.lookupException password is not available for indirect password via application context (user: DataBase_User_o50bUFHCTQyJWR14Iwtu3lW4PpCErshd)
    09/10/21 09:55:36 INFO: SecuritySensitive.lookupException password is not available for indirect password via application context (user: DataBase_User_o50bUFHCTQyJWR14Iwtu3lW4PpCErshd)
    09/10/21 09:55:36 INFO: SecuritySensitive.lookupException password is not available for indirect password via application context (user: DataBase_User_WWuBI5VZMcLlQhE3h_3k7r-oDwKLD92G)
    09/10/21 09:55:36 INFO: SecuritySensitive.lookupException password is not available for indirect password via application context (user: DataBase_User_S3flyHmsbRISiQsYMq2qF-NwIwoWVOfe)
    WARNING: Code-source /software/stage/JDeveloper_5_0_5/jlib/adf-faces-impl.jar (from <classpath> in /software/stage/JDeveloper_5_0_5/install/ViewController/public_html) has the same filename but is not identical to /software/stage/JDeveloper_5_0_5/install/ViewController/public_html/WEB-INF/lib/adf-faces-impl.jar (from WEB-INF/lib/ directory in /software/stage/JDeveloper_5_0_5/install/ViewController/public_html/WEB-INF/lib). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.SelfService-ViewController-webapp:0.0.0.
    WARNING: Code-source /software/stage/JDeveloper_5_0_5/jlib/adf-faces-api.jar (from <classpath> in /software/stage/JDeveloper_5_0_5/install/ViewController/public_html) has the same filename but is not identical to /software/stage/JDeveloper_5_0_5/install/ViewController/public_html/WEB-INF/lib/adf-faces-api.jar (from WEB-INF/lib/ directory in /software/stage/JDeveloper_5_0_5/install/ViewController/public_html/WEB-INF/lib). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.SelfService-ViewController-webapp:0.0.0.
    WARNING: Code-source /software/stage/JDeveloper_5_0_5/adfc/lib/adf-controller.jar (from <classpath> in /software/stage/JDeveloper_5_0_5/install/ViewController/public_html) has the same filename but is not identical to /software/stage/JDeveloper_5_0_5/install/ViewController/public_html/WEB-INF/lib/adf-controller.jar (from WEB-INF/lib/ directory in /software/stage/JDeveloper_5_0_5/install/ViewController/public_html/WEB-INF/lib). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.web.SelfService-ViewController-webapp:0.0.0.
    09/10/21 09:55:47 log4j:WARN No appenders could be found for logger (com.sun.faces.config.ConfigureListener).
    09/10/21 09:55:47 log4j:WARN Please initialize the log4j system properly.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 44504 ms.
    **Target URL -- http://172.21.14.220:8988/faces/ss/telco/catalog/TelcoSiteSelection.jspx**
    09/10/21 09:56:00 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    Oct 21, 2009 9:56:05 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache Region Xml filename : oracle/apps/ss/base/model/resources/SelfServiceCacheRegion.xml
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region PRODUCT_LOV is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region ARTICLE_LOV is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region BINARY_OBJECT is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region ATTACHMENT is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region DOCUMENT is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region FAQ is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region NEWS is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region TOPALERT is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CONFIG is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region LOV is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region LOCALE is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region LOCALENAMES is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.setup.template.cache.TemplateRuleIdCacheLoader <init>
    INFO: invoking cache id loader
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region TEMPLATE_RULE_ID is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region TEMPLATE_RULE is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region TEMPLATE_MAPPING is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SERVICE_REQUEST_TYPE_MAPPING is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region TIMEZONE is created
    Oct 21, 2009 9:56:05 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CURRENCY is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SITE_CODE is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SITE_LANG is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SITE_ATTRIBUTE is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CATALOG is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CATALOG_CATEGORY is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CATEGORY_NLS is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CATEGORY is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SUB_CATEGORY is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CATEGORY_PRODUCT is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region PRODUCT_NLS is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region PRODUCT is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region PRODUCT_PRICE is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region PRODUCT_CLASS is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SORTED_PRODUCTS is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region SURVEY is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager fetchAttributes
    INFO: Couldnt set user defined attribute
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region BRANCH is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region CONFIGURATOR_MODEL is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.CacheManager initManually
    INFO: Cache region TIMEZONE_MAPPER is created
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.setup.template.cache.TemplateRuleCacheManager isTemplateCacheLoaded
    INFO: isTemplateCacheLoaded: false
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.setup.template.cache.TemplateRuleCacheManager loadAllRules
    INFO: entering loadAllRules method
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.security.SiebelWSHandler init
    INFO: init, begin
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.security.SiebelWSHandler init
    INFO: init, end
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.LocaleCacheManager getBaseLocale
    INFO: Exiting:en_US
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.LocaleCacheManager getLocaleFromString
    INFO: Exiting :en_US
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.LocaleCacheManager getLocaleAsMap
    INFO: Exiting with Locales loaded
    Oct 21, 2009 9:56:06 AM oracle.apps.ss.base.model.util.cache.LocaleCacheManager getSiebelLanguage
    INFO: Exiting :ENU
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler isStatefulAnonymousSession
    INFO: isStatefulAnonymousSession, stateful WS call for anonymous users?false
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler handleRequest
    INFO: PERF: Web Service Call
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler isStatefulAnonymousSession
    INFO: isStatefulAnonymousSession, stateful WS call for anonymous users?false
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler findSiebelUserName
    INFO: findSiebelUserName, real username=null
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler isStatefulAnonymousSession
    INFO: isStatefulAnonymousSession, stateful WS call for anonymous users?false
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler findSiebelSessionTokenFromCache
    INFO: findSiebelSessionTokenFromCache, previous siebel session token:null
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler handleRequest
    INFO: DEBUG: Request, UserId null SessionToken null TimeStamp 1256099167253
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler handleRequest
    INFO: PERF: document/http://siebel.com/SelfService/Common/Setup:SelfServiceTemplateRuleQueryPage
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.security.SiebelWSHandler handleRequest
    INFO: <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://siebel.com/SelfService/Common/Setup" xmlns:ns1="http://www.siebel.com/SelfService/Common/TemplateRule/Data" xmlns:ns2="http://www.siebel.com/SelfService/Common/TemplateRule/Id" xmlns:ns3="http://www.siebel.com/SelfService/Common/TemplateRule/Query">
    <env:Header>
    <sbh:SessionType xmlns:sbh="http://siebel.com/webservices">None</sbh:SessionType>
    </env:Header>
    <env:Body>
    <ns0:SelfServiceTemplateRuleQueryPage_Input>
    <ns0:NamedSearchSpec/>
    <ns3:ListOfSSTemplateRule pagesize="100" recordcountneeded="true">
    <ns3:SSTemplateRule>
    <ns3:ModId/>
    <ns3:ConditionTypeCode/>
    <ns3:ConditionValue/>
    <ns3:CatalogueCategoryId/>
    <ns3:EffectiveEndDate/>
    <ns3:EffectiveStartDate/>
    <ns3:PageTypeCode/>
    <ns3:RowId/>
    <ns3:TemplateName/>
    <ns3:WebSiteId/>
    </ns3:SSTemplateRule>
    </ns3:ListOfSSTemplateRule>
    <ns0:ExecutionMode>ForwardOnly</ns0:ExecutionMode>
    <ns0:LOVLanguageMode>LIC</ns0:LOVLanguageMode>
    <ns0:ViewMode>All</ns0:ViewMode>
    <ns0:PickListName/>
    </ns0:SelfServiceTemplateRuleQueryPage_Input>
    </env:Body>
    </env:Envelope>
    Oct 21, 2009 9:56:07 AM oracle.webservices.client
    WARNING: Unable to connect to URL: http://siebeloraclelab/custappsvcs_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&WSSOAP=1 due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized
    *09/10/21 09:56:07 java.rmi.RemoteException: ; nested exception is:*
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized
    *09/10/21 09:56:07 at oracle.apps.ss.base.model.setup.template.proxies.runtime.SelfServiceTemplateRule_Stub.selfServiceTemplateRuleQueryPage(SelfServiceTemplateRule_Stub.java:146)*09/10/21 09:56:07 at oracle.apps.ss.base.model.setup.template.proxies.SelfServiceTemplateRuleClient.selfServiceTemplateRuleQueryPage(SelfServiceTemplateRuleClient.java:40)
    09/10/21 09:56:07 at oracle.apps.ss.base.model.setup.template.cache.TemplateRuleIdCacheLoader.load(TemplateRuleIdCacheLoader.java:119)
    09/10/21 09:56:07 at oracle.ias.cache.CacheLoader.callLoad(Unknown Source)
    09/10/21 09:56:07 at oracle.ias.cache.CacheHandle.findObject(Unknown Source)
    09/10/21 09:56:07 at oracle.ias.cache.CacheHandle.locateObject(Unknown Source)
    09/10/21 09:56:07 at oracle.ias.cache.CacheAccess.get(Unknown Source)
    09/10/21 09:56:07 at oracle.apps.ss.base.model.util.cache.CacheManager.get(CacheManager.java:439)
    09/10/21 09:56:07 at oracle.apps.ss.base.model.util.cache.CacheManager.get(CacheManager.java:426)
    09/10/21 09:56:07 at oracle.apps.ss.base.model.setup.template.cache.TemplateRuleCacheManager.loadAllRules(TemplateRuleCacheManager.java:43)
    09/10/21 09:56:07 at oracle.apps.ss.base.model.util.cache.CacheManager.initialize(CacheManager.java:190)
    09/10/21 09:56:07 at oracle.apps.ss.base.view.util.SelfServiceFilter.init(SelfServiceFilter.java:76)
    09/10/21 09:56:07 at com.evermind.server.http.HttpApplication.getFilterConfig(HttpApplication.java:7585)
    09/10/21 09:56:07 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:568)
    09/10/21 09:56:07 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    09/10/21 09:56:07 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    09/10/21 09:56:07 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    09/10/21 09:56:07 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    09/10/21 09:56:07 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    09/10/21 09:56:07 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    09/10/21 09:56:07 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    09/10/21 09:56:07 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    09/10/21 09:56:07 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    09/10/21 09:56:07 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    09/10/21 09:56:07 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    09/10/21 09:56:07 at java.lang.Thread.run(Thread.java:595)
    09/10/21 09:56:07 Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized
    09/10/21 09:56:07 at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:172)
    09/10/21 09:56:07 at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:148)
    09/10/21 09:56:07 at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:175)
    09/10/21 09:56:07 at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
    09/10/21 09:56:07 at oracle.apps.ss.base.model.setup.template.proxies.runtime.SelfServiceTemplateRule_Stub.selfServiceTemplateRuleQueryPage(SelfServiceTemplateRule_Stub.java:130)
    09/10/21 09:56:07 ... 25 more
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.setup.template.cache.TemplateRuleIdCacheLoader load
    SEVERE: RemoteException occured
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.util.cache.LocaleCacheManager getBaseLocale
    INFO: Exiting:en_US
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.util.cache.LocaleCacheManager getLocaleFromString
    INFO: Exiting :en_US
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.util.cache.CacheManager get
    SEVERE: CacheException: during get
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.util.cache.CacheManager get
    INFO: base exception:oracle.apps.ss.base.model.util.SelfServiceRuntimeException: Unable to load template mappings. Web service for template mappings has failed. Contact your system administrator.
    Oct 21, 2009 9:56:07 AM oracle.apps.ss.base.model.util.cache.CacheManager get
    SEVERE: self service runtime exception

    Hi,,
    Seems like configuration problem at Siebel end.Check following points:-
    1) Are you able to invokde SelfServiceTemplate rule web service from [SOAP UI|http://www.soapui.org/].
    2) Recheck configuration details of custom object manager in siebel as mentioned in Self Service application developer guide.
    3) Recheck Siebel web service url which you have given...
    Regards,
    Vikram

  • PI 7.11 mapping lookup - data enrichment - appropriate approach?

    Hi guys,
    we just upgraded from PI 7.0 to PI 7.11.
    Now I´m facing a new scenario where an incoming order have to be processed.
    (HTTP to RFC)
    Furthermore each item of the order have to be enriched by data looked up in a SAP ERP 6.0 system.
    the lookup functionality could be accessed during RFC or ABAP Proxy
    With the new PI release we have several possibilities to implement this scenario, which are ...
    (1) graphical RFC Lookup in message mapping
    (2) ccBPM
    (3) using of the lookup API in java mapping
    (4) message mapping RFC Lookup in a UDF
    Because of performance reason I prefer to make use of the Advanced Adapter Engine, if this is possible.
    Further there should only one lookup request for all items of the order instead of each order item.
    I tried to implement possiblity (1), but it seems to be hard to fill the request table structure of the RFC function module. All examples in SDN only uses simple (single) input parameters instead of tables. Parsing the result table of the RFC seems to be tricky as well.
    Afterwards I tried to implement approach (3) using an SOAP adapter as Proxy with the protocol XI 3.0.
    (new functionality in PI 7.11)
    But this ends up in a crazy error message so it seems that SOAP adapter could not used as proxy adapter in this case.
    ccBPM seems also be an good and transparent approach, because there is no need of complex java code or lookup api.
    So  the choice is not so easy.
    What´s the best approach for this scenario??
    Are my notes to the approach correct or do I use/interpret it wrong?
    Any help, ideas appreciated
    Kind regards
    Jochen

    Hi,
    the error while trying to use the soap channel for proxy communication is ....
    com.sap.aii.mapping.lookup.LookupException: Exception during processing the payload. Error when calling an adapter by using the communication channel SOAP_RCV_QMD_100_Proxy (Party: , Service: SAP_QMD_MDT100_BS, Object ID: 579b14b4c36c3ca281f634e20b4dcf78) XI AF API call failed. Module exception: 'com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Unexpected length of element <sap:Error><sap:Code> = XIProxy; HTTP 200 OK'. Cause Exception: 'java.io.IOException: Unexpected length of element <sap:Error><sap:Code> = XIProxy; HTTP 200 OK'.
    so this feature seems not to work for soap lookups, isn´t it.
    Kind regards
    Jochen

  • RFC lookup error

    Hi all,
    I am doing an RFC lookup to increment counter. I am facing a problem.
    I followed the code written by Michael. https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    My udf is as shown below: -
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace();
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    // filling the string with our RFC-XML (with values)
    String m="<?xml version="1.0" encoding="UTF-8"?><ns0:_-GLB_-ZGT_RFBIBL00_COUNTER xmlns:ns0="urn:sap-com:document:sap:rfc:functions"><IM_V_FILENAME>CA10.NCH.FCIPAY04</IM_V_FILENAME><IM_V_MSGID>"MSGID"</IM_V_MSGID><IM_V_WRNO>DEVWR0001725</IM_V_WRNO></ns0:_-GLB_-ZGT_RFBIBL00_COUNTER>";
    importanttrace.addWarning("Input value is  "+m);
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    // 1. Determine a channel (Business system, Communication channel)
    Channel channel = LookupService.getChannel(receiverBS,"CC_RFC_RCV_AMS_R3F_DEVWR001725");
    // 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());
    // 4. Create xml payload
    XmlPayload payload = LookupService.getXmlPayload(inputStream);
    // 5. Execute lookup.
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    out = new ByteArrayOutputStream(1024);
    byte[] buffer = new byte[1024];
    for (int read = in.read(buffer); read > 0; read = in.read(buffer)) {
    out.write(buffer, 0, read);
    content = out.toString();
    catch(LookupException e)
    importanttrace.addWarning("Error while lookup " + e.getMessage() );
    catch(IOException e)
    importanttrace.addWarning("Error " + e.getMessage() );
    finally
    if (out!=null) {
    try {
    out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing stream " + e.getMessage() );
    // 7. close the accessor in order to free resources.
    if (accessor!=null) {
    try {
    accessor.close();
    } catch (LookupException e) {
    importanttrace.addWarning("Error while closing accessor " + e.getMessage() );
    //returning the result u2013 RFC-XML.response
    if ((content.substring(143,150)).equals("NOENTRY"))
    ExceptionThrower.generate("INVALID INPUT DEVWR NUMBER OR ID" );
    return "Nothing";
    else
    return (content.substring(143,155));
    The problem i am facing is that, i am not able to pass the IM_V_MSGID parameter to the function module.
    The other 2 parameters i can pass. that is IM_V_FILENAME and IM_V_WRNO.
    i am able to extract the message ID using
    java.util.Map param = container.getTransformationParameters();
    String MSGID = (String) param.get (StreamTransformationConstants.MESSAGE_ID);
    and displayed it in SXI_MONITOR trace also using importanttrace.addWarning("Input value is  "+m);
    i got the correct MSGID in the trace.But the problem is that this value is not getting passed to the FM. Cos the table is supposed to increment the counter whenever the MSGID value changes.
    I tried hardcoding the MSGID value to 'abc' or '123' like values but the same thing happended. The counter will not increment. The FM is working perfectly when i run it and change the MSGID values manually.
    Thanks
    Pratichi

    Hi,
    We have done this by creating an FM in XI ABAP stack:
    FUNCTION Z_ZBXI_GET_PRE_MSG_ID.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_CURRMSGID) TYPE  CHAR40
    *"  EXPORTING
    *"     VALUE(E_PREMSGID) TYPE  CHAR40
    DATA: lv_currmsgid type SXMSPMAST-MSGGUID,
          lv_parentmsgid LIKE SXMSPMAST-PARENTMSG,
          lv_premsgid LIKE SXMSPMAST-MSGGUID.
    lv_currmsgid = i_currmsgid.
    select single PARENTMSG from SXMSPMAST into lv_parentmsgid where MSGGUID = lv_currmsgid.
    e_premsgid = lv_parentmsgid.
    ENDFUNCTION.
    You need to call this FM through RFC lookup UDF in your mapping.
    Let me know if it works for you.
    Regards,
    Shweta

  • Sending a table to remote RFC in Java UDF

    Hello,
    <br><br>
    We use the API "com.sap.aii.mapping.lookup" often to make RFC calls from a UDF and return data. We typically create an import parameter in the Function Module and pass the value into the RFC. We now need to send in an unlimited number of values so we understand that instead of the import paramter we need to use a table. The problem is we get an error when we build the XML in our UDF and try to call the RFC. We tried wrapping the values in item nodes and several other approaches but we are not sure if we can populate a table via XML and make the RFC call.
    <br><br>
    Example of what we tried:
    <br><br>
    String sRfcxml = "&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;&lt;ns0:ZCAE_MX_CONTRACT_ROUTING xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"&gt;&lt;E_ZCAE_COCODE&gt;&lt;item&gt;0445&lt;/item&gt;&lt;/E_ZCAE_COCODE&gt;&lt;/ns0:ZCAE_MX_CONTRACT_ROUTING&gt;";
    <br><br>
    Regardless of what we try we get the following error during the call:
    <br><br>
    error of "RuntimeException in Message-Mapping transformation: Exception:[java.lang.RuntimeException: com.sap.aii.mapping.lookup.LookupException: Exception during processing the payload.Problem when calling an adapter by using communication channel RFC_RCV_ORGDATA (Party: , Service: ValidateXIData_BusiServ, Object ID: d5401e52ad1039df96f02bde53b23c06) 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 convert request from XML to RFC:com.sap.mw.jco.JCO$Exception: (130) JCO_ERROR_XML_PARSER: Expecting a tag to begin with '<' instead of '0', in "ODE><item>0965</item"'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$Exception: (130) JCO_ERROR_XML_PARSER: Expecting a tag to begin with '<' instead of '0', in "ODE><item>0965</item"'. com.sap.aii.mapping.lookup.LookupException: Problem when calling an adapter by using communication channel RFC_RCV_ORGDATA (Party: , Service: ValidateXIData_BusiServ, Object ID: d5401e52ad1039df96f02bde53b23c06) 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 convert request from XML to RFC:com.sap.mw.jco.JCO$Exception: (130) JCO_ERROR_XML_PARSER: Expecting a tag to begin with '<' instead of '0', in "ODE><item>0444</item"'. Cause Exception: 'error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$Exception: (130) JCO_ERROR_XML_PARSER: Expecting a tag to begin with '<' instead of '0', in "ODE><item>0444</item"'."
    <br><br>
    Now if we do not pass any data or use an import versus table parameter in the function module it works just fine.
    <br><br>
    We know we can work around this by using an import parameter and stringing the values together with a delimiter and then breaking this apart in ABAP but we are looking for a cleaner solution.
    <br><br>
    Any thoughts?
    <br><br>
    Joe
    Edited by: Joe Wright on Nov 16, 2009 10:45 PM

    Not sure what's wrong, but are you sure your "stringed" XML document matches the expected RFC structure ? Btw, I'd replace (though it could be considered as a cosmetic change) to replace "ns0" with "rfc" in your namespaces declaration, it's what you'll see in all imported RFC objects in XI/PI
    Rgds
    Chris

  • UDF For Retrieving the Tax Code based on PO

    Hi all,
    Mine is a file to Idoc scenario.
    I wrote a FM to retrieve the Tax Code based on PO .
    Created the udf which directly gets the Taxcode from the r/3 with out importing in to the imported objects,is this correct i never tried this before.
    Find the UDF for the Same.
    final String    CHANNEL_NAME = "GeneratedReceiverChannel_RFC",
         VALNOTFOUND = "VALUE_NOT_FOUND",
         SAPRFCNS = "urn:sap-com:document:sap:rfc:functions",
         TAG_FM = "Z_P_INT012_RFC_LOOKUP",
         TAG_TAX_CODE = "T_TAX_CODE",
         TAG_TAX_CODE_P = "TAX_CODE";
    AbstractTrace trace = container.getTrace();
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = null;
              factory.setNamespaceAware(false);
              factory.setValidating(false);
              try {
                   builder = factory.newDocumentBuilder();
              } catch (Exception e) {
                   trace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
              Document docReq = null;
              try {
                   // Building up RFC Request Document
                   docReq = builder.newDocument();
                   Node root = docReq.appendChild(docReq.createElementNS(SAPRFCNS, TAG_FM));
                   Node nodeTbOpt = root.appendChild(docReq.createElement(TAG_TAX_CODE));
                   for (int i = 0; i < pernr.length; i++) {
                        Node nodeTbOptItem = nodeTbOpt.appendChild(docReq.createElement("item"));
                        nodeTbOptItem.appendChild(docReq.createElement(TAG_TAX_CODE_P)).appendChild(docReq.createTextNode(TAX_CODE<i>));
              } catch (Exception e) {
                   trace.addWarning("Error while building RFC Request  - " + e);
              trace.addInfo("RFC Request XML: " + docReq.toString());
                                                    //trace.addWarning("RFC Request XML: " + docReq.toString());
              // Lookup
              Payload load = null;
              try {
                   Channel channel = LookupService.getChannel(receiver[0], CHANNEL_NAME);
                   RfcAccessor accessor = LookupService.getRfcAccessor(channel);
                   InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());
                   XmlPayload payload = LookupService.getXmlPayload(is);
                   load = accessor.call(payload);
              } catch (LookupException e) {
                   trace.addWarning("Error during lookup - " + e);
              // Parsing RFC Response Document
              Document docRsp = null;
              try {
                   docRsp = builder.parse(load.getContent());
              } catch (Exception e) {
                   trace.addWarning("Error when parsing RFC Response - " + e.getMessage());
              trace.addInfo("RFC Response XML: " + docRsp.toString());
                                                    //trace.addWarning("RFC Response XML: " + docRsp.toString());
              try {
                   NodeList res = docRsp.getElementsByTagName("item");
                   for(int i=0;i<res.getLength();i++){
                        NodeList itemNodes = res.item(i).getChildNodes();
                        Map itemMap = new HashMap();
                        for(int j=0;j<itemNodes.getLength();j++){
                             itemMap.put(itemNodes.item(j).getNodeName(), itemNodes.item(j).getFirstChild().getNodeValue());
                        rows.add(itemMap);
                                                            catch (Exception e) {
                   trace.addWarning("Result value not found in DOM - " + e);
                   result.addValue("true");
    Error:
    16:24:08 Start of test
    Source code has syntax error:  /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors  Source code has syntax error:  /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:598: 'class' or 'interface' expected public void TaxValues$(String[] a,String[] b,ResultList result,Container container){ ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:618: 'class' or 'interface' expected } ^ /usr/sap/XD1/DVEBMGS30/j2ee/cluster/server0/./temp/classpath_resolver/Map283041f0edf311dd960b0003bacd2461/source/com/sap/xi/tf/_MM_INT012_INVOICE_DET_.java:619: 'class' or 'interface' expected ^ 3 errors
    16:24:11 End of test.

    Hi Potharaju,
    Why don't you try this, that really works:
    If you are using PI 7.1:
    http://help.sap.com/saphelp_nwpi71/helpdata/en/33/1ec6ced273493a993a80c2301c03da/frameset.htm
    If you are using XI 3.0, PI 7.0
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    Try with these.
    Regards,
    Juan

  • Issue with RFClookup in PI 7.3

    Hi all,
        I'm doing up gradation from PI7.0 to PI 7.3 and I'm facing below  issues in 7.3 however it was successful in 7.0. issues are mentioned below.
    1. while testing at message mapping getting the below error and it is the same when I checked the RFC channel under CC monitoring.
       Error during lookup - Exception during processing the payload. Error when calling an adapter by using the communication channel RFC_RCV_VMLookUp (Party: , Service: ValueMappingLookup, Object ID: 12fc6a60da95345f99d4a4f0143e76c4) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.adapter.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(2)'.
    *2. when I checked the display queue of the RFClookup field in MM its getting below java syntax errors and even the namespaces/libraries(errors which mentioned below) are defined in the import section.*
    Java Area import, Line 8:
    package com.aii.valuemapping.rfc.alert does not exist import com.aii.valuemapping.rfc.alert.*; ^
    Java Area import, Line 9:
    package com.aii.valuemapping.rfc.lookup does not exist import com.aii.valuemapping.rfc.lookup.*; ^
    Function RFCLookup_Mandatory, Line 25:
    cannot find symbol symbol  : variable UDFReader location: class com.sap.xi.tf._CustomerSpecification_TO_CustomerSpecification_GV_      element[0] =UDFReader.getString("CONTAINER_NAME_MESSAGE_ID");
       there is no issues with 7.0 for same thing  and its success however in 7.3 getting these. Please suggest.
    rgds,
    venkat

    Hi Inaki,
    I have not got PI 7.3 upgraded yet due to other issues here.
    Though I am getting error doing RFCLookup in PI 7.3 message mapping.
    I get this when I run the map locally/ end-end.
    The parameters are specified correctly in message map signature and in Operation mapping.
    There are no issues with the Cache as well.
    Still getting the error.
    Error says:
    Caused by: com.sap.aii.mapping.lookup.LookupException: Connection to system RUNTIME using application RUNTIME lost. Detailed information: Error accessing "http://shcgbth2dsu12.gb.spire.ads:50000/run/system/int?container=web" with user "PIREP<system_Id>". Response code is 403, response message is "Forbidden"
    Please let me know how can I solve it..
    Thanks
    Shaily

  • Need help on RFC look up in PI 7.0

    Dear experts ,
    I am working on Jdbc to Abap Proxy  scenario where i need to perform a RFC Look up . I have searched in SCN  and found some help ful blogs, but still need more information in below points.
    My requirement is need to fetch Cost Center (KOSTL) by taking Personal number(PERNR)  as Input parameter.
    1) Do we have to create and import the RFC into PI ?
    2) Do we need to create a UDF ? If yes, Kindly provide some useful links.
    Thanks in Advance,
    Mohammed

    Hi indrajit,
      i had written :  java.util.Map map;" in the import secion of UDF. but still i am getting the following errors
    Source code has syntax error:  /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:3: cannot resolve symbol symbol : class map location: interface java.util.Map import com.sap.aii.mappingtool.tf3.*;import com.sap.aii.mappingtool.tf3.rt.*;import java.util.*;import java.io.*; import java.lang.reflect.*;import java.util.Map.map; ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:257: cannot resolve symbol symbol : class RfcAccessor location: class com.sap.xi.tf._MM_RMF_TO_SAP_ RfcAccessor accessor = null; ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:262: cannot resolve symbol symbol : class Channel location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Channel channel = LookupService.getChannel(BS_SAP_R3,CC_RFC_LOOK_UP_CRMNEXT); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:262: cannot resolve symbol symbol : variable BS_SAP_R3 location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Channel channel = LookupService.getChannel(BS_SAP_R3,CC_RFC_LOOK_UP_CRMNEXT); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:262: cannot resolve symbol symbol : variable CC_RFC_LOOK_UP_CRMNEXT location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Channel channel = LookupService.getChannel(BS_SAP_R3,CC_RFC_LOOK_UP_CRMNEXT); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:262: cannot resolve symbol symbol : variable LookupService location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Channel channel = LookupService.getChannel(BS_SAP_R3,CC_RFC_LOOK_UP_CRMNEXT); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:264: cannot resolve symbol symbol : variable LookupService location: class com.sap.xi.tf._MM_RMF_TO_SAP_ accessor = LookupService.getRfcAccessor(channel); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:268: cannot resolve symbol symbol : class XmlPayload location: class com.sap.xi.tf._MM_RMF_TO_SAP_ XmlPayload payload = LookupService.getXmlPayload(inputStream); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:268: cannot resolve symbol symbol : variable LookupService location: class com.sap.xi.tf._MM_RMF_TO_SAP_ XmlPayload payload = LookupService.getXmlPayload(inputStream); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:270: cannot resolve symbol symbol : class Payload location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Payload result = null; ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:275: cannot resolve symbol symbol : class DocumentBuilderFactory location: class com.sap.xi.tf._MM_RMF_TO_SAP_ DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:275: cannot resolve symbol symbol : variable DocumentBuilderFactory location: class com.sap.xi.tf._MM_RMF_TO_SAP_ DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:276: cannot resolve symbol symbol : class DocumentBuilder location: class com.sap.xi.tf._MM_RMF_TO_SAP_ DocumentBuilder builder = factory.newDocumentBuilder(); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:277: cannot resolve symbol symbol : class Document location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Document document = builder.parse(in); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:278: cannot resolve symbol symbol : class NodeList location: class com.sap.xi.tf._MM_RMF_TO_SAP_ NodeList list = document.getElementsByTagName("I_KOSTL"); // The lookupValue is available as WA tag in the response ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:279: cannot resolve symbol symbol : class Node location: class com.sap.xi.tf._MM_RMF_TO_SAP_ Node node = list.item(0); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:283: cannot resolve symbol symbol : variable returnValue location: class com.sap.xi.tf._MM_RMF_TO_SAP_ returnValue = node.getNodeValue(); ^ /usr/sap/XD1/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map2d519647b0c211e39616000000844522/source/com/sap/xi/tf/_MM_RMF_TO_SAP_.java:290: cannot resolve symbol symbol : class LookupException location: class com.sap.xi.tf._MM_RMF_TO_SAP_ } catch (LookupException e) { ^ 18 errors
    so can you please explain, how can i import those files.

  • In XI mapping, how to get number from a number_range object in SAP R/3

    HI All,
    I have a scenario where I need to read a Number_range object  in SAP R/3 or ABAP XI and retreive the current number.
    I need to use this number during the message mapping.
    (I read about JCO and RFC, but am a little confused about how-to and what is the correct approach)
    Just to let you know, I do not want to pass this number in the original IDOC coming from IDOC, so I need this lookup.
    Scenario:
    In MM, make a call to SAP.
    Get the latest number from SNRO( number-range object)
    Use this number in mapping.
    Any help pointers, greatly appreciated.
    Many thanks
    Shirin

    Shrin,
    Please find the parameters you need to specify while creating UDF
    Imports:javax.xml.transform.stream.StreamResult;com.sap.aii.mapping.lookup.;javax.xml.transform.dom.DOMSource;javax.xml.parsers.DocumentBuilder;java.io.;javax.xml.parsers.;org.w3c.dom.;org.xml.sax.;javax.xml.transform.;
    The Template for RFC Lookup
    String content = "";
    MappingTrace importanttrace;
    importanttrace = container.getTrace() ;
    //Filling the string with our RFC-XML (With Values)
    String m = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ns0:<Function Module name>xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\"></ns0:ZFI_GET_RUNID> ";
    RfcAccessor accessor = null;
    ByteArrayOutputStream out = null;
    try
    //1. Determine a channel (Business System, Communication channel)
    Channel channel = LookupService.getChannel("<Business System Name>","Communication channel name");
    //2. Get a RFC accesor for a channel.
    accessor = LookupService.getRfcAccessor(channel);
    //3. Create a xml input stream representing the FM request message.
    InputStream inputstream = new ByteArrayInputStream(m.getBytes());
    //4. Create xml Payload
    XmlPayload payload  =  LookupService.getXmlPayload(inputstream);
    //5. Execute Lookup
    Payload result = accessor.call(payload);
    InputStream in = result.getContent();
    //This are the extra step which i dont know what it mean
    //out = new ByteArrayOutputStream(1024);
    //byte[] buffer = new byte[1024];
    //for (int read = in.read(buffer); read > 0; read = in.read(buffer))
    //out.write(buffer,0,read);
    //content = out.toString();
    try {
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document document = builder.parse(in);
    NodeList list = document.getElementsByTagName( "REsult" );
    Node node = list.item(0);
    if (node  != null)
         node = node.getFirstChild();
         if (node  != null)
              content = node.getNodeValue();
    } catch (Exception e) {
    importanttrace.addWarning("Error while closing accesor" + e.getMessage());
    catch (LookupException e)
    importanttrace.addWarning("Error While lookup" + e.getMessage());
    //This exception is not to be catch at this step as there is no try step before this
    //catch (IOException e)
    //importanttrace.addWarning("Error" + e.getMessage());
    finally
    if(out!=null)
      try{
           out.close();
    } catch (IOException e) {
    importanttrace.addWarning("Error while closing system" + e.getMessage());
    //7. close the accessor in order to free resources
    if (accessor!=null) {
    try{
          accessor.close();
    } catch (Exception e) {
    importanttrace.addWarning("Error while closing accesor" + e.getMessage());
    return content;
    Have mentioned in genric  where u need to specify the communication channel name, business service etc.,
    Moreover there is a field result, which is the output returned from the FM

  • Problem in RFC Lookup

    Hi,
    I am performing RFC lookup using Communication Channel.
    I have used a function called "Z_MATERIAL_DETAILS".
    Input to this function is "MATERIALID" and Output of the function is "MATNR".
    I am using the following code in my UDF for performing lookup::
    //write your code here
    final String CHANNEL_NAME = "CC_RFC_LookUp",
                   VALNOTFOUND = "VALUE_NOT_FOUND",
                   SAPRFCNS = "urn:sap-com:document:sap:rfc:functions",
                   TAG_FM = "Z_MATERIAL_DETAILS",
    //               TAG_QTB = "QUERY_TABLE",
                   TAG_QFL = "UOMCODE"; //UOMCODE
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = null;
              factory.setNamespaceAware(false);
              factory.setValidating(false);
              try {
                   builder = factory.newDocumentBuilder();
              } catch (Exception e) {
              //     trace.addWarning("Error creating DocumentBuilder - " + e.getMessage());
                   result.addValue(e.toString());
              Document docReq = null;
              try {
                   // Building up RFC Request Document
                   docReq = builder.newDocument();
                   Node root = docReq.appendChild(docReq.createElementNS(SAPRFCNS, TAG_FM));
                   root.appendChild(docReq.createElement(TAG_QFL)).appendChild(docReq.createTextNode(resultFieldName[0]));
              } catch (Exception e) {
              //     trace.addWarning("Error while building RFC Request  - " + e);
                   result.addValue(e.toString());
         //     trace.addInfo("RFC Request XML: " + docReq.toString());
              // Lookup
              Payload result1 = null;
              try {
                   Channel channel = LookupService.getChannel("EC1CLNT800", "CC_RFC_LookUp");
                   RfcAccessor accessor = LookupService.getRfcAccessor(channel);
                   InputStream is = new ByteArrayInputStream(docReq.toString().getBytes());
                   XmlPayload payload = LookupService.getXmlPayload(is);
                   result1 = accessor.call(payload);
              } catch (LookupException e) {
              //     trace.addWarning("Error during lookup - " + e);
                   result.addValue(e.toString());
              // Parsing RFC Response Document
              Document docRsp = null;
              try {
                   docRsp = builder.parse(result1.getContent());
              } catch (Exception e) {
              //     trace.addWarning("Error when parsing RFC Response - " + e.getMessage());
                   result.addValue(e.toString());
              //trace.addInfo("RFC Response XML: " + docRsp.toString());
              String res = "";
              try {
                   res = docRsp.getElementsByTagName("UOMTEXT").item(0).getFirstChild().getNodeValue();
              } catch (Exception e) {
              //     trace.addWarning("Result value not found in DOM - " + e.getMessage());
                   result.addValue(e.toString()+VALNOTFOUND);
              result.addValue(res);
    Code in Z_MATERIAL_DETAILS ::
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(UOMCODE) LIKE  MARA-MFRPN OPTIONAL
    *"  EXPORTING
    *"     VALUE(UOMTEXT) LIKE  MARA-MATNR
    *"  EXCEPTIONS
    *"      val_not_found
    <b>select single matnr from mara into uomtext where mfrpn = uomcode.</b>
    if sy-subrc <> 0.
    raise val_not_found.
    endif.
    ENDFUNCTION.
    <b>When i send three material ids the function module will access the R/3 system thrice which will give rise to PERFORMANCE ISSUE.
    So,is there any way to send all the materialids at one time to Function module and similarly receive all the MATNR from Function at once,so that we need to access R/3 system only once.</b>

    HI,
    Check this link for passing table parameter in JCO call.
    http://www.sapdevelopment.co.uk/java/jco/jco_callfunc.htm
    Following is the code for retrieving table parameter in JCO call to function BAPI_PO_CREATE.
    JCO.Table return_tab = function.getTablesParameterList().getTable("RETURN");
    if (return_tab.getNumRows()) > 0 {
    // Output the error messages
      return_tab.firstRow();
      do {
        System.out.println(return_tab.getString("MESSAGE");
      while (return_tab.nextRow());
    } else {
      String PO_NUM = function.getExportParametersList().getString("PURCHASEORDER");
      System.out.println("Purchase order " + PO_NUM + " created");
    Thanks and Regards,
    Sandeep Maurya.

  • RFC Lookup API error in PI 7.1?

    Hi Guys,
    The RFC lookup which has been developed in PI 7.0 using the lookup API is unable to find the CC defined in the directory for a business system. after upgrading to PI 7.1. We are getting the error as below. This look up works perfectly fine in Dev(PI 7.1) and QA(PI 7.1) but in Prod(PI 7.1). We are on PI 7.1 EHP1 SP03.
    Errorcom.sap.aii.mapping.lookup.LookupException: Plain exception:Error when calling an adapter by using the communication channel In_RFC_SAPLookUp (Party: , Service: Test, Object ID: 74e5e47336133351bebcb8c6a6bc68c8) The channel with object ID 74e5e47336133351bebcb8c6a6bc68c8 could not be found in the Integration Server Java Cache. Check if the channel exists in the Integration Builder Directory and execute a refresh of the Java Cach.
    We did the cache refresh and also restarted the prod server but the error still persists. We have tried connecting to the prod receiver sap system from QA and the lookup works perfectly fine. We dont understand why it dosent work in prod.
    any help or suggestions would be really appreciated.
    Thanks,
    Srini

    Hi Rajesh,
    The CC has the correct business system. We have also tried even by creating a new cc and it always says it cannot find the defined cc from the RFC lookup. We are passing this value as a constant value to the RFC lookup.
    I could not understand why it is not finding only this CC? Is this something that RFC lookup is unable to find the CC?
    any help would be appreciated
    Thanks,
    Srini

  • PI 7.0: Error when calling an adapter by using communication channel

    Hello Experts,
    We have a mapping scenario for ERP -> PI -> web service. Few details from ERP will be sent via PI to Web service. 
    Once the web service authenticates, token and sign will be generated. Here an RFC adapter is  used for configuring the RFC receiver communication channel and provided the ERP system logon details at the RFC client parameter.
    An error is received as mentioned below.
    Error while lookup Exception during processing the payload.Problem when calling an adapter by using communication channel CC_Rcvr_RFC_Lookup_TokenSign (Party: , Service: BS_QV6_700, Object ID: 54e904ebf3d7382a84a0f83cd292b810)
    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: functiontemplate from repository was <null>'. com.sap.aii.mapping.lookup.LookupException
    The logon details in RFC parameter are corrected. Re-activated the the communication channel and refreshed the cache.
    But still the error is not resolved.Please let me know if there is anything else i need to check.
    Thanks in advance.
    Regards,
    Sri

    Hello,
    You could also check note 730870  FAQ XI 3.0/ PI 7.0/ PI 7.1 RFC Adapter
    Q 16:
    While sending a message to the RfcAdapter the error "...functiontemplate from repository was <null>" is shown. Which reasons are possible?
    Regards,
    Sarah

  • Easy RFC lookup from XSLT mapping using a java class (getting Error)

    Hi All,
    I am trying to implement the sample scenario for calling RFC from xslt with the help of wrapper class. I am getting following error.
    com.sap.aii.mapping.lookup.LookupException: Internal lookup service is not registered. Invoking the lookup service is only supported in the Integration Builder test environment or in the Integration Server runtime environment. at com.sap.aii.mapping.lookup.LookupService.getService(LookupService.java:400) at com.sap.aii.mapping.lookup.LookupService.getChannel(LookupService.java:285) at com.sap.aii.mapping.lookup.LookupService.getChannel(LookupService.java:318) at dk.applican.xi.mapping.lookup.RfcLookup.execute(RfcLookup.java:55) 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.engine.lib.xsl.xpath.functions.JLBFunction.execute(JLBFunction.java:145) at com.sap.engine.lib.xsl.xpath.ETFunction.evaluate(ETFunction.java:110) at com.sap.engine.lib.xsl.xpath.XPathProcessor.innerProcess(XPathProcessor.java:54) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:41) at com.sap.engine.lib.xsl.xpath.XPathProcessor.process(XPathProcessor.java:49) at com.sap.engine.lib.xsl.xslt.XSLVariable.process(XSLVariable.java:125) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:256) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.callTemplate(XSLStylesheet.java:1310) at com.sap.engine.lib.xsl.xslt.XSLCallTemplate.process(XSLCallTemplate.java:102) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:241) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLElement.process(XSLElement.java:241) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:256) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:445) at com.sap.engine.lib.xsl.xslt.XSLApplyTemplates.process(XSLApplyTemplates.java:158) at com.sap.engine.lib.xsl.xslt.XSLNode.processFromFirst(XSLNode.java:228) at com.sap.engine.lib.xsl.xslt.XSLTemplate.process(XSLTemplate.java:256) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:445) at com.sap.engine.lib.xsl.xslt.XSLStylesheet.process(XSLStylesheet.java:381) at com.sap.engine.lib.jaxp.TransformerImpl.transformWithStylesheet(TransformerImpl.java:392) at com.sap.engine.lib.jaxp.TransformerImpl.transform(TransformerImpl.java:234) at com.sap.aii.ibrun.server.mapping.MappingTransformer.transform(MappingTransformer.java:153) at com.sap.aii.ibrun.server.mapping.XSLTMapping.executeStep(XSLTMapping.java:67) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:77) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:88) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleRequest(MappingRequestHandler.java:63) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceImpl.processFunction(MappingServiceImpl.java:80) at com.sap.aii.ibrun.sbeans.mapping.MappingServiceObjectImpl0.processFunction(MappingServiceObjectImpl0.java:131) at sun.reflect.GeneratedMethodAccessor482.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 $Proxy22.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:324) at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:95) at com.sap.engine.services.rfcengine.RFCJCOServer.handleRequestInternal(RFCJCOServer.java:113) at com.sap.engine.services.rfcengine.RFCJCOServer$ApplicationRunnable.run(RFCJCOServer.java:171) 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:94) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162
    I am SAP XI 3.0 SP-9

    Hello,
    I have the same issue as stated above.
    At runtime sometimes the mapping fails however when executing the mapping from ESR (test operation mapping) with the same payload it is executed succesfully (lookup is to system that is the senderservice of the scenario).
    Anybody a clue.
    Also clearing mapping cache etc. did not solve the problem.
    Thanks,
    Emile

Maybe you are looking for

  • PO for Free item

    Dear experts For job work (sub contracting), How can I receive the  raw materials from vendor as a UNBW material by u201Cpurchase orderu201D. Because the customer want receive the material based on PO only. If I have to make free PO , What steps I ha

  • Update Adobe Acrobat 8.0 Windows7

    I have Windows 7 x64 and Adobe Design Standard CS3. I would like to make an update of Adobe Acrobat 8.0 to 8.1. or 8.2 version. However I can't do it. I would appreciate any tips.

  • MSI K7N2 ILSR - Maximum HDD size

    Can anyone please tell me what the maximum hard disk size that a MSI K7N2 can use. It currently has a Seagate 500Gb drive and I want to add a Seagate 750Gb. Will it work okay ie be able to see and use the full capacity of the drive? Many thanks for y

  • Re: Best Way to Back-up iTunes Library ???

    Hello friends : My iTunes music library is getting rather large and I feel it's time to "properly" back it up to an external hard drive. I understand that you can back up your iTunes music folder to an external hard drive by the simple old "click and

  • What is the highest node in Cost Center Hierarchy.

    hi SAP gurus, can anybody tell me what is the highest node in Cost Center Hierarchy. thanks