cancel
Showing results for 
Search instead for 
Did you mean: 

Java Null Pointer Exception in Mail Adapter

Former Member
0 Kudos

Hi

I've got a mail to file scenario which uses the payload swap bean to get the attachment from the mail and deliver it to a file receive channel location.

Recently i've been getting this error -

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

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

This message was moderated.

0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Riaz,

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'

This exception is due to which you have used a Startwith function for the field 'respline' which is not evaluated.

Please check and reprocess..

Thanks,

Former Member
0 Kudos

Hi

I'm not using any functions anywhere. I dont have any repository objects defined, this is a straight directory scenario as i dont need/have any mappings of any kind.

Where could this be coming from?

Thanks

Former Member
0 Kudos

Hi Riaz,

Did you ever get a resolution on your problem?

I am also having the same problem, and I in the exact same scenario.

regards

Mark

former_member187010
Participant
0 Kudos

Hi Riaz,

I am also facing same issue for the same scenario.

Surprising because nothing have changed from any system and suddenly receiving this issue.

Any idea how to resolve it.!


Regards

Jitender

Former Member
0 Kudos

Hi Mark and Jitender

Unfortunately i never did get an answer to this issue. Sorry i couldnt help.

Regards

Riaz

shweta_walaskar2
Contributor
0 Kudos

Hello Riaz,

Are you using startsWith function in your mapping for a field?It might be possible that you get this error when this string field is blank.

Regards,

Shweta