Azure / Azure/azure-event-hubs-java
Connecting Servicebus through Async client failed: exception occurred while processing events. java.lang.NullPointerException: uncorrelated channel:0:
- Dominant language
- Java
- Stars
- 55
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
## Actual Behavior
1. We are using azure client lib **\azure-messaging-servicebus\7.12.1\azure-messaging-servicebus-7.12.1.jar** to connect with servicebus queue . ClientSecretCredential lib used to get token.
2. Token is received successfully. Then we are getting **ServiceBusException: Cannot create send link from a closed session**
## Expected Behavior
1. Expecting message should be able to posted using the azure client asynchronously using ServiceBusSenderAsyncClient .
2. Sametime message is posted successfully synchronously using blocking client API ServiceBusSenderClient
Exception log attached while connecting servicebus.
[ASYNCCLIENT_EXCEPTION_LOGS.zip](https://github.com/Azure/azure-event-hubs-java/files/10050127/ASYNCCLIENT_EXCEPTION_LOGS.zip)
Please help to resolve the issue.
## Versions
- OS platform and version: **Microsoft Windows 10 Enterprise Virtual desktop**
- Maven package version or commit ID: **Maven version: 3.8.6**
- **Reference code:**### https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/servicebus/azure-messaging-servicebus/src/samples/java/com/azure/messaging/servicebus/SendMessageWithAzureIdentityAsyncSample.java
Contributor guide
Assessment
This issue has not been assessed yet.