[BUG] NullPointerException in Apache Qpid Proton-J during Azure Service Bus AMQP Reconnection #41865
Open
3 tasks done
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Bus
Describe the bug
We are encountering a
NullPointerException
in theorg.apache.qpid.proton
library, triggered during session creation while using theazure-messaging-servicebus
dependency to connect to Azure Service Bus. This exception happens intermittently, particularly after the connection has been idle for around 30 seconds, suggesting it may be related to reconnect behavior. Despite the exception, normal operations seem unaffected.Exception or Stack Trace
To Reproduce
Steps to reproduce the behavior:
Set up an application using Azure Service Bus via AMQP with the following dependency:
com.azure:azure-messaging-servicebus:7.17.0
After the connection to the Azure Service Bus is idle for around 30 seconds, the system reconnects.
A
NullPointerException
is intermittently thrown during session re-creation.Code Snippet
// Sample code illustrating initialization of Servicebus client
Expected behavior
The reconnection process should not result in a
NullPointerException
. The internal sessions should be properly initialized during reconnections, without throwing errors.Screenshots
Not applicable
Setup (please complete the following information):
OS: Linux
IDE: IntelliJ IDEA
Library:
com.azure:azure-messaging-servicebus:7.17.0
Java version: 21
App Server/Environment: Azure Service Bus (AMQP)
Frameworks: Spring Boot 3.2.5
Additional context
The issue appears to be related to reconnections to the Azure Service Bus after a 30-second idle period. The NullPointerException originates from the org.apache.qpid.proton.engine.impl.ConnectionImpl class, which is used internally by the Azure SDK, specifically during session creation. This may indicate an issue in how the Azure SDK interacts with the Apache Qpid Proton-J library.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: