cancel
Showing results for 
Search instead for 
Did you mean: 

StringIndexOutOfBoundsException from Mail Adapter

Former Member
0 Kudos

Hi,

We have configured a sender communication channel for the mail adapter, but when we receive an email we get the following error message:

<i>error occured: exception caught during processing mail message; java.lang.StringIndexOutOfBoundsException: String index out of range: -1</i>

Our configuration is the following:

Transport Protocol: IMAP4

Message protocol: (tried both)

URL: imap://exchangeServerHost

The emails we tested with are plain/text emails. We tried both with an XML document as the main body of the email and with the XML document as an attachment, but the error remains the same.

If anyone has some ideas on how to resolve or troubleshoot this it would be appreciated.

Thanks in advance,

Erik.

Accepted Solutions (0)

Answers (2)

Answers (2)

ranjit_deshmukh
Active Participant
0 Kudos

Hi,

what about the size of the field to which you are assigning

your contents?

normally this error occurs when string operation like assigning longer length string

to a smaller one.

Ranjit

Former Member
0 Kudos

Thanks Ranjit...I fixed the error. It was the URL I was missing the inbox from the URL.

Check the following thread:

Message was edited by:

Alaa Qasem

Former Member
0 Kudos

Hi Erik,

I'm getting the same exception. Were you able to fix yours? If so, what did you do?