AMQP Message Null when using Azure IoTHub Routing

怎甘沉沦 提交于 2019-12-11 05:35:16

问题


I have a custom Endpoint + Route setup based on TwinChangeEvent in Azure IoT Hub. I'm routing the events to a Service Bus Queue (tried topic also). I'm using Java Service Bus SDK (azure-servicebus-1.1.0.jar) to pull messages off of the queue.

However, I keep getting a NullPointerException in

com.microsoft.azure.servicebusMessageConverter on line 124 "brokeredMessage.setMessageId(amqpMessage.getMessageId().toString());"

The messageId property seems to be getting lost during the routing.

Any way to get around this?

I don't see anywhere in the Azure IoT Device SDK where I would need to set this once I've processed the original message from IoT Hub indicating the property changed.

Thanks

来源:https://stackoverflow.com/questions/47329990/amqp-message-null-when-using-azure-iothub-routing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!