Error at Receiver Mail adapter modules
Hi,
We have implemented a receiver mail adapter for producing Excel file as attachment.
It is giving the error as follows:
Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Object not found in lookup of MessageTransformBean.: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of MessageTransformBean..
This configuration has worked well earlier, and suddenly it is throwing this error.
Please let me know what might be the reson for this.
Thank you.
Regards
Bhanu.
Edited by: Bhanu Tiruveedula on Sep 15, 2009 1:00 AM
Edited by: Bhanu Tiruveedula on Sep 15, 2009 1:00 AM
Hi,
I didn't use the fullstop.
Can anybody help me in resolving this issue?
Thanks.
Similar Messages
-
Change "subject" in Receiver Mail Adapter Module
Hi all,
following the "How To Guide" I developed a Module for my receiver mail adapter. Everything works fine.
Now my question: is it possible to change the content of the mail-"subject" in the module?
Your help is appreciated.
CarmenHi Stefan,
maybe I should describe my problem more detailed:
My scenario is RFC-XI-Mail. I use the mail package to determine the receiver of the mail dynamically. Another thing I want to do, is to attach a file to this mail which is located on the server. So far so good.
My problem is, that the name of the file (which I need in my adapter module) changes for every mail. So what I need is the possibility to deliver it to the adapter module.
I found out that it is possible to read the payload. So my idea was to hand it over in one of the fields like "subject". But now I want to change the subject afterwards...(delete the filename).
Maybe you have another idea?
Regards
Carmen -
Receiver Mail Adapter Module Parameters
Hello PI Experts,
Can anyone pls provide me Mail adapter module parameter details for xml to txt file conversion. I have found a few but none of them are working, can you pls provide me some active links.
Thanks,
SriI need MAIL Adapter module transformation parameter for converting my attachment from xml to text file -
I have gone thro few forums and modified my comm channel, but still getting xml file as an output attachment instead of a text file.
Can anyone please suggest me how to change the module parameters to covert from xml file to text.
I have added these module processing - please help.
Processing sequence
localejbs/AF_Modules/MessageTransformBean - Local Enterprise Bean - XML2Plain
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - Local Enterprise Bean - Mail
Module configuration
XML2Plain - xml.endSeparator - 'nl'
XML2Plain - xml.fieldNames - Field1,Field2,Field3
XML2Plain - xml.fieldSeparator - | |
XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
XML2Plain - Transform.ContentDisposition - attachment;filename="extract_p.txt"
XML2Plain - Transform.ContentType - xml/plain;charset='UTF-8";name="extract_p.txt"
XML2Plain - xml.recordsetStructure - Details
Thanks,
Sri -
Error in receiver Mail adapter: Client was not authenticated
Hi.
My requirement is to send email via PI to an extermal mail address. I am trying to use the following configuation for the same.
Tramsport Protocol: SMTP
Message Protocol: XIPAYLOAD
URL: To get the value of URL, execute transaction SCOT in PI system. Double click on SMTP and get the Mail host from there (name). So the URL has been specified as smtp://name
Comfigure User authentication - Checked
User: My outlook email address
Password: My outlook email password
From: My outlook email address
To: External address to which the email needs to be sent
Content encoding: base64
But the email is not getting sent. when I check the adapter engine I see the errors:
Mail: error occured: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated
Mail: error occured: com.sap.aii.af.lib.mp.module.ModuleException
MP: exception caught with cause com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated
Adapter Framework caught exception: Failed to call the endpoint
Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated.
Can anyone please suggest what changes are needed to make this work?
Any help is greatly appreciated.
Thanks.
Anuradha.HI Anuradha,
Check the below link for receiver mail configuration and follow the steps accordingly.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a27c01-26b0-2c10-bd8a-94498efa7ff6?quicklink=index&overridelayout=true
Regards,
Naveen -
Error in receiver Mail Adapter of PI 7.1
Hi Team,
I had configured Mail Receiver Adapter in PI 7.1 with the following Parameters.
I had imported the XSD given & Mapped only Subject, From, To, Content fields.
In Receiver Communication Channel parameters are
*Transport Protocol = SMTP
Message Protocol = XIALL
URL = SMTP url given
Authentication Method = Plain
User/ Password given for my id only
MAIL Attributes
From, To = my own company id
Content Encoding = base64*
These are the seeing i had done for Mail Receiver Communication Channel
When I test by HTTP, i am getting Succesful in Moni & in Adapter i am finding this error.
com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error: invalid XIMailAdapter channel 'b7b80e17d9e336b38354f663c01aed68'
Mail Settings have been done in System, got even Test mails from System.
Thanks in Advance,
SriramSee, the XSD that you are referring or the blog is referring needs to be imported under External Definitions and directly use it in message interface & message mapping ....you dont again need to create a DT based on that XSD!......you will need a DT & MT just on the sender side (in your particular case)
So just create the DT for sender (you seem to have done this part).....import the XSD into IR from this location
https://websmp205.sap-ag.de/~sapidb/012006153200000361852004E/ximail30_xsd.txt
use it on the receiver side.....The only thing that i wanted to mention is that when you enter the Subject, To, From details in CC you can even design your own DT for receiver side
I hope that you are entering the URl in this format --> smtp://<the url>
Check this thread :invalid XIMailAdapter
and this blog to confirm your settings: /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Regards,
Abhishek. -
Error on Receiver Mail Adapter (SMTP)
Hi All,
I'm going to exchange message within mail to mail scenario like synchronous one. Sender Mail Adapter is running well, it can take any email in inbox. but when I want to send the email back to the sender, the receiver adapter doesn't work. here is my config :
Receiver :
Transport Protocol : SMTP
Message Protocol : XIPAYLOAD
Adapter Engine : Central Adapter Engine
URL : smtps://[outgoing_mail] (use smtps because it use SSL)
Tick 'Configure User Authentication'
Authentication Method : Plain
User : [Username]
Password : [Password]
Tick 'Use Mail Package'
Content Encoding : Base64
Tick 'Keep Attachment'
The error Message in RWB :
- failed to send mail: java.io.IOException: unable to create a socket
- Message processing failed. Cause: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: unable to create a socket
I was config and run successfully in Outlook Express.
There was something wrong with my config in PI? Please Help me..
Regards,
GlennHi Nunes,
I already test this mail account using microsoft outlook express. smtp port with ssl is 25 or port 587 work fine.
my basis team had already investigate and do some config such as, install cryptolib, config sapconnect, etc, but no luck.
here is some error log from our server:
#2.0 #3 20:15:00:748#+0700#Error#com.sap.aii.af.sdk.xi.net.SMTPClientConnection#
#BC-XI-CON-AFW#com.sap.aii.af.lib#00215ACD468400E200000001000009B4#2170350000001401#sap.com/com.sap.aii.adapter.mail.app#com.sap.aii.af.sdk.xi.net.SMTPClientConnection.send(Object)#J2EE_GUEST#0#SAP J2EE Engine JTA Transaction : [0211dffffffee0023ffffff94]#101B37B806B611E0A2CF00215ACD4684#101b37b806b611e0a2cf00215acd4684#101b37b806b611e0a2cf00215acd4684#0#MS Queue Worker [Mail_http://sap.com/xi/XI/SystemRecv]#Plain##
additional info ssl_debug(44): Starting handshake (iSaSiLk 4.31)...
ssl_debug(44): Sending v3 client_hello message to <outgoing_mail_server>:25, requesting version 3.2...
ssl_debug(44): SSLException while handshaking: Invalid SSL message, peer seems to be talking plain!
ssl_debug(44): Sending alert: Alert Fatal: handshake failure
ssl_debug(44): Shutting down SSL layer...
any other suggestion?
Edited by: Glenn Prasetya on Dec 15, 2010 4:40 AM -
Receiver Mail Adapter - Module config
I have to send an email with file attachment. The structure of the attachment is complex so I have to use module config to get the correct structure. I have the following parameters:
localejbs/AF_Modules/MessageTransformBean trans1
localejbs/AF_Modules/PayloadSwapBean swap
localejbs/AF_Modules/MessageTransformBean trans2
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
trans1 Transform.ContentDescription Outmail
trans1 Transform.ContentDisposition inline
swap swap.keyName payload-name
swap swap.keyValue Outmail
trans2 COMMENT.fieldFixedLengths 1,1,9,50
trans2 DETAIL.fieldFixedLengths 2,9,15,7
trans2 HEADER.fieldFixedLengths 2,9,1,1,6,5
trans2 RECORDSET.recordsetName RECORDSET
trans2 RECORDSET.recordsetStructure HEADER,COMMENT,DETAIL
trans2 Transform.ContentDescription Outmail
trans2 Transform.ContentDisposition attachment;filename="mex.txt"
trans2 Transform.ContentType xml/plain;charset='UTF-8";name="mex.txt"
trans2 ignoreRecordsetName true
I don't really understand what Transform.ContentDescription/Transform.ContentDisposition does
When I run my scenario I get the email and mex.txt attachment, but the contents of the attachment are still in XML format.
How do I debug this? Can anyone tell me what I am doing wrong.
Lots of points will be rewarded!Now I see,
you do not have an attachment, just one file.
In that case, do not use the PayloadSwapBean and the MessageTranformBean only once.
Her is a description of the content conversion in MessageTransformBean:
http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/frameset.htm
In your scenario following entry is missing:
Transform.Class com.sap.aii.messaging.adapter.Conversion
The ContentDescription is not necessary, the ContentDisposition (inline or attachment) help some email client to decide to display the email content inside the email window or as attachment. Most of the email client just ignore this.
Regards
Stefan -
Error in receiver mail adapter
Hi,
i am working with file to mail scenario.
I have two files.The second file i am sending as an attachment with the first file.
My receiver communication channel has following error::
error occured: [2006-11-08T07:35:08Z] unable to call the mailer; com.sap.aii.messaging.srt.BubbleException: Failed to call the endpoint [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to RCPT TO; 550 5.7.1 Unable to relay for [email protected]
Please provide some help on it.
Thanks & Regards,
Nilima J.RodriguesHi,
Now i am getting the emailat my email id.
But when i try to open the file,it displays the following contents::
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'file:///C:/Documents and Settings/nilrodri/Local S...
The second file is an image file(.jpg).
Filename is appearing but when i open it ,it says 'No preview available.'
Please provide some help on it.
Thanks & Regards,
Nilima -
I am trying to configure a receiver mail adapter..
Our system is using microsoft exchange server and i specified the following,
URL: Microsoft Exchange Server
and I get the following exception in Adapter monitoring,
Mail: error occured: com.sap.aii.af.mp.module.ModuleException
Has anybody encountered this error and if so how should this be resolved?Hi
<i>>>Our system is using microsoft exchange server</i>
Ok ur company is using Microsoft Exchange Server, then r u sure the name of ur server is also Microsoft Exchange Server becoz in our company we hav a specific name of our Microsoft Exchange Server.
<i>>>URL: Microsoft Exchange Server</i>
The URL shd b something like this
<b>URL</b>: smtp://<b>name of Microsoft Exchange Server</b>
Hope it helps.
Regards
Arpit Seth -
Receiver Mail Adapter configuration Error???
Hi,
i've created a Mail Adapter with the following configuration:
Adaptertype: Mail
Receiver
Transport-Protocol: SMTP
Message-Protocol: XIPAYLOAD
Adapter-Engine: Integration-Engine
I set From and To Fields to a valid address. When i start a test the message is passing the integration engine and an error occurs within the mail-adapter:
Mail: Configuration error: Channel 7a15b118b96b392bbc9be5922f55b7d0is not configured for XIMailAdapter
Mail: call failed; com.sap.aii.af.ra.ms.api.RecoverableException: Error: invalid XIMailAdapter channel 7a15b118b96b392bbc9be5922f55b7d0
How can this happen?
regards
msHi,
Reffer these BLOGS
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
<u><b>Target Structure:::::</b></u>
- <xs:schema targetNamespace="http://sap.com/xi/XI/Mail/30"
xmlns:xi="http://sap.com/xi/XI/Mail/30"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <!--
Mail
-->
- <xs:element name="Mail">
- <xs:annotation>
<xs:documentation>Mail package for XI - Mail Adapter</xs:documentation>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
<xs:element name="Subject" type="xs:string" minOccurs="0" />
<xs:element name="From" type="xs:string" minOccurs="0" />
<xs:element name="To" type="xs:string" minOccurs="0" />
<xs:element name="Reply_To" type="xs:string" minOccurs="0" />
<xs:element name="Content_Type" type="xs:string" minOccurs="0" />
<xs:element name="Date" type="xs:dateTime" minOccurs="0" />
<xs:element name="Message_ID" type="xs:string" minOccurs="0" />
<xs:element name="X_Mailer" type="xs:string" minOccurs="0" />
- <xs:element name="Content" minOccurs="0">
- <xs:annotation>
<xs:documentation>any type</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="encoding" type="xs:string" />
</xs:complexType>
</xs:element>
- <xs:element name="MailReceipt">
- <xs:annotation>
<xs:documentation>Mail Receipt for XI - Mail Adaper</xs:documentation>
</xs:annotation>
- <xs:complexType>
- <xs:sequence>
<xs:element name="Server" type="xs:string" />
<xs:element name="Format" type="xs:string" />
<xs:element name="UseMailPackage" type="xs:boolean" />
<xs:element name="Encoding" type="xs:string" />
<xs:element name="Subject" type="xs:string" minOccurs="0" />
<xs:element name="From" type="xs:dateTime" minOccurs="0" />
<xs:element name="To" type="xs:string" minOccurs="0" />
<xs:element name="Date" type="xs:dateTime" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Regards
Seshagiri -
How to use XML Anonymizer Module for receiver mail Adapter?
Hi All,
I would like to know how to use XML Anonymizer Module for receiver mail adapter so as to change the namespace to http://sap.com/xi/XI/Mail/30 from my original namespace? Thank you all in advance?Hi,
This may help u:
Replacing one namespace with another using XML Anonymizer Module
Thanks
Amit -
Dynamic attachment name in receiver mail adapter for 1 attachment?
Hi,
seems to be a tricky thing....
The sender interface (file) picks up an xml file and a pdf document.
The receiver wants to get the xml file as a txt file and the pdf, both sent together by mail.
We are following this thread:
"Sending multiple attachments winthin a single Receiver Mail adapter in required format".
So far we are able to generate the txt file and send it together with the pdf to the recipient.
The txt file gets its name from the payload of the xml file.
Unfortunately the pdf should be renamed to the same name as the txt file.
And here we are stuck.
We generate the filename for the txt file in the mapping to the mail message (as usual ximail30.xsd).
But for the pdf we are only able to set a static name in the channel module page using
Transform.ContentDisposition.
Any ideas how to solve this are really welcome!!!!
(Solutions that do not talk about using a new module to be written are prefered.)
Regards
DirkHi,
seems to be a tricky thing....
The sender interface (file) picks up an xml file and a pdf document.
The receiver wants to get the xml file as a txt file and the pdf, both sent together by mail.
We are following this thread:
"Sending multiple attachments winthin a single Receiver Mail adapter in required format".
So far we are able to generate the txt file and send it together with the pdf to the recipient.
The txt file gets its name from the payload of the xml file.
Unfortunately the pdf should be renamed to the same name as the txt file.
And here we are stuck.
We generate the filename for the txt file in the mapping to the mail message (as usual ximail30.xsd).
But for the pdf we are only able to set a static name in the channel module page using
Transform.ContentDisposition.
Any ideas how to solve this are really welcome!!!!
(Solutions that do not talk about using a new module to be written are prefered.)
Regards
Dirk -
In Receiver Mail Adapter ,how to ignore SOAP Header attachment
HI Folks,
Am using Receiver Mail Adapter and am getting 2 attachments.
1. one is Soap header which contains Control records
2. payload
I want only Payload as attachment and need to ignore SOAP Header(AT00001.xml).
The configuration is as below:-Trasport protocol : SMTP
Message Protocol: XIALL
Please provide Inputs.
Thanks & Regards
Ashok ReddyHi Gagandeep,
Scenario: File------>mail( Bypass scenario)
i had posted file in FTP and am getting attachment properly but aditionally am getting ATT00001.xml as SoapHeader.this i need to ignore.
PFB Module Parametrs i used:
localejbs/AF_Modules/MessageTransformBean LocalEnterpriseBean transform
Modulekey Parameterattribute value
transform Transform.ContentDisposition attachment;filename=”Pocr_860.txt”
transform Tansform.ContentType text/plain
Regards
Ashok -
Receiver mail adapter - Payload as a Text attachment
Hi,
In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file)
when i send payload, currently i am receiving as a XML file.
I try to follow like Rushikesh Deshmukh XI thread: Text Attachment in Mail Adapter in XI forum(topic)
I have having following config
Processing Sequence
localejbs/CreateAttachment Local Enterprise Bean XML2Plain
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Configuration
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure Header1000,Header2000
Please suggest some solution."
Could you tell me exactly where i need to do all these setting and
do i need import localejbs/CreateAttachment Local Enterprise Bean XML2Plain...I mean shall i add same in my processing sequence
give in detail ? (in Receiver mail adapter Communication channel, advanced mode additional parameters)
I tried to follow this also
http://help.sap.com/saphelp_nw04/helpdata/EN/4e/c153426da9bd30e10000000a155106/frameset.htm
but i could not find much info on this help.sap.com reg. req.
Thanks
PrabaharanHi
f i create like this Receiver CC (module Tab)
number: 1
Module Name: localejbs/CreateAttachment
Module Type: Local Enterprise Bean
Module Key: mail
is it enough? do i need any other setting like this
Did you deployed CreateAttachment on PI server. As this is not a standard SAP module this is a custom module?
mail as module key is already used by XIMAILAdapterBean use some other key for CreateAttachment
Settings are fine for the Module
Processing Sequence
localejbs/CreateAttachment Local Enterprise Bean XML2Plain
localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
Module Configuration
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
In this:
Module Key: XML2Plain
Parameter Name: Transform.Class
Parameter Value: com.sap.aii.messaging.adapter.Conversion
is it right?
Processing sequence is fine
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
XML2Plain xml.addHeaderLine 0
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.recordsetStructure Header1000,Header2000
can i anyone explain how to these settings?
Is this key valid to provide inputs to the module check with the code for this module
This looks like valid for MessageTransformBean ro StrictXMLtoPlainBean
Thanks
Gaurav
Edited by: Gaurav Bhargava on Oct 15, 2008 5:34 AM -
Dynamic excel filename Receiver Mail adapter
Hi all,
May i know what is the way to dynamically set the file name of attachment in receiver mail adapter.
Can we do using DynamicConfiguraion???
If yes how?
Thanks In Advance,
H.L.BabuBut i am not using any mail package.
and also in adapter module i have written code like..
byte by[] = generateExcel(is);
xp.setName(filename);
System.err.println("The name of the file."+filename);
xp.setContentType("application/vnd.ms-excel");
xp.setContent(by);
System.err.println("After successful setting of XML Payload");
msg.setDocument(xp);
System.err.println("Message Set is successful");
But it is not getting the excact file name..
Any coments..
Maybe you are looking for
-
HI, How can i enable CSV output in SQL Script Regiaon Steps, Page Definition > SQL Report >Report Attributes > Report Export > Enable CSV Output Best Regards Perumal Swmy.R
-
Which SP to use in portal ep7 with BP for EPR2005
Hello, I installed portal EP 7 and ERP 2005 both SR2 I also installed the XSS BP in the portal Now I want to install sp-stacks but I have the following dilema which sp-stack do I install a) for ERP 2005 b) for the EP 7 c) for the XSS BP Please, advis
-
Hi Everyone, Say I had several questions and was hoping another FCP user could answer them for me. I recently had a hard drive fail that housed all of the captured video for a project that was complete, but had not yet been exported out. A real bumme
-
Routine error 9006 Forcing me to Reboot to Bring iTunes7 Back Up
I routinely get error 9006 since "upgrading" to iTunes7. Not only does this stop the downloading process, but, after getting this error I close iTunes and try to bring it back up again -- but it will not come back up without a reboot. And, when I try
-
Hello....I am wondering if anyone can shine some light on my problem. I have a Macbook Pro (15", Intel Core 2 Duo, 2.33 GHz) that is about 4 years old. About 2 years back the MBP tossed up zig zag lines across the screen and refused to work. I put th