AS2 issue

Hi,

In my testscenario I am sending a message to a Azure Logic App.
The message is received okay in Azure, during processing of the sync MDN is getting a error in Mendelson:
[15:26:01] [mendelson_opensource_AS2-COMMUN-1675088726004-0@SENDER_RECEIVER] Preparing outbound AS2 message connection to "https://la-poc-b2b.azurewebsites.net:443/api/edidemo-receive-as2/trigge…", active connections: 1/9999.
[15:26:01] [mendelson_opensource_AS2-COMMUN-1675088726004-0@SENDER_RECEIVER] Sending AS2 message to https://la-poc-b2bXXXXXXXXXXXXX, sync MDN requested.
[15:26:01] [mendelson_opensource_AS2-COMMUN-1675088726004-0@SENDER_RECEIVER] The outbound TLS connection will trust all remote end server certificates if the root and intermediate certificates are available.
[15:26:05] [mendelson_opensource_AS2-COMMUN-1675088726004-0@SENDER_RECEIVER] Message sent successfully (HTTP 200); 3.91 KB transfered in 3.30s [1.19 KB/s].
[15:26:05] PartnerAccessDB.getPartnerByQuery: Parameter not set
[15:26:05] PartnerAccessDB.getPartnerByQuery: Parameter not set
[15:26:05] [null] Generating outbound MDN, setting message id to "mendelson_opensource_AS2-COMMUN-1675088765160-1@unknown_unknown".
[15:26:05] [mendelson_opensource_AS2-COMMUN-1675088765160-1@unknown_unknown] Outbound MDN created for AS2 message "null", state set to [processed/error: unexpected-processing-error].
[15:26:05] [null] Outbound MDN details: Missing start boundary
[15:26:05] PartnerAccessDB.getPartnerByQuery: Parameter not set
[15:26:05] PartnerAccessDB.getPartnerByQuery: Parameter not set
[15:26:05] AS2ServerProcessing: [java.lang.RuntimeException] Unexpected MDN received. The inbound MDN references a message with the AS2 message id "null" that does not exist in the system.

-----EVENT LOGS------------------

[Event description]
TimestampDescription=26 Jan 2023, 16:24:47
SeverityDescription=Error
OriginDescription=System
CategoryDescription=Database
TypeDescription=Database
ProcessOriginHost=LAPTOP-CGEAET3K
User=
Timestamp=1674746687893
Severity=3
Origin=1
Type=500
EventId=013939df-9502-4afd-b3d3-bdecf78e29c0

[Summary]
System problem

[Details]
A problem occurred on the AS2 server instance. Most of these notifications are not critical for your AS2 system status. If the related transaction is on status "green" you could be sure that the transaction has been finished. Anyway please have a look at your AS2 system to see what happened there.

Category: SQLException
Message: Parameter not set

org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
org.hsqldb.jdbc.JDBCUtil.sqlException(Unknown Source)
org.hsqldb.jdbc.JDBCPreparedStatement.checkParametersSet(Unknown Source)
org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
org.hsqldb.jdbc.JDBCPreparedStatement.executeQuery(Unknown Source)
com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
de.mendelson.util.database.DebuggablePreparedStatement.executeQuery(DebuggablePreparedStatement.java:167)
de.mendelson.comm.as2.partner.PartnerAccessDB.getPartnerByQuery(PartnerAccessDB.java:88)
de.mendelson.comm.as2.partner.PartnerAccessDB.getPartnerByQuery(PartnerAccessDB.java:191)
de.mendelson.comm.as2.partner.PartnerAccessDB.getPartnerByAS2Id(PartnerAccessDB.java:710)
de.mendelson.comm.as2.partner.PartnerAccessDB.getPartner(PartnerAccessDB.java:700)
de.mendelson.comm.as2.server.AS2ServerProcessing.processIncomingMessageRequest(AS2ServerProcessing.java:1904)
de.mendelson.comm.as2.server.AS2ServerProcessing.process(AS2ServerProcessing.java:450)
de.mendelson.util.clientserver.ClientServerSessionHandler.performUserDefinedProcessing(ClientServerSessionHandler.java:342)
de.mendelson.util.clientserver.ClientServerSessionHandler.messageReceived(ClientServerSessionHandler.java:219)
org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:1015)
org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:650)
org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:49)
org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:1128)
org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:106)
org.apache.mina.core.session.IoEvent.run(IoEvent.java:89)
org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.runTask(UnorderedThreadPoolExecutor.java:544)
org.apache.mina.filter.executor.UnorderedThreadPoolExecutor$Worker.run(UnorderedThreadPoolExecutor.java:497)
java.base/java.lang.Thread.run(Thread.java:829)

Any suggestions?

Forum
AS2

Comments

Profile picture for user service

peter.schults,

thank you for the report. This looks like a issue for a special inbound data format. We added additional checks to the code to prevent this in the future.

Regards