cancel
Showing results for 
Search instead for 
Did you mean: 

Mail to File scenario-StingOut of range error

0 Kudos

Hi Experts,

I am configuring Mail to file scenario.

Here I am just reading the mail with an attachment which is sent by one application system to email server .

And placing the attachment file in the NFS path.

My problem is,PO not processing the file and gives the following error when it try to process the mail which comes from the application system.

"exception caught during processing mail message [5]java.lang.StringIndexOutOfBoundsException: String index out of range: -21"

but it can process it, if i try to forward the same attachment and mail from my ID.

Regards,

Pavithra.R

Accepted Solutions (0)

Answers (1)

Answers (1)

Snavi
Active Participant
0 Kudos

Hi Pavithra,

Where are you getting this error? in the communication channel?

What modules are you using in the sender channel?

Also, are you reading any email headers dynamically, the email headers often differs when the email comes from an automated system.

0 Kudos

Yes Navdeep,

I am getting error in Communication channel itself.

I am using payload swap bean.

No I am not reading any email headers dynamically.

former_member182412
Active Contributor
0 Kudos

Hi Pavitra,

Can you attach the module configuration in sender channel and provide manifest part of the your mail message.

Regards,

Praveen.

0 Kudos

While reading the message itself its giving the error and not entering PO.

"exception caught during processing mail message [5]java.lang.StringIndexOutOfBoundsException: String index out of range: -21"

former_member182412
Active Contributor
0 Kudos

Hi Pavitra,

May be mail contains unsupported encoding, check this note 1942219 - PI Mail Adapter throws java.lang.ArrayIndexOutOfBoundsException


Regards,

Praveen.

0 Kudos

Hi Praveen,

I checked in the SAP note u mentioned.

There I can see other exception clearly mentioned as Unsupported encoding.and then String out of bound exception.

Im getting only String out of bound exception

former_member182412
Active Contributor
0 Kudos

Hi Pavithra,

Check this note is applicable to your system 1727079 - java.lang.IndexOutOfBoundsException in Mail-Sender-Channel


If not then enable the debug trace for below locations and get the debug traces to see what went wrong. Check this sap note 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter


com.sap. aii.adapter.mail* - Mail Adapter Bean

com.sap. aii.af.sdk.xi.net* - Connection with mail servers

com.sap. aii.af.sdk.xi.srt* - Mail Message Processing

com.sap. aii.af.sdk.xi.mo.xmb* - Detailed XI Mail Message Processing

Regards,

Praveen.