on 02-04-2012 12:28 PM
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
Hi, I am getting the same error. I am doing a pass through scenario. The channel is not picking up the mail and connection is not getting established. In few of the blogs is suggested to use imaps://hostname:port/Inbox. While using "imaps" protocol, I am getting authentication - invalid credentials. However I am using correct credentials.
Sender Adapter configuration:
Error:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>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{
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.