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!

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.

  • Why Do We Need Java Adapter module ???

    Hi All,
    Why Do We Need Java Adapter module ???
    What is the Use of it ????
    Where we Write the code for this
    Regards
    Vamsi

    Hi Vamsi,
    Adapter modules are required to enhance the functionality of SAP XI.
    Enhancements like.
    1. Converting the payload (not covered with standards)
    2. Changing encoding
    3. Encryption and decryption
    4. Creating and merging of additional attachments
    Please follow the links below.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e">How to Create Modules for the J2EE Adapter Engine</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e21106cc-0c01-0010-db95-dbfc0ffd83b3">Adapter Module Development  - Presentation</a>
    *Reward points if helpful*
    Regards,
    Sushil.

  • 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.

  • 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

  • Empty file to process in customer J2EE adapter module

    Hi All,
    if i give an empty text file to a sender communication channel, then no message is generated by XI.
    i want to generate a dummy XML if empty file is given.
    so is it possible to make a customer-specific J2EE adapter module - then deploy it - then if in sender comm channel this adapter module is written before SAPAdapter module, then should XI generate a dummy XML for this empty file.
    i am asking this because i developed a J2EE adapter module, then deployed it, then tried to invoke it  from sender comm channel but this J2EE adapter module is not getting invoked - this i can tell because i have written the following lines only in Java class process method:
    <i>Message msg_audit = (Message)inputModuleData.getPrincipalData();
    AuditMessageKey amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
    Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"FileCheck: Module called");
                                                 return inputModuleData;</i>
    but still in the audit log only 3 messages of entire file content converted to XML format, empty doc so no sending of message and deleting of empty file are coming.
    <b>Can anybody suggest whether is it possible to process an empty text file to generate a dummy XML in sender communication channel in XI.</b>
    Thanks,
    Rajeev Gupta

    Hi All,
    When i write this code:
    try
                                                                obj = inputModuleData.getPrincipalData();                                                  
                                                                msg_audit = (Message)obj;
                                                                amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
                                                                Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"FileCheck: Module called");
                                       <i>File f = new File("/components/XITEMP/sample/PWC/check.txt");                                                            
                                                                          if (f.canWrite())
                                                                                         PrintStream ps;
                                                                                         FileOutputStream fos =new FileOutputStream(f);
                                                                                         File f1 = new File("/components/XITEMP/sample/PWC/check1.txt");
                                                                                         ps = new PrintStream(fos);
                                                                                         if (f1.exists()==false)
                                                                                              f1.createNewFile();                                                                    
                                                                                         ps.println("Testing");
                                                                                         ps.close();
                                                                                         fos.close();                                                            
                                                                               else
                                                                                    File f2 = new File("/components/XITEMP/sample/PWC/check2.txt");          
                                                                                    if (f2.exists()==false)
                                                                                              f2.createNewFile();                                                                    
                                                                               }               </i>                                        
    it works fine......it creates the file check1.txt
    but when i place the italiced code in this format:
         try
                                                                obj = inputModuleData.getPrincipalData();                                                  
                                                                msg_audit = (Message)obj;
                                                                amk = new AuditMessageKey(msg_audit.getMessageId(),AuditDirection.OUTBOUND);
                                                                Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"FileCheck: Module called");
                                                           catch (Exception e)
                                                                     try
                                                                          File f = new File("/components/XITEMP/sample/PWC/check.txt");                                                            
                                                                          if (f.canWrite())
                                                                                         PrintStream ps;
                                                                                         FileOutputStream fos =new FileOutputStream(f);
                                                                                         File f1 = new File("/components/XITEMP/sample/PWC/check1.txt");
                                                                                         ps = new PrintStream(fos);
                                                                                         if (f1.exists()==false)
                                                                                              f1.createNewFile();                                                                    
                                                                                         ps.println("Testing");
                                                                                         ps.close();
                                                                                         fos.close();                                                            
                                                                               else
                                                                                    File f2 = new File("/components/XITEMP/sample/PWC/check2.txt");          
                                                                                    if (f2.exists()==false)
                                                                                              f2.createNewFile();                                                                    
                                                                     catch(Exception ex)
    it doesnot create the file check1.txt......
    Can anybody suggest why in the exception block this italiced code is not working........means it is working in try block of try{}catch{} block.......but it is not working in catch block of try{}catch{try{}catch{}}
    Thanks,
    Rajeev Gupta

  • Exception related to user defined module in sap xi ????

    I developed one userdefined module after configuring that i am getting the below exception, can any body tell where exactly the problem
          com.sap.aii.af.ra.ms.api.RecoverableException,
    Thanks,
    Madhusudhan.

    Madhusudana,
    Well...I would in that case suggest you to put debug statements in your code. For this you would need to carry out certain steps which are :
    1. In NWDS , create a new file in the META-INF folder of Enterprise Project. The name of the file should be log-configuration.xml.Paste the following content in this file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
    <log-configuration>
    <log-formatters>
    <!-- This formatter produces human readable messages. -->
    <log-formatter
    name="trc"
    pattern="%26d %150l [%t] %10s: %m"
    type="TraceFormatter"/>
    </log-formatters>
    <log-destinations>
    <!-- Destination for Trace Information of this sample -->
    <log-destination
    count="5"
    effective-severity="DEBUG"
    limit="2000000"
    name="sample.trc"
    pattern="./log/applications/sample/default.trc"
    type="FileLog">
    <formatter-ref
    name="trc"/>
    </log-destination>
    </log-destinations>
    <log-controllers>
    <!-- Trace Location sample -->
    <log-controller
    effective-severity="DEBUG"
    name="sample">
    <associated-destinations>
    <destination-ref
    association-type="LOG"
    name="sample.trc"/>
    </associated-destinations>
    </log-controller>
    <!-- Logging Category: none, use the default XILog -->
    </log-controllers>
    </log-configuration>
    2. In your process method, add following statement
    AuditMessageKey auditMKey =
                   new AuditMessageKey(message.getMessageId(), AuditDirection.INBOUND);
              Audit.addAuditLogEntry(
                   auditMKey,
                   AuditLogStatus.SUCCESS,
                   "CustomModule :: process method started");
    This would send the statement "CustomModule :: process method started" to the Audit Log of XI server and you would be in a position to see upto which step your code is executing sucessfully. Audit log can be viewed at
    http://<host>:<port>/MessagingSystem/monitor/monitor.jsp. you need to know the message ID for your transaction in this case.
    Hope this helps.
    Nilesh

  • 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.

  • 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

  • PI 7.1 adapter module issue

    I deoplyed my module and worked fine. now i changed some code by adding parameter to module
    strModuleKey = moduleContext.getContextData("module.key");
    I changed the related things in my communication channel(gave parameters)
    Now, i get below error while executing...
    java.lang.ClassCastException: class com.sap.aii.af.sdk.xi.mo.MessageContext:library:com.sap.aii.af.sdk.libcom.sap.engine.boot.loader.ResourceMultiParentClassLoader428c6e04alive incompatible with interface com.sap.engine.interfaces.messaging.api.Message:interface:com.sap.aii.af.ms.ifccom.sap.engine.boot.loader.ResourceMultiParentClassLoader2dd7e4d6alive
    Followed the below url but in vain..
    PI JAVA ADAPTER MODULE PROBLEM
    Incompatible with interface - Exception in Adapter Module
    Issue on developing Adapter Module
    Also if you are using PI 7.1 refer to the blog:
    /people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes
    Please let me know if u have any other suggestions other than this...
    Thanks
    Prabhakar

    Hi Venkat,
    Yes, you cannot add custom modules to soap adapter.
    Please refer below documentation for the same..!!
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/8c4756224a6fb5e10000000a155369/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    Regards,
    Swetha.

  • Adapter Module for receiver IDOC adapter?

    Hi,
    I have a scenario where i need to do some custom logging in the receiver adapters. For all receiver file adapters, i have written an adapter module which fulfills this custom requirement but how will i do this in the receiver IDOC adapter as its on the ABAP stack? I cannot write a java adapter module for this.
    Is there anyway by which i can write a ABAP adapter mosule and deploy it in the IDOC adapter? Or any other way to achive it. the scenario is such that i need to do the logging before the idoc is posted into R/3 system by the idoc adapter.
    Please advice.
    Regards,
    Yash

    Hi Chirag,
    Yes i have seen that the module tab is disabled for idoc adapter. I have a fin interface where i need to split a incoming file into an idoc and a file. For this purpose i need to log how many records are received by each adapter and the sum of the line items for audit perspose.
    any othr way to do it apart from doing it in message mapping. The req is to do in the adapter engine.

  • Converting INVOIC02 idoc to EDIFACT INVOIC message (Using Adapter Module

    Hi Friends,
    We are sending customer idoc (INVOIC02) from R/3 to external system through PI. We want to generate EDIFACT output file (message type : INVOIC).
    Is it possible to convert IDoc message to EDI file format through java adapter module ? Will adapter module support this  without using Seeburger adapter ?
    kindly clarify, friends.
    Kind regards,
    Jegathees P.

    There is an alternative to Seeburger.
    DataDirect also has complete EDI-XML conversion by way of deploying a module which is called from an adapter. The range of parameters with the conversion is also quite extensive, allowing tolerance for partners who may have included non-standard EDI qualifiers and such.  The XML tags make for easier mapping.  StylusStudio XML Suite includes the EDI<->XML adapter so you can try the conversions each way directly in that package.  If you are happy with it, you need to then purchase the package from DataDirect.  We did this and implemented EDI for X12 and EDIfact, including Orders and Invoices and some other messages.  The communications part was not included.  We wrote the EDI files and used a separate process to actually send and receive the files. The IDoc <-> EDI mapping  was done using the normal graphical mapping of SAP PI. The Stylus Studio package includes the functionality to generate the XSD, which we imported to SAP PI.

  • Cleanly stop a process in an  XI adapter module

    Hi,
    I have a java adapter module that decides whether the process should carry on or not.
    When I want to stop the process I throw an UnsupportedOperationException that is reported in Runtime Workbench -> system monitoring.
    Are there any other means to stop the process (other exception....) from an adapter module?
    Thanks
    Yann

    Hi,
    I have a java adapter module that decides whether the process should carry on or not.
    When I want to stop the process I throw an UnsupportedOperationException that is reported in Runtime Workbench -> system monitoring.
    Are there any other means to stop the process (other exception....) from an adapter module?
    Thanks
    Yann

  • Adapter Module for Sender File Adapter to access a Flat file

    Hi,
    We have a scenario where the source is a flat file.I want to develop an Adapter Module to make a small change to every line in the Flat file.
    Now how do we read a flat file in the Adapter Module?Coz the flat file will be converted to XML file by the Standard Adapter Module of the File adapter.
    Please help me out with this.
    Thank you,
    Anu.

    Hi Anu,
    If you are not using Content Conversion option Standard Adapter Module does not convert the Flat file to XML .
    You can directly access the payload as it is in flat file in the Adapter Module and make changes.
    Use the Standard classes ModuleData & moduleContext to fetch the Payload.
    chk this :
    Customized Sender Adapter Module
    XI: Read data from PDF file in Sender Adapter
    regards
    Ganga

  • Adapter module in PI 7.1 EhP1 for Falt File Idoc to Idoc xml transformation

    Hi Experts,
                       In PI 7.1 (EhP1) there is a java adapter module that can be added to the file adapter that automatically transforms Flat File representation of IDoc to IDoc XML. Can anyone provide the link to this particular module? Tried searching but could not get the specific module name or parameters.
    The same conversion can be achieved using a standard SAP provided ABAP mapping but we need to use the module in this case.
    Thanks and regards,
    Shiladitya

    /people/william.li/blog/2009/04/01/how-to-use-user-module-for-conversion-of-idoc-messages-between-flat-and-xml-formats
    FYI~~~

Maybe you are looking for

  • My Apple Remote no longer works with Powerpoint 2008

    Since upgrading to Mountain Lion, I can no longer control Powerpoint 2008 with my apple remote! iTunes still works fine play pause volume etc... I have also tried iRed Lite, but this also does not work. Do I now have a nice slim aluminium paperweight

  • Sound in Eschalon Book I demo

    Hi. I managed to get the Eschalon Book I demo running (I needed the mesa package), but no luck with sound. I've tried using the "default" setup that's packaged, and installing OpenAL, but at best I get a faint, distant whine, which might just be the

  • Invoice To Service Order - Copy Control

    Hi All, I have a business requirement where in as soon as invoice is generated for sold product, a service order should be created for installation and demo. I am using copy control option and for target trnsaction type i have checked the option comp

  • Moserial from AUR [solved]

    I've been trying to install moserial from the AUR and I've ran into this strange problem, when I run "aurget -S moserial" I get this checking gnome-doc-utils >= 0.3.2... no configure: error: gnome-doc-utils >= 0.3.2 not found but the lastest gnome-do

  • Time machine - backup of a disk attached via usb on a time capsule

    Hi, I would like to know it is possible to backup data with TIME MACHINE of an external disk attached directly to a time capsule via USB. I use it as a network disk for all my Mac's to access at the same iphoto library. Thank you very much for your h