Reg Adapter Module in SAP PI 7.11

Hi,
I am trying to develop an Adapter Module using SAP NWDS and I am referring http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa?quicklink=index&overridelayout=true for the same.
Now I am stuck on page 11 (page 16 of the pdf).
Does the value of Remote interface have to be strictly com.sap.aii.af.lib.mp.module.ModuleRemote (similarly for other parameters)?
Are these values dependent on the Default EJB Package that we use (mentioned on page10). Because the name of my package is com.companyname.adaptermodule and is as per the naming convention that we follow.
Thank you,
Pankaj.

Hi,
Ok. Actually I thought that the names are dependent on the default EJB package-name that we specify in previous step; but now these two do not seem to be related to each other (name-wise)
The question seems to be answered for now. Thanks to Stefan.
Thank you,
Pankaj.

Similar Messages

  • Reg::Error in XMLDecryption algorithm for adapter module in SAP PI

    Hi Experts,
    I have developed a custom java code for encryption and decryption for XML to be included in adapter module in SAP PI using SAP netweaver.My decryption code is working fine for stand alone java application.But when I create EJB project and deploy it I get no error..But in communication monitoring of SAP PI i get the below error
    Error: org.apache.xml.security.encryption.XMLEncryptionException: No Key Encryption Key loaded and cannot determine using key resolvers
    I included xmlsec1.3.0.jar file as external library..
    I would be grateful if you could suggest any solution for the above issue.
    Thanks
    Priya

    Hi Priya,
                     I am working on the same senario if Uhave idea plz help me on it.
    Regards,
    Prasad.

  • Reg :: Exception in custom java adapter module in sap pi

    Hi Experts,
                  I have included custom  java adapter module in SAP PI. I get the below error in sender communication channel  monitoring.
    Error: javax.ejb.TransactionRolledbackLocalException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException; nested exception is: javax.ejb.EJBTransactionRolledbackException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException; nested exception is: javax.ejb.EJBException: nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/xml/utils/URI$MalformedURIException
    I have included in External jar files in EJB project  also..Will that cause the above exception?
    Kindly suggest your solution.
    Thanks
    Priya

    Hi !
    have a look
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    and this thread also
    Throw Error in Module Adapter EJB
    Thanks!

  • Standard adapter modules in sap xi

    Hi,
    Can any one provide me the standard adpter modules in XI and the procedure to use them in the communication channel.
    Thanks,
    Rajeev.

    Hi,
    Go with these blogs.
    SAP NetWeaver Process Integration 7.1: Available Adapters and Adapter Modules
    TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
    these will help u out

  • REG:ADAPTER MODULE

    Hi All,
                I have file to idoc scenario where I need to use adapter module on the sender side. Can any one please s-e-n-d me links for the adapter module documents since I need to learn it from scratch.
    Thanks,
    Siva.

    hi,
    Check this link
    Webinars
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3
    Re: Developing a module for the sender file/FTP adapter
    Regards,
    Syed.
    Edited by: syed umar on Nov 21, 2008 6:43 AM

  • Adapter Module .ear file deployed

    Hi All,
    I have an adapter module deployed long back on my dev server.
    I want to retrive the same file from dev and deploy in on Quality server.
    Can you let me know the path where this .ear file will be present on the SAP XI server.
    Thx in advance
    Ravijeet

    Hi Ravijeet,
    We run under i5/OS (unix like) but I found my deployed Adapter Module under:
    DX1 is the instance name.
    sap.com is the vendor specified in the EJB module.
    EOLConvertBean is my adapter module
    /usr/sap/dx1/DVEBMGS70/j2ee/cluster/apps/sap.com/EOLConvertBeanEAR                                                     
    /usr/sap/dx1/DVEBMGS70/j2ee/cluster/apps/sap.com/EOLConvertBeanEAR/EJBContainer/applicationjars/EOLConvertBean.jar     
    Hope it helps.
    Martin
    Edited by: Martin Lavoie Rousseau on Nov 4, 2010 2:41 PM

  • Creating J2EE adapter module problem

    Hi All,
    when i am creating a J2EE customer-specific adapter module in SAP Netweaver Developer Studio, then in the java class when i write these statements:
    <u>import com.sap.aii.af.mp.module.*;
    import com.sap.aii.af.ra.ms.api.*;</u>
    public class CustomerMeter implements SessionBean, <u>Module</u>{
    it is showing error on the  above underlined things that it cannot resolve these things.
    can anybody suggest where to locate these librarys in Project - Properties - Java Build Path - Libraries path from the main menu.
    Thanks,
    Rajeev Gupta

    Hi Amit,
    On changing the ejb-jar.xml as you said:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
                             "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
        <description>EJB JAR description</description>  
        <display-name>EJB JAR</display-name>
         <enterprise-beans>
              <session>
                   <ejb-name>CustomerMeter</ejb-name>
                   <ejb-class>pkgCustomerMeter.CustomerMeter</ejb-class>
                   <home>com.sap.aii.af.mp.module.ModuleHome</home>
                   <remote>com.sap.aii.af.mp.module.ModuleRemote</remote>
                   <local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>
                   <local>com.sap.aii.af.mp.module.ModuleLocal</local>
                   <session-type>Stateless</session-type>
                   <transaction-type>Container</transaction-type>
              </session>
         </enterprise-beans>       
    </ejb-jar>
    But now on saving this xml, it is giving the following  error:
    <b>The content of element type "session" must match "(description?,display-name?,small-icon?,large-icon?,ejb-name,home?,remote?,local-home?,local?,ejb-class,session-type,transaction-type,env-entry,ejb-ref,ejb-local-ref,security-role-ref,security-identity?,resource-ref,resource-env-ref)".</b>
    Could you please tell how to correct this error.
    Thanks and Regards,
    Rajeev Gupta

  • Crating adapter modules in XI

    Hi
    I went through a blog on this and seen that we need some jar files inorder to develop this. these are files they have mentioned in the blog
    aii_af_lib.sda,
    aii_af_svc.sda and
    aii_af_cpa_svc.sda.
    Where are these files placed in the XI server. can naybody please tell me the exact location.
    thanks

    Hi Sudhakar,
    These files to be deployed in Netweaver developer studio .
    Plz do refer the following blog it explains clearly...
    Adapter Module Development & Module Configuration
    Also refer...
    ADAPTER MODULES
    how to create modules on j2ee engine
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81
    Alerts from adapter modules - the JRA way!!
    Alerts from adapter modules - the JRA way!!
    Alerts from adapter modules - the JRA way!!
    Alerts from adapter modules - the JRA way!!
    RFC calls from Adapter modules...the Web Service Way!
    RFC calls from Adapter modules...the Web Service Way!
    TechEd 2007: EPI351 - Developing User Enhancement Modules in the Adapter Engine
    TechEd 2007:  EPI351 - Developing User Enhancement Modules in the Adapter Engine
    TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
    TechEd 2006: EPI350 - Developing and Testing Adapter Modules in SAP NetWeaver Exchange Infrastructure
    Migrate from Java embedding in Oracle BPEL to Adapter modules in SAP XI
    Migrate from Java embedding in Oracle BPEL to Adapter modules in SAP XI
    XI Mapping Module for AFW
    The specified item was not found.
    XI: Dynamic configuration in adapter modules - one step further
    The specified item was not found.
    Adapter Module Development & Module Configuration
    Adapter Module Development & Module Configuration
    Dynamic configuration in adapter modules
    Dynamic configuration in adapter modules
    Rename Attachment Adapter Module
    Rename Attachment Adapter Module
    Regards,
    Vinod.

  • SAP PI crashes because of Custom Adapter module

    Hi,
    We are facing a strange problem. We have deployed a custom adapter module developed in java which accesses a Hardware Security Module(HSM) and uses the keys in HSM to digitally sign our data. Now, when I use particular methods in this code and deploy it on PI server, the server crashes while testing this out. As soon as I run the channel having this adapter module, PI server becomes unavailable. It restarts on its own after a few minutes.
    One of the reasons I identified to be causing this issue is the signing mechanism used in code. When I used a mechanism that was not supported or not correct, it crashed the server. If i corrected it, it worked fine. I found no other thing in my code causing this behaviour apart from this mechanism. But I am still not able to understand how a single method in a code can cause the whole server to crash. Has anybody here faced such a problem? Any pointers would be appreciated.
    We are using SAP PI 7.31 java only installation.
    Thanks,
    Ravi Desai

    Hi Ravi
    1. To check if it is a memory issue. Once you start the channel, check the memory usage in nwa. Check if the memory is increasing once the channel is started.
    2. Add debug statements to print logs in default traces at as many places as possible. Since your code is not reaching the Catch block, using the debug statement you can reach the line in the code which is causing this issue.
    Regards
    Osman Jabri

  • Import  com.sap.aii.mappingtool.* show error in PI 7.1 adapter module

    Hi
    Experts,
    i have an adapter module for 7.0 and i am trying to replicate the same for PI  7.1  in 7.1 NWDS.
    i have made the required changes as mentioned in stefan's blog :/people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes
    but  import com.sap.aii.mappingtool.tf7.rt.Container; shows error , do we need to  inlcude any jar file for this :
    i am using this module to rename file name (in case of pick and place scenario forwithot IR configuration)
    getMessageProperty and setmessageProperty is getting deprecated.(striked off)
    strFileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");
    Regards,
    Srinivas

    > strFileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File","FileName");
    in PI 7.1 you can use:
    strFileName = msg.getMessageProperty(new MessagePropertyKey("FileName","http://sap.com/xi/XI/System/File"));
    Note that property name and namspace come in different order. I almost got mad until I noticed
    http://help.sap.com/javadocs/pi/SP3/xpi/index.html

  • SAP JRA in Adapter module

    We are developing an Adapter module for "File Sender Adapter" and in that we have a requirement to call an RFC. We are trying to use SAP JRA (Java Resource Adapter) for doing this as we do not want to hard code the password in the module by using direct JCO connections.
    Using JRA we are able to invoke RFC in our adapter module but the message payload does not go to the next module (Standard module) in the chain. We identified that as soon as we get the connection handle using statement:
           Connection connection = connectionfactory.getConnection();
    message is not going to next module in the chain. We are also not getting any error or exception anywhere. It is just that the message is not getting processed. Any help or idea would be appreciated.
    Regards

    Hi Amol
    I was not able to this today as I do not having authorization in our development system for exposing RFC as webservice and waiting for the authorization.
    I want to know if I expose the RFC as webservice in development server, will it be transported via normal ABAP transport procedure in the landscape (will this require any change in config etc.) or I need to expose it separately in different server.
    James

  • REG : Can we change namespace using any adapter module.

    Hi All,
               I was working on the XMLAnonymizerBean adapter module. his module provides us the functinality of changing the prefix of namespace and selecting  sprecified modules in the output XML. Now i am stuck with a question ie is there any module that can change the namespace in the output xml. for example :
    xmnls :  namespace1 to
    xmnls : namespace 2.

    Hi,
    You can use a simple XSLT mapping in Receiver adapter . check this blog
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417100%29ID0975923150DB01234155231841994144End?blog=/pub/wlg/2620
    Provide the actual namespace in the bleow code
    <?xml version='1.0' ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:p2="provideyournamespace">
         <xsl:template match="/">     
                       <xsl:copy-of select="*"/>
         </xsl:template>
    </xsl:stylesheet>
    Regards
    Suraj

  • Issue in calling Adapter Module

    Hi experts,
    We have a File -
    > IDoc scenario where the file has got fixed length data. The data is in the following format:
    Header  xdfsdfefefeswefr
    Detail    dfdkfereorierwer
    Detail    fdfkjwoeiefiwere
    Detail
    Trailer  erererewoirwoiwe
    We do not have any identifier to identify the header, detail and trailer record.
    We have gone for custom java adapter module which inserts H, D, T as the first character of each line in the file to identify the Header, Detail and Trailer nodes.
    We added a entry for calling the adapter module under the module tab in file sender communciation channel. The EAR for adapter module has been deployed successfully.
    But we are unable to call the adapter module at runtime.
    The channle log has no indication wrt to the module being called.
    We are on SAP XI 3.0 SP17
    If any one has faced a similar issue. Please respond and your help would be highly appreciated.
    regards,
    Younus

    Hi,
    Check this document.Nice document on adding an adpater module at runtime.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c
    this forum replies too..
    Reg Integration Scenario
    Thanks,
    Vijaya.

  • Dynamic configuration required in sender file - Adapter Module

    Hi Everybody,
    I am developing an Adapter Module in the file adapter (sender) using Adapter Specific Message Attributes.
    I am using Dynamic configuration inside the Module Process method in the adapter module.
    We are getting an error saying Dynamic Configuration cannot be resolved.
    Can anybody tell me the package to be used.
    Thanks,
    Zabiulla

    You can access the dynamic configuration in adapter module like this:
    Message msg = (Message) inputModuleData.getPrincipalData();
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/File", "FileName");
    You do not need any addition library besides the adapter module API.
    Hope that helps
    Stefan

  • ModuleData.getPrincipalData returns null in the adapter module development

    Hi gurus,
    i am doing a test on the adapter module development following an article written by William Li:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ac06cf-6ee2-2c10-df98-e17430ca5949?QuickLink=index&overridelayout=true
    my problem is after the EJB has been deployed, it seems that the return of inputModuleData.getPrincipalData() is always null which makes the program can not get the xml payload from the framework.
    the main process of the example has been simplified like this:
         public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
              Object           obj = null;
              try {
              obj = inputModuleData.getPrincipalData();
              Message     msg1 = (Message) obj;          
                    XMLPayload xmlpayload = msg1.getDocument();}          
              catch (Exception e) {
                   ModuleException me = new ModuleException(e);
                   throw me;
              return inputModuleData;
    after deployed, i get the following error in the adapter monitor of RWB: (my JNDI is testtest)
    17.02.2012 17:13:44.643 Information Send binary file  "test8.xml" from FTP server "10.18.48.150:/encrypt_test/", size 206 bytes with QoS EO
    17.02.2012 17:13:44.644 Information MP: processing local module localejbs/CallSapAdapter
    17.02.2012 17:13:44.644 Information Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System
    17.02.2012 17:13:44.645 Information Trying to put the message into the send queue
    17.02.2012 17:13:44.648 Information MP: processing local module localejbs/testtest
    17.02.2012 17:13:44.648 Error MP: exception caught with cause java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getDocument() of an object loaded from local variable 'msg1'
    whereas if the code has been changed like this:
         public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException {
              Object           obj = null;
              try {
                   obj = inputModuleData.getPrincipalData();
                   Message     msg1 = (Message) obj;     
                   if (obj != null )
                        XMLPayload xmlpayload = msg1.getDocument();
              catch (Exception e) {
                   ModuleException me = new ModuleException(e);
                   throw me;
              return inputModuleData;
    the file can be read by the file adapter.
    i just quite confused that why the return of the getPrincipalData() is null? where is the problem? thanks
    Edited by: Stephen Xue on Feb 17, 2012 5:22 AM

    I'm gonna reply to myself here. I changed the processing sequence of the adapter modules in the  in the FileSender channel so that my module comes first then CallSapAdapter. Then getPrincipalData() contains the message.
    Hope this helps someone else.

Maybe you are looking for

  • HP Photosmart D6160 printer with Windows 7 os

    I have an 18 month old HP Photosmart D6160 printer that has performed excellently on my PC running Windows 2000 Professional. The printer using the installed CD software was able to provide test prints, maintenance information and most importantly sh

  • Call ABAP WebService with Elips Studio /Flex

    Hi everybody, Does somebody has experience with Elips Studio for Flex? I can't find much about it.. I would lik to call my SAP Webservices into my Elips project. (I know it's not the same as a regular Flex project, there are some differents...) Can s

  • How to package multibitrate live stream as audio-only for Apple compliance

    Hi From AMS documentation, I can package vod content as audio-only by appending "audio-only" to url for instance: http://<ams server ip>/hls-vod/audio-only-aac/vod.m3u8 Similarly I can package live content (single bitrate) as audio-only for instance:

  • Advanced Queues question

    Hi. Can anyone tell me how soon after I place an item into an advanced queue, the notification procedure (which was registered via dbms_aq.register to process the items in the queue) is called when that item is commited? Ie: what delay Oracle has? Is

  • CSCul38768 - Management services are unresponsive fault seen

    Our UCS hit this bug and we found the VM hosted on each blade got timeout also. It caused some of the VM rebooted and vCenter reported shared disk cannot access during the captioned moment. Did anyone have similar experience before?