You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Edoardo Bonetto <ed...@linksfoundation.com> on 2025/05/26 08:00:50 UTC

Qpid Proton C++: exception when receiving AMQP messages with null property (JMSXDeliveryCount)

Hello everyone,

I am experiencing an issue when receiving messages from an ActiveMQ Artemis broker using Qpid Proton C++.   The messages in question are forwarded from another federated broker, and during forwarding, some application properties are added to the AMQP message, including one called "JMSXDeliveryCount". However, this specific property is set to null.

From what I observed, Qpid Proton C++ throws an exception when accessing a message property that has a null value. As a workaround, I’m currently clearing all message properties upon receipt using  msg.properties().clear().

While this avoids the crash, it unfortunately removes all properties, which are otherwise useful for my application logic. I would like to know if there is any way to handle or skip null-valued properties gracefully, while keeping the rest of them intact.

I have already reported the issue to the team managing the broker setup, but it is unlikely they will address it on their end by assigning a proper value.

Any advice or recommendations would be much appreciated.  Thank you for your support!

Kind regards,
Edoardo