Skip to content

PartnershipNotFoundException: Partnership not found: when handling an ASync MDN message #79

Closed
@andrewjmaguire

Description

@andrewjmaguire

Hi,

I have been trialling an AS2 communication with Async MDN but, when I send an ASync MDN to as2-server, I get PartnershipNotFoundException: Partnership not found: [Partnership@0x1f1333b2: name=auto-created-dummy; senderIDs=[{as2_id=SENDER, x509_alias=null}]; receiverIDs=[{as2_id=RECEIVER, x509_alias=null}]; attributes=[{}]]

I have found that if I comment out the following in AS2MDNReceiverHandler.java lines 186 and 187:
aMDN.getPartnership ().setSenderX509Alias (aMsg.partnership ().getReceiverX509Alias ());
aMDN.getPartnership ().setReceiverX509Alias (aMsg.partnership ().getSenderX509Alias ());

Then the ASync MDN message works. I have tried to look through the code to work out how an ASync Mssage, aMsg would have the X509 aliases present. Looking at the git blame history, these lines appear to have been added trying to find a solution for 'note #4 '. But that issue only affected Sync MDN messages not Async.

I am curious to know whether my configuration is still incomplete given that the ASync MDN code presumably works for others?

Thanks
Andrew

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions