Sender Adapter Module Not Working

Hi,
I have changed an existing Sender Adapter Module code and deployed using SDM.
It was working fine but after some days it is not working as designed. Say for an example, the number of pipes(|) in each record is one less than usual number of pipes. It does not say any error in module but in my java mapping raising GENERIC Exception.
I had the same problem in Dev and now I am facing the same in QA.
When I checked the standalone code it is working fine. Any reason for this anomalous behavior?
Regards,
Manikandan R

Hi,
Could you give us more details about : your coding, input sample when error is raised ?
That'd help a lot
Chris

Similar Messages

  • Adapter Module not working in Sender Communication Channel working in recie

    Hi
    I have written one adapter module. IF i give that Adapter Module in Sender Communication channel its not working. If i give that in Reciever Communication Channel its working. If i mention in both the channels then its working in sender communication channel also.But in only sender communication channel its not working in only reciever communication channel its working Can any one tell me why its happening
    Thanks & Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B
    Message was edited by:
            RaviShankar B
    Message was edited by:
            RaviShankar B

    hi
    if its problem with my code why its working if i give the adapter module in both the communication channels?If i give in only sender communication channel the module is not invoking. its not showing any auditlogs.Can any one please help me
    OUTBOUND is for sender
    INBOUND is for reciever right.?
    the following code i have written
    public ModuleData process(
              ModuleContext moduleContext,
              ModuleData inputModuleData)
              throws ModuleException {
              String SIGNATURE =
                   "process(ModuleContext moduleContext, ModuleData inputModuleData)";
              Object obj = null;
              Message msg = null;
              String filename = null;
              AuditMessageKey amk = null;
              try {
                   obj = inputModuleData.getPrincipalData();
                   msg = (Message) obj;
                   System.out.println("&&&&&&&&&&&&&&&&&" + msg);
                   if (msg.getMessageDirection().equals(MessageDirection.OUTBOUND)){
                        amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.OUTBOUND);
                        Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,">>>>>>>>>>>>>>> etHostName: Module called"+ i++);
                   }else{
                        File filename1 = new File("
    10.7.1.43
    XI
    source","text.txt");
                        filename1.createNewFile();
                        amk = new AuditMessageKey(msg.getMessageId(),AuditDirection.INBOUND);
                        Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,">>>>>>>>>>>>>>> etHostName: Module called"+ i++);
                   System.out.println("**************" + amk + "***********");
              } catch (Exception e) {
                   Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,">>>>>>>>>>>>>>> GetHostName: Error Module called");
                   e.printStackTrace(System.err);
                   ModuleException me = new ModuleException(e);
                   throw me;
              // Read the channel ID, channel and the module configuration
              try {
                   Hashtable mp = (Hashtable)inputModuleData.getSupplementalData("module.parameters");
                   if(mp != null){
                        filename = (String)mp.get("FileName");
                        Audit.addAuditLogEntry(amk,AuditLogStatus.SUCCESS,"Host >>>  Element Name is set to {0}"+filename );
                   }else{               
                        Audit.addAuditLogEntry(amk,AuditLogStatus.WARNING,"HostElementName parameter is not set. Default used: HostName.");
                        filename = "FileName";
              } catch (Exception e) {
                   e.printStackTrace(System.err);
                   Audit.addAuditLogEntry(amk,AuditLogStatus.ERROR,"Cannot read the module context and configuration data");
                   ModuleException me = new ModuleException(e);
                   throw me;
              try {
                   XMLPayload xmlpayload = msg.getDocument();
                   DocumentBuilderFactory factory;
                   factory = DocumentBuilderFactory.newInstance();
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   Document document =
                        builder.parse((InputStream) xmlpayload.getInputStream());
                   Element rootNode = document.getDocumentElement();
                   if (rootNode != null) {
                        Element childElement = document.createElement("filename");
                        childElement.appendChild(document.createTextNode(filename));
                        rootNode.appendChild(childElement);
                   // Transforming the DOM object to Stream object.
                   TransformerFactory tfactory = TransformerFactory.newInstance();
                   Transformer transformer = tfactory.newTransformer();
                   Source src = new DOMSource(document);
                   ByteArrayOutputStream myBytes = new ByteArrayOutputStream();
                   Result dest = new StreamResult(myBytes);
                   transformer.transform(src, dest);
                   byte[] docContent = myBytes.toByteArray();
                   if (docContent != null) {
                        xmlpayload.setContent(docContent);
                        inputModuleData.setPrincipalData(msg);
              } catch (Exception e) {
                   e.printStackTrace(System.err);
                   Audit.addAuditLogEntry(amk,AuditLogStatus.ERROR,"Cannot read the module context and configuration data");
                   ModuleException me = new ModuleException(e);
                   throw me;
              return inputModuleData;
    Best Regards
    Ravi Shankar B
    Message was edited by:
            RaviShankar B
    Message was edited by:
            RaviShankar B

  • Adapter module not working

    Hi to all,
    I have written a custom adapter module that I use in a sender channel. I have deployed the EJB with NWDS. However, the module seems to be ignored from the adapter. Why? Can anyone suggest me?
    Thanks!

    Have you put the module at first place in the module chain?
    Are you working with SOAP adapter? The sender SOAP adapter does not support customer modules.
    Add some lines to your code to write anything to the audit log to make sure, that the module is called correctly.
    Regards
    Stefan

  • File sender adapter is not working

    Hello All,
    We are facing a problems with file sender adapter. Communication channel is not picking the files from the directory, but the status in RWB for that channel is 'Functioning'. We are not sure whether the channel is locked or any other problewm with adapter. (In Alternate option, we have created copy of that channel and when it is activated, it picked the file )
    Can anyone help us how to identify whether channel is locked and any other solutions in this case.
    Regards,
    Sreenvias.

    Hi Srinivas,
    The file adapter ( The respective channel) is definitely locked in PI . Ideally for each polling interval a lock is being created and once the processing is over , the lock should be released/deleted automatically to allow further polling interval. If the lock is not released by the system automatically,further polling will not happen as expected. ( This may affect all sender file adapters as well. I would recommend to do a check in al sender file communication channels)
    You can see/delete the locks in Visual admin.
    Go to Server>Services->Locking adapter  and click refresh
    The entries for file adapter ( with name $XIAFFileAdapter) should be deleted by selecting those particilar entries and click delete selected locks.
    If you have more than one node, then same should be done in all server nodes.
      The temprory solution would be creating/copy the existing channel in ID with same properties and assign it into particular sender agreement.
    But, the lock may be created again which potentailly stops all your file based interfaces. Hence i would suggest to use Timeout parameter avialable in file sender adapter which termiates FTP session as you defined, This should solve your issue permanently.
    The FTP server do have thier own time out settings but if you don't defne any particulat time out in PI, the FTP server forcefully disconnects the FTP sessions which created locks in PI.
    Hope this solves your issue.
    PS: The same bahaviour would expected for all sender JDBC adapter as well

  • AC adapter light not working

    When charging my Macbook Pro sometimes the indicator LED light doesn't come on at all.  Everytime I checked when the LED isn't working the computer still charges, but I am not sure if when I leave it sometimes if it is charging correctly since the LED doesn't work periodically.  I am also wondering if this is an issue with the adapter, rather then the actual computer port.  If it is the computer port I don't feel comfortable with sending it out for repairs if its just a small issue.  I guess what I am trying to see is if anyone else has experienced this issue.  I would much rather go to the apple store and recieve a new adapter, and if the issue persists I can send it in for repairs.  Please if anyone has experience with the same trouble I have had let me know.  Thank you in advance.
    -Andrew

    May be the adapter is not working properly.
    Take the MBP and MagSafe/Power Adapter to the Apple store  for evaluation.
    For:
    The MagSafe power adaptor LED doesn't appear to indicate the correct activity.
    Reset SMC.  http://support.apple.com/kb/HT3964
    Choose the appropriate method.
    Best.

  • Ac power adapter is not working

    i bought this item apox. 9/10 months ago from Tesco so i dont know if i have any cover?
    HP Photosmart Plus All-in-One Printer - B209a
    ac power adapter is not working and i ready own hp printers and dont want to have to splash out on another.
    please help... 
    This question was solved.
    View Solution.

    Hi,
    You should still be under warranty, but if not you should be able to buy one from HP Parts Surfer.
    I hope this helps
    JonW
    I work for HP

  • Apple av adapter does not work after updating ios 5,01

    apple av adapter does not work after ios 5,01. no video on vga monitor. sound goes out on iphone 4 also.

    Thank you for your interest. Last night i tried again. It worked. there is still problem, so i could find out it that monitor is going to power saving mode then voice goes out and no view on monitor. I changed the power saving settings. And worked well. Thnx again.

  • JMS sender adapter is not picking up message from MQ

    Hi Experts,
    I have configured the JMS sender adapter for getting message from Websphere MQ. In RWB the adapter and the communicaiton channel all looking good. The trace file tells me the connection to the queue has been established.
    But the problem is this JMS sender adapter is not picking up message from the Queue defined on the MQ site.
    Any Idea what could be wrong?
    Thanks!
    Jason
    Jason

    Hi,
    1) Can you activate the JMS adapter again ( edit save and activate it )
    2) Check whether the right Queue is addressed.
    Regards
    Agasthuri Doss

  • HT201320 I have IOS 7 5S and using mail. Receiving works great. Sending mail will not work. Using Centurylink. On my IOS 6 Iphone 4 it works great. Compared settings and they are identical. Now what?

    I have IOS 7 5S and using mail. Receiving works great. Sending mail will not work. Using Centurylink. On my IOS 6 Iphone 4 it works great. Compared settings and they are identical. Now what?

    Well, this is a recurring issue for many users...a small percentage of users but still a bug.  Report the issue here to Apple:  www.apple.com/feedback
    iOS7.0.3 will be released next week, which as of now, I know is primarily for an iMessage but hopefully it will clear up some of these email issues some are also having.

  • Hi all, Please suggest a case where there is a requirement for new SOAP sender adapter module. I wanted to develop a module but in my current project i am unable to find any such requirement.

    Hi all, Please suggest a case where there is a requirement for new SOAP sender adapter module. I wanted to develop a module but in my current project i am unable to find any such requirement. So please give me inputs for the same..
    Thank you,
    Vinay Kumar A

    You can try converting a synchrnous soap call to asynchronous using a custom module
    Here your module will send a response back to the sender system and make an asynchronous call forward

  • Function Module not working for old Role

    Dears
    Function Module not working for old Role
    Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
    Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
    We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
    Pl check the fucntion module with given roles below and identify the root cause,
    EP_TRVL_ALL_CAB     - Old Role
    EP_TRN_TRVL_DRGC_V2 - New Role
    Regards
    Krishna Mohan CH
    9704500717

    Krishna,
    I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
    What are you trying to achieve? Maybe there's a better way to do that...
    Frank.

  • Laptop adapter in not working

    laptop 420  se.mo-5CG10706HG
    this laptop charger is not working

    Hi
    Please call HP Technical support check your warranty incase your sure the Adapter is not working get it replaced.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • How to notify in case SQL query(JDBC sender adapter) does not fetch records

    hi,
    How can we notify(by alerts or something) in case SQL query(JDBC sender adapter) does not fetch records? In channels logs it only says processing started & finished(no message is created for same).
    Thanks,
    Mayank

    Hi,
    1 ) What is exact audit log message ?
    2) Try fetching the count in SQL statement  if there are any valid records it will give the count.
        May for testing you can use <TEST> in update statement.
    3) Have you used taskTimeout parameter ?
    4) Are multiple channels polling on same table ?
    regards
    Ganga

  • Send & Recieve functionality not working with  WebDav after installing Acrobat XI

    Send & Recieve functionality not working with  WebDav after installing Acrobat XI for PDF.  Acrobat XI is complete installations(Trial Version).

    Hi Kiro ,
    Did you try opening that file in any other browser ?If not ,please try doing that once and see if that  works for you.
    Try Repairing Acrobat once and see if  that helps.
    Launch Acrobat>Navigate to Help>Repair Acrobat Installation.
    Regards
    Sukrit Dhingra

  • Send to is not working when a document library is associated with work flow.

    Send to is not working when a document library is associated with work flow.
    question is when a workflow is tied to list send  to don't work ?
    we get a ntlm login prompt sphoradically, if we cancel the prompt we and reload the page we get the resultsen

    could you please give more detail about the issue?
    What kind of the workflow associated to the Library and what error you getting when trying to perform send to?
    check ULS logs...
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Maybe you are looking for

  • I need help on how to fix this

    Ok, ive tried everything... My comp crashed and at the same time so did my ipod 4th gen. it was chaos so i didnt have the software on my comp. What happened was my ipod froze and i reset it and it came up with a sad face. Sometimes it comes up with a

  • IBook G4 Freezes at Startup Window or gives Blank Blue Screen

    Ok, so I realize my description is long, but I've been going through these forums gleaning off the wisdom of the past...and so here's what I've tried Description of Problem: 1. Computer froze, had to be shut down by holding down power button 2. On re

  • Capturing data using write to measurement file for encoder

    hello dear, can anyone help to check with my encoder to measure data? i have connect the write to measurement file but when i open the .txt file, no result appear, thanks so much for your help Solved! Go to Solution. Attachments: encoder capture.vi ‏

  • MBR fix for Windows 7 thinkpads?

    I really need to resolve this issue. My MBR is "broken" (restored to a non-lenovo stock Windows 7 MBR)  and now all my lenovo software and a lot of my hardware's software won't work. e.g. Intel graphics control panel, lenovo system update, lenovo pow

  • Will a hard shell case make my MBA run warmer?

    I have a 2013 13 MBA, I am contemplating buying a moshi iglaze case but I warm hesitant because I dock my computer to a cinema display when I'm at home and not at work so I am worried about the case making the machine run hotter. Does anyone have exp