Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Feb 04, 2012 at 01:09 PM

    Hi,

    >>>respline

    do you have any field like that ?

    BTW

    so your mail does not work right ? in wich step is it failing ?

    a) getting the e-mail

    b) swamping the payload

    you can check that in the adapter monitoring - audit log

    maybe the swap bean's parameters are incorrectly specified ?

    Regards,

    Michal Krawczyk

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Michale

      This issue is resolved, Email is https, I have put as IMAPS instead of IMAP. CC started picking up the emails

      Thanks

      PR

  • Feb 04, 2012 at 09:38 PM

    >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{
    
    }

    Add comment
    10|10000 characters needed characters exceeded