Email Pool error inside bean shell

Confluence User - 14 Aug, 2022

 Object[] fromCollection = message.getFrom();
                debug("from collection is "+message.getFrom());
                  for(int i=0; i<fromCollection.length; i++) {
                     debug(myArray[i]);
                  }
      String sender = fromCollection[0].toString();



I am trying to loop through every item inside ObjectArray inside bean Shell but it is returning me error 

error message is 

Ljavax.mail.internet.InternetAddress Not an array

email

1


17 Aug, 2022
confluenceUser
confluenceUser

Hi, the error message says "Not an array" which indicates that the value is not an array. Try checking the type, it might be just a String.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print