Closed karthikmsc05 closed 3 years ago
@stliu @hemanttanwar can you please take a look?
Hi,@karthikmsc05
Thanks for your reporting.
Here is the sample azure-spring-boot-sample-servicebus-jms-topic and the sample azure-spring-boot-sample-servicebus-jms-queue
I'm thinking is it possible for you to create a minimal project or provide your pom.xml file so I can help to find the problem?
Hi Team,
Thanks for your response. I have followed the same reference as you have given. Here is the POM of mine attached FYR.
Hi,@karthikmsc05
Please upgrade spring-boot-starter-parent's version. For azure-spring-boot-starter-servicebus-jms:3.1.0
, the min version supported is spring-boot-starter-parent:2.2.11.RELEASE
.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.4.3</version>
</parent>
Hi Team,
I had updated the dependency as per you mentioned to the supported version and the build got succeeded.
Describe the bug Followed the steps as mentioned on the documentation for sending and recieving messages to an azure service bus queue, https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-boot-starter-java-app-with-azure-service-bus
But while spring boot start up its failing with the error,
java.lang.IllegalStateException: The following classes could not be excluded because they are not auto-configuration classes: - com.azure.spring.autoconfigure.aad.AADAuthenticationFilterAutoConfiguration error
I have also tried excluding AADAuthenticationFilterAutoConfiguration from autoconfiguration as i am not using it i got the below error,
java.lang.IllegalStateException: The following classes could not be excluded because they are not auto-configuration classes:
Is it mandatory to define/configure something specifically for AADAuthenticationFilterAutoConfiguration ? If so please provide me the details if i am missing something.
Exception or Stack Trace Add the exception log and stack trace if available
To Reproduce Steps to reproduce the behavior:
Create a spring boot project defining the below library dependancy,
Write methods to send and JMSListener annotiation function for reciever for messages. Build and run the spring boot application.
Code Snippet Add the code snippet that causes the issue.
while using this dependency in pom,
Expected behavior A clear and concise description of what you expected to happen.
Spring boot application should come up without this error and message send and recieve to the queue on service bus should happen.
Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
Additional context Add any other context about the problem here.
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