hey people, need help!

You are here

hey people, need help!

4 posts / 0 new
Last post
Torchman
Torchman's picture
hey people, need help!

I'm trying to test an as2 connector from another company with the mec as2.

So far, i specified the partner data, included the key of the partner into the "certificates.p12", so i can use it, set the signatur algorithm to sha1 and the decryption algorithm to 3des. I also exported the key1-certificate with portecle into a java keystore for the use within the partners as2 connector.

Having done this i tried to send a message to the partner. The message arrives correctly and gets processed. The partners as2 connector sent back an mdn, which seems to be correct (status: processed). I have checked the message id the mdn was sent for and it was correct. Although i get the following error message:

[10:42:11] Verarbeite die Datei "test.txt" für den Empfänger "as2Test".
[10:42:11] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: Die ausgehende Nachricht wurde digital signiert, benutzt wurde der Schlüssel Alias "Key1".
[10:42:11] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: Die ausgehende Nachricht wurde verschlüsselt, benutzt wurde der Schlüssel Alias "bln-2-08.as2Test.com".
[10:42:11] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: Ausgehende Nachricht erstellt.
[10:42:12] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: Sende Nachricht an http://XXX.XXX.XXX.152:8000/servlet/HTTPUploadServlet/Nachricht_empfange..., erwarte asynchrone MDN zur Empfangsbestätigung.
[10:42:13] 4043405.1154421733318.JavaMail.as2Test@as2Test: Eingehende Übertragung ist eine Empfangsbestätigung (MDN).
[10:42:13] AS2ServerRemoteImpl: 14043405.1154421733318.JavaMail.as2Test@as2Test: Die Empfangsbestätigung referenziert eine AS2Nachricht der Referenznummer mecAS2-1154421731748-59656@mycompanyAS2_as2Test, die nicht existert.
[10:42:13] Accepted
[10:42:13] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: HTTP 202
[10:42:13] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: Eingebettete Nachricht wurde unter "C:\Programme\mec\as2\messages\as2Test\error\AS2Message23396.as2" gespeichert.
[10:42:13] mecAS2-1154421731748-59656@mycompanyAS2_as2Test: Die Übertragungsdaten wurden unter "C:\Programme\mec\as2\messages\as2Test\error\raw\AS2Message23396.as2.raw" gespeichert.

Can anyone help find the problem?

Thanks,

Torchman

heller
heller's picture

Torchman,

If you send an AS2 message to a receiver it contains a unique number, the messageid. This messageid has to be generated by the sender system.
The message delivery notification contains this number, too, as reference to the AS2 message it acknowledges. If an incoming MDN contains a messageid that is unknown to the formerly AS2 sender the error message "Die Empfangsbestätigung referenziert eine AS2Nachricht der Referenznummer xxx, die nicht existert" (The MDN contains a messageid where the reference is unknown (or something simular to this)).

You will find the messageid in the HTTP header of AS2 messages and MDN. It looks like
message-id = <mendAS2-1154539304828-82736@mendelsontestAS2_mycompanyAS2>.

You could see this value if you have a look into the raw message content using the message details button.

Mainly your problem could have the following reasons:
-The system you tested against did not use the proper messageid of the AS2 message to answer
-m-e-c as2 was unable to determine the right message id by unknown reason.

But in the special case you posted the outgoing AS2 message id is
mecAS2-1154421731748-59656@mycompanyAS2_as2Test
and the incoming MDN message id that should reference this is
14043405.1154421733318.JavaMail.as2Test@as2Test,

that means that the system you tested agains seems to answer with the wrong message id.

What system did you test m-e-c as2 against? It would be great for compatibility reasons what exactly happened there, perhaps the system uses an other reference but the message id. Would be great to know.

Regards
Heller

Torchman
Torchman's picture

Hi Heller,

sorry but i think the message id seems to correct. The statement was:

AS2ServerRemoteImpl: 14043405.1154421733318.JavaMail.as2Test@as2Test: Die Empfangsbestätigung referenziert eine AS2Nachricht der Referenznummer mecAS2-1154421731748-59656@mycompanyAS2_as2Test, die nicht existert.

So I think that the reference number is correct. Or is the reference number not equal to the message id?

In my opinion the first id (14043405.1154421733318.JavaMail.as2Test@as2Test) is the id of the incoming mdn and the second id (mecAS2-1154421731748-59656@mycompanyAS2_as2Test) is the message-id of the as2 message the mdn refers to.

Or am I wrong?

Torchman

heller
heller's picture

Torchman,

You are right, I was wrong.

The message id and the referenced message id seem to be identical, I have no idea why this error occured so far.

I had a look into the code.
The reference to the original message in an MDN is set in the attribute "original-message-id" in the part where the content-type is "message/disposition-notification".

Could you please send me the as2 message and the returned MDN that I could analyze this to find out where the problem is? Please send it to sh at mendelson dot de.

Regards
Heller