Email Adapter Issue in PI 7.11

Hi
I've got a mail to Proxy scenario which uses the payload swap bean to get the attachment from the mail and deliver it to aProxy receive channel location.
exception caught during processing mail message[1]; java.lang.NullPointerException: while trying to invoke the method java.lang.String.startsWith(java.lang.String) of an object loaded from local variable 'respline'
Does anyone know what this means?
Thanks

>exception caught during processing mail message[1]; java.lang.NullPointerException: while trying to invoke the method java.lang.String.startsWith(java.lang.String) of an object loaded from local variable 'respline'
Looks like you have xml tag element respline. This variable gets null value during runtime and so it fails during mapping. check the payload what value comes for that variable and see that matches with your startsWith condition logic. if the field element is option then you might want to write logic as below.
if (string.startsWith("")){
} else{

Similar Messages

  • EMAIL ADAPTER :Issue

    The scenario is from IDOC-MAIL with no repository objets and no mapping .The  outgoing message is email. Msg protocoll is XIALL without mailpackage .The mail adapter sends an email and generates an attachment file which
    contains the IDoc message.The IDoc message is not only written into the attachment file but also
    into the email body.
    1. WE DO NOT WANT THE IDOC MSG IN THE EMAIL BODY
    2.Can we send the File name dynamically .If we need to set the date and time stamp.txt as the File name can this be done.If so how can we achieve this ?
    Please suggest .
    Request you to please suggest how this can be done?
    Thanks & Regards,
    Rajesh

    Hi,
    Dynamic File name can be achieved through mapping using Dynamic configurations...
    You need to create a mapping with source and target struvture as same and use UDF with Dynamic config classes for generating the file name as in your required format..
    if need more details on the same search SDN..
    For only payload attachment use message protocol as XIPAYLOAD instead of XIALL..
    HTH
    Rajesh

  • Email Adapter Throwing Error

    Hi,
    I'm using a sender email adapter. But its throwing the following error.
    error occured: exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO The requested item could not be found.
    Can somebody let me know why does this happen? I'm using IMAP4, XIPAYLOAD and Plain Authentication mode.
    Thanks,
    Sandeep

    Hi all
    Just  for your interest : I had same issue and it was due to a incorrect URL in the mail adapter ( I used my mailbox name and didn't specify the IMAP folder INBOX ):
    e.g. imap://mailserver/INBOX
    worked for me ( the individual mailbox is apparently found via the username/password ) with microsoft exchange as mail server
    hope it can still helps anyone,
    regards
    Dirk

  • Receiver Mail Adapter Issue.

    Hi All,
    I am running an interface from proxy to email using the inbound mail adapter. The email adapter is resutling in the following exception:
    failed to send mail: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    Could any one please throw some light into this issue?
    Thanks a ton! in advance.
    Thanks,
    Manohar Dubbaka.

    Hi,
    Thanks for the quick response.
    I am trying to send an attachment using the email. I am using
    Transport Protocol as : SMTP
    Message Protocol as : XIPAYLOAD
    Adapter Engine as : Integration Sever
    URL as: smtp://10.1.1.11
    Configure User Authentication as : Check
    Content Encoding as: base64
    Keep Attachments as : Check
    And also using the Adapter Framework modules as:
    AFT_Modules/StrictXml2PlainBean                               Local Enterprise Bean       1
    AF_Modules/MessageTransformBean                           Local Enterprise Bean        3
    AF_Modules/PayloadSwapBean                                   Local Enterprise Bean        2
    sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean      Local Enterpriese Bean   mail
    I am converting the XML message into comma separated text file using the following transformation
    1              Record.beginSeparator         "
    1              Record.endSeparator           "\r\n
    1              Record.fieldSeparator          ","
    1              singleRecordType               Record
    3             Transform.ContentType        text/plain;name="MGFSPECS.TXT"
    2             swap.keyName                   content-type
    2             swap.keyValue                   text/plain
    This mail adapter was working fine, earlier. I am not sure, why this is resulting in issues ?
    Truly, appreciate any kind of help in gettint this resolved.
    Thanks
    Manohar Dubbaka

  • PI 7.1 IMAP email Adapter Error reading large amounts of emails

    Hi,
    are there any known problems with the email-Adapter (Sender), reading IMAP MS Exchange Server?
    We have an email adapter reading the MS Exchange Server Mail Account once per Minute and in the mail account are about 4.000 unread email  (1KB each) .
    After 2000 emails, the adapter stops working and throws only exceptions.
    Any idea?
    Thanks
    hs

    Hi Holger,
    i made a few tests at that time, and there was no specific scenario which re-produced this error.
    In some tests i was able to process more than 3000 emails before the error occured, next time only 2000.
    And this only occured when the inbox had a huge amount of emails. if i moved, lets say 1000 emails to a temporary folder,
    processed 1000 and then moved the 1000 back to the inbox, there was no problem. Now i'm polling every minute and i'm
    not receiving 2000 emails in a minute, so i'm not having this issue anymore. it only happend when we stopped the
    sender channel for a while and a lot of emails were queuing up in the inbox.  I don't think that there are any MS Exchange settings that need to be changed and when we spoke to Support that time, they refered to the Note i mentioned earlier.
    Maybe there is still a problem in the mail adapter itself..
    regards,
    Daniel

  • Tidal Email Adapter error monitoring folder 'INBOX':Illegal whitespace in address

    I am experiencing an issue with a tidal email adapter and email events are not being triggered.
    TIDAL Enterprise Scheduler: version 5.3.1.316
    Java version: 1.6.0_27
    Java Virtual Machine version: 20.2-b06
    Adapter Host: version 5.3.1.299
    Java version: 1.6.0_27
    Java Virtual Machine version: 20.2-b06
    Issue started shortly after our environment did a unexpected failover a couple of days ago.  The servers have been rebooted but the issue still appears
    I have disabled the email adapter and recreated a new one, issue is still there.  Any suggestions on resolving this would be appreciated. The email mailbox is working and recieving messages, and I am able to connect using a pop3 client to the mailbox no problem.
    Any suggestions would be appreciated.
    Here is the Tidal Master email adapter log messages:
    02/29 13:45:12:759[MD-8]: (mem=5062504/16515072) Connection 7: Error monitoring folder 'INBOX':Illegal whitespace in address
    02/29 13:45:12:759[MD-8]: (mem=5059960/16515072) javax.mail.internet.AddressException: Illegal whitespace in address in string ``Mail Delivery Subsystem''
    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:900)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793)
    at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554)
    at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658)
    at javax.mail.internet.MimeMessage.getFrom(MimeMessage.java:321)
    at com.tidalsoft.service.logic.EmailInterface.b(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at bd.p(Unknown Source)
    at bd.l(Unknown Source)
    at com.tidalsoft.service.logic.ConnectionMessageHandler.onPoll(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at bt.a(Unknown Source)
    at ba.b(Unknown Source)
    at ba.a(Unknown Source)
    at com.tidalsoft.framework.message.BaseMessageHandlerImpl.onMessage(Unknown Source)
    at com.tidalsoft.framework.data.DataWrapper.onMessage(Unknown Source)
    at ad.run(Unknown Source)
    02/29 13:45:12:759[MD-8]: (mem=5062504/16515072) Connection 7: Error monitoring folder 'INBOX':Illegal whitespace in address
    02/29 13:45:12:759[MD-8]: (mem=5059960/16515072) javax.mail.internet.AddressException: Illegal whitespace in address in string ``Mail Delivery Subsystem''
    at javax.mail.internet.InternetAddress.checkAddress(InternetAddress.java:900)
    at javax.mail.internet.InternetAddress.parse(InternetAddress.java:793)
    at javax.mail.internet.InternetAddress.parseHeader(InternetAddress.java:554)
    at javax.mail.internet.MimeMessage.getAddressHeader(MimeMessage.java:658)
    at javax.mail.internet.MimeMessage.getFrom(MimeMessage.java:321)
    at com.tidalsoft.service.logic.EmailInterface.b(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at com.tidalsoft.service.logic.EmailInterface.a(Unknown Source)
    at bd.p(Unknown Source)
    at bd.l(Unknown Source)
    at com.tidalsoft.service.logic.ConnectionMessageHandler.onPoll(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at bt.a(Unknown Source)
    at ba.b(Unknown Source)
    at ba.a(Unknown Source)
    at com.tidalsoft.framework.message.BaseMessageHandlerImpl.onMessage(Unknown Source)
    at com.tidalsoft.framework.data.DataWrapper.onMessage(Unknown Source)
    at ad.run(Unknown Source)
    Thanks,
    Pete

    We found the problem, there was an message in the inbox that is being monitored by the email event.  The message was an undeliverable and the sender was = Mail Delivery Subsystem 
    We had received previous undeliverables from this company and the sender was =  Mail Delivery Subsystem <[email protected]
    The email monitoring was impacted by those previous message but as soon as it only reflected Mail Delivery Subsystem and no email domanin name it failed.
    Once we removed the messages from the inbox the email events triggered as expected.  I now need to build a rule to remove these message from the mailbox.
    Thanks,
    Pete

  • How to send only one (of several) attachment from a receiver email adapter?

    Hi all,
    I have been working with the SAP XI email adapter for some time and now I encountered the following challenge:
    I am receiving a message via email from a partner, call some modules which lead to the generation of 5 attachments in total for the incoming message.
    I then map the MainDocument to a CONTRL message and return it to the sender using the dynamic parameters of both the sender and the receiver email cc.
    I am filling these parameters inside the message mapping; so far I am not using the mailpackage xsd (the only things out of the ordinary are checked boxes for "use adapter specific parameters", "variable transport" and "keep attachments").
    My problem is that the email receiver cc now generates an email with 5 attachments when I need it to add only the CONTRL (aka MainDocument) as attachment to this email.
    Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?
    Thanks and cheers!
    Stefan

    Hi Stefan,
    >>>>Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?
    1. It cannot be done in a mapping
    2. have a look at mz blog
    how simple it is to write an adapter that will do what you need
    (just check the delete part of this blog):
    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Need help for Adapter Specific Message Attributes in Receiver Email Adapter

    We want to use Adapter Specifice Message Attributes(ASMA) in Receiver Email Adapter for sending the mails dynamically, and to set the CC and BCC. I have gone through the help give in <a href="http://help.sap.com/saphelp_nw04/helpdata/en/a5/1b5342d8a7be30e10000000a155106/frameset.htm">SAP Help</a>
    not clear how to use it. Please help to configure this.Any blogs?
    with regards,
    Ravi Siddam

    Hi Kumar,
    This blog explains about using 'Mail Package' option. We have already gone through this link and configured as explianed.  1.it dosen't support CC,BCC and 2. it is old way.
    We are on PI 7.0. It is recommended to use ASMA and in this it is possible to use CC and BCC.
    We don't know how to use ASMA. any help?
    with regards,
    Ravi Siddam

  • Using Attachments in the Email Adapter

    Hi,
    I'm using an email adapter(Sender - XIPayload) to send message to XI. It was working fine when my mail content was the XML messsage. But now i have to use the content of an attachment file to do the mapping. The attachment is an XML file. I have checked the Keep attachments option and now i can see that the payload contains two sections. One is the mail content and the attachment content. But the mapping fails. How can i specify that the content of the attachment is to be used for mapping? Can somebody give some inputs on how to achieve this?
    Thanks,
    Sandeep

    Hi Sandeep,
    To use attachments in mail adapter, just do the following things:
    -     Set the Keep Attachments indicator.
    -     And you use the PayloadSwapBean module to swap the application payload with one of the attachments.
    Please also go thru the following links:
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/content.htm
    Regards,
    abhy

  • How to filter emails using sender email adapter

    Hi,
    Does any one know how to filter emails of mail server using Sender email adapter(POP3 protocol ) in PI .
    To make it more clear let us assume that there are 10 emails in the email server then 3 emails should be fetched for Interface A , 3 emails Should be fetched for Interface B and remaining 4 emails should be ignored and left in the email server as it is ,  the reason for this is that it is not related with the Interface A or Interface B. Any suggestion or solution will be much appreciated.
    Thanks & Regards
    Prabhat

    Hi,
    I guess you didnt get my requirement clearly. My requirement is how to filter emails from email server using sender Email adapter in POP3 protocl and pass it to relevant Interface.
    For ex: suppose email no.1 is related to Interface A then it should go to Interface A
                   or         email no. 2 is related to Interface B then it should go to Interface B
                   or         if  email no. 3 is junk mail then it should avoid deleting that email and leave that email as it is
    The problem/challenge here is that email adapter of Interface A or B reads it first and deletes the email message so it is not available for the Interface A or B.
    So I just want that sender email adapter should filter it before deleting email from the email server.
    Can you provide some solution for this?
    Thanks & Regards
    Prabhat

  • Sender Email Adapter in PI 7.11 by using the IMAP

    Hi Experts
    I am trying to configure a sender email adapter by using the IMAP Protocal , Can anyone send the blog or paramertes to configure for IMAP Protocal
    I did find for POP3
    Thanks
    PR

    Can anyone send the blog or paramertes to configure for IMAP Protocal
    http://saptrainingsonline.com/sap-xi-pi-tutorials/configuring-the-receiver-mail-adapter-in-sap-xi-pi/
    http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm

  • Filename attachment to dynamic email address in receiver email adapter

    Hi,
    Can i send a file with dynamic name to a dyanmically generated Email Id as attachment using receiver Email adapter ?
    Thanks
    Rupesh Kumar

    Hi,
    I had gone through the links given , but it doesn't answer my question completely. I think i need a java code to send dynamically generated filename to be send to dynamically generated email ID.
    The file name and the email Id is available in the sender adapter.
    This filename should be send as attachment to the Email Id using receiver Email adapter.
    Thanks & regards,
    Rupesh

  • Query related to Email adapter

    Hi,
    I have query related to receiver Email adapter. I am able to run a scenario for 2 attachments in receiver mail adapter scenario.
    My scenario is that I am picking up the multiple files using sender file adapter "additonal fiiles" fucntionality and and post the two files as attachments in receiver email adapter. I am picking up two formats: .xml file and PDF and successfully attached to the receiver email adapter.
    My query is is related to Standard module processors sequence.
    For 3 files in mail attachments(.xml , pdf & .txt)  what should be the module processors sequence in receiver email adapter?
    Currently I am using the following module processors sequence
    1     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans2
    2     localejbs/AF_Modules/PayloadSwapBean                          Local Enterprise Bean     swap
    3     localejbs/AF_Modules/MessageTransformBean                          Local Enterprise Bean     trans1
    4     sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean     Local Enterprise Bean     mail
    swap -> swap.keyName -> payload-name
    swap> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file1
    trans2>Transform.ContentDescription>inline
    Can any body tell me what should be the sequence of module processors and the associated parameters so that all formats(.xml , pdf & .txt)  should go as an attachments in the reciever email adapter.
    Thanks & Regards
    Prabhat

    it would be something like this, Try this
    1 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swaptxt
    2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans3
    3 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swapxml
    4 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans2
    5 localejbs/AF_Modules/PayloadSwapBean Local Enterprise Bean swappdf
    6 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean trans1
    7 sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    swapxml -> swap.keyName -> payload-name
    swapxml> swap.keyValue> file2
    swappdf -> swap.keyName -> payload-name
    swappdf> swap.keyValue> file1
    trans1> Transform.ContentDescription>file1
    trans1> Transform.ContentDisposition>attachment
    trans1> Transform.ContentType>application/pdf;name="file1.pdf"
    trans2>Transform.ContentDescription>file2
    trans2>Transform.ContentDisposition>attachment
    trans2> Transform.ContentType>application/xml;name="file2.xml"
    trans3> Transform.ContentDescription>file3
    trans3> Transform.ContentDisposition>attachment
    trans3> Transform.ContentType>application/txt;name="file3.txt"
    mail --> mime.contenttype   --> multipart/mixed
    I have not tried this myself. but it should work

  • Query related to Sender Email Adapter

    Hi ,
    I have one requirement related to sender mail adapter.
    There are 2 Interfaces and both the interfaces are fetching emails using 2 sender mail adapters from the same email database and I am posting data at the receiver side on the webservice using SOAP. So my requirements/challenges are as mentioned below
    1) How to diffrentiate the emails for the two Interfaces i.e .  how emails from the same email server database will be fetched correctly for the two interfaces, currently the interfaces are fetching the data incorrectly from the same email server as both the sender email adapters are active. It means that suppose sender email adapter of Interface A is active it fecthes the email and it deletes it from email database and hence it is not available for the interface "B". How to avoid this situation.
    2) How to filter emails using sender email adapters i.e. how can we avoid the junk mails and select the correct email for the correct interface.
    Note: IMAP cannot be used in our environment due to certain restriction, therefore how can it be done using POP3 protocol?
    Any suggestion on the problem will be much appreciated.
    Thanks & Regards
    Prabhat

    Hi,
    Any solution on this will be much appreciated.
    My requirement is how to filter emails using sender email adapter
    Note: I cant's use IMAP4 due to certain restriction, I can use only POP3
    Hi Salvi,
    Your suggestion cannot be implemented as
    The source payload for the two interfaces are different and also 2 different BPMs are used for 2 different interfaces so even if I use same mail adapter and it will picked up by the adapter and processed by one interface and not available to other interface as sender agreements for the interfaces will be different though the communication channel is same.
    So If anyone can provide me the solution as how to filter emails from mail box using sender mail adapter , that will solve my problem.
    Thanks & Regards
    Prabhat

  • EMail-Adapter failed

    Hi,
    I use the blog from Michal to configure a dynamic email adapter
    (/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address)
    So far so good. I can map the email adress I wanted and also receive
    a email, but in sxmb_moni appears following mistake:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
      <SAP:P1>http://test.ri/Email IM_EMail_EP7_TO_EMail</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Interface mapping http://test.ri/Email IM_EMail_EP7_TO_EMail does not exist in runtime cache</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    I call a web service and just map the data to the email inbound interface  (both
    use same data type). Could it be, that I have to do this sync beacause of
    the web service? Now, I do it async.
    Why else he could pretend, that no mapping should exist?
    Thanks
    regards
    chris

    Hi all,
    the interface mapping IM_EMail_EP7_TO_EMail does exist.
    Also I select it in the wizard (I didn't wrote any name manuel, except
    in SOAP Adapter).
    I also did a dummy change and reactivate the interface mapping. After
    this I also did a complete cache refresh in sxi_cache, but the error still
    appears.
    @Bhavesh Kantilal 
    It seems I explained wrong. I have an own message type for incoming
    web service and map this with the external email type, so a mapping
    does exist and is used.
    The email type got (like a RFC) also a mail receipt. Do I have to handle
    it? 
    Could it be, that the web service awaits a response? I just handle it
    asynchronous.
    thanks
    chris

Maybe you are looking for

  • Multiple Libraries for Multiple Users on iTunes

    Is there a way - using iTunes 7 - to have multiple libraries? Our family shares a computer and I would love to have separate libraries. Thanks. Tas804

  • Connecting iPads to an Enterprise Wireless 802.1x (EAP-TLS) Network Using Windows Server 2003 IAS

    Hi there, I am asked to deploy iPads on an 802.1x EAP-TLS WiFi network. The customer has a Windows Server 2003 IAS server providing RADIUS. There also is a Windows based CA infrastructure in place. This solution is in production and is already being

  • Dynamic date format in a VO

    Hi All Jdev 11.1.1.6.0. I have a query based VO with an attribute named date range which is a concatenation of two dates (SELECT DATE1||' - '||DATE2 as date_range FROM xyz) date_range is a display only field in UI. I want to apply different date form

  • AppleWorks quits when I try to spellcheck

    I am running 10.2.8 on my mac. I have Appleworks 6.0.4. After typing in a document it and try to spellcheck it simply quits. What do you suggest?

  • Help needed in Automatic payment run

    Good afternoon, i want to create a payment run and use Special GL aslo... i have assigned in fbzp--> all co. codes and special gl "A" but according to my client he is asking  that Special GL"N" should aslo be allowed for Automatic payment. but when i