Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

File Receiver adapter module Dynamic Configuration

Hi All

I have a adapter module in a receiver file adapter. In the code I try to access the file name through dynamic configuration,The file name gets set in the mapping.

String strFileName = msg.getMessageProperty(new MessagePropertyKey("FileName",""));

When my module get executed I get error: nested exception is: java.lang.NullPointerException: while trying to invoke the method of an object loaded from local variable 'msg'

Is it possible to get file name in receiver adapter? if so why does this error occur?

Former Member
Not what you were looking for? View more on this topic or Ask a question