Skip to Content
0
Former Member
Jan 20, 2011 at 07:17 PM

Asynch/synch scenario w/ Adapter Modules - NullPointerException

104 Views

Hello folks,

I'm implementing a Asynch/synch scenario (File -> RFC -> Mail) using the Adapter Modules RequestResponseBean & ResponseOnewayBean. I've configured the modules & paremeters as per the links below.

[Configuring the Async/Sync Bridge in the Sender JMS Adapter|http://help.sap.com/saphelp_nwpi71/helpdata/en/45/20d251c20a0732e10000000a155369/content.htm]

[File - RFC - File without a BPM - Possible from SP 19|File - RFC - File without a BPM - Possible from SP 19.;

[File-RFC-File(Without BPM)|http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File(Without%20BPM)]

I got the following error when I configured the module parameters exactly as in the above wiki

MP: exception caught with cause com.sap.aii.af.service.cpa.impl.exception.CPAObjectKeyException: Value of key must not be null: ObjectId

Then I added the module parameters 'adapterType' & 'adapterNamespace' for ResponseOnewayBean. The above error got resolved but resulted in a different error on the receiver Mail adapter.

failed to send mail: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.XMBParty.setLocalName(java.lang.String) of an object loaded from local variable 'senderParty'

However, the mail is being sent. Because of the error the file adapter is unable to delete the file after processing.

When I use the same mail adapter in another File to Mail Asynch scenario, I see no such error. I believe the error has got something to do with ResponseOnewayBean.

I've implemented such scenario a few times at my past clients, but did not face any issues with them.

Did anyone get such error? Please help in resolving this error.

thx in adv

praveen

Edited by: Praveen Sirupa on Jan 20, 2011 8:18 PM

Changed the formatting