cancel
Showing results for 
Search instead for 
Did you mean: 

Asynch/synch scenario w/ Adapter Modules - NullPointerException

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks to [Austin's post|], I found a SAP note ([1261159|https://service.sap.com/sap/support/notes/1261159]) to resolve the issue.

ravi_raman2
Active Contributor
0 Kudos

Praveen,

Good to know it fixed your issue, as Note seems to be for AAE-Synchronous response: No receiver components

Regards

Ravi Raman

Former Member
0 Kudos

just bumping it up...

I appreciate your help.

praveen