Skip to Content
avatar image
Former Member

module not getting called in the sender adapter

Hi ,

I have created a module to read data from an Excel file and convert it to XML and attached it in the sender channel .

Now the module is not getting called , it is neither giving any error and also Nothing is shown about module call in the audit log .

message processing is happing in the normal way as it happening without the excel conversion module i have created .

Can anyone please help , how should i go about debugging the same .

thanks & regards,

Rahul.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 10, 2006 at 06:43 AM

    Hi,

    Just check the following in the module.

    1. Your stateless session bean should implement SessionBean and Module.

    2. The bean should have the following method

    public ModuleData process(

    ModuleContext moduleContext,

    ModuleData inputModuleData)

    throws ModuleException {

    try {

    File f = new File("

    system_name
    directory_name
    checking.txt");

    PrintStream ps = new PrintStream(new FileOutputStream(f));

    ps.println("Testing");

    ps.close();

    } catch (IOException e) {

    ps.println("IOException");

    }

    return inputModuleData;

    }

    This is to check process method has been called or not.

    Regards,

    Uma

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      if you specify an incorrect or non-existing module name, it is simply ignored. I was told by an SAP XI consultant, that there is no obvious way to find out about that. I always include trace statements when the module's process function is called and if they are not presentl I double check the name, correct deployment, etc. for the module. But no error is thrown...

      regards,

      Peter

  • avatar image
    Former Member
    Feb 09, 2006 at 12:17 PM

    Hi,

    Just a suggestion...If at all there are exceptions that are defined, just have a output file in ur module and try adding the messages of the various exceptions that u are trying to catch into it and output the file thru normal file I/O in to one of server local directory.I suppose some exception has occurred in ur Module function hence it justs returns the module data(as it is received) without going thru processing steps in ur module.. just try and debug in this way.

    Regards,

    Sudharshan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 09, 2006 at 12:19 PM

    Hi Rahul,

    The Module name in the sender channel should be localejbs/sap.com/EAR_ProjectName/BeanName

    Check this out...

    Regards,

    Uma

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sudharshan,

      Yes i have given only the BEAN name and not package.beanname.

      Initially when the module name was not correct in the configuration it was flashing error in the adapter monitoring for the specific channel..that the module couldnt be found.

      But now after correcting it is not showing any error but the module is also not getting called.

      I can see the EAR file deployed through the visual admin.

      Have you created any module? Can you sent it to me on

      nawale_rahul@yahoo.com

      I will try deploying it on my server and check if it works

      Thanks and Regargs

      Rahul

  • Feb 09, 2006 at 12:13 PM

    Hi Rahul,

    You can also add the following audit messages to know whether your module is getting called or not.

    AuditMessageKey amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);

    Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"Excel2XMLBean: Module called");

    Regards,

    Ananth

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 09, 2006 at 12:08 PM

    Hi Rahul,

    is your module the first in the module chain?

    The SAP module must alwasy be the last.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 13, 2006 at 12:17 PM

    Hi Rahul,

    What Peter is telling is correct. Even I had the same problems while developing the module and while debugging I found out that my EAR file doesn't have Jar file for Excel file conversion and I have added that jar file manually by using WinZip.

    Please try this option and let me know if you need any assistance.

    Regards,

    Ananth

    Add comment
    10|10000 characters needed characters exceeded