I found the solution. The problem was the library netty-common-4.1.89.Final.jar. I deleted it. Then, I rebuild my project
Error creating bean with name 'springCloudAzureDefaultCredential'
I am trying to run a Spring Boot App using the library spring-cloud-azure-stream-binder-eventhubs
I am having the following error:
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-04-30 18:53:06.552 ERROR 6003 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'springCloudAzureDefaultCredential' defined in class path resource [com/azure/spring/cloud/autoconfigure/context/AzureTokenCredentialAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.azure.core.credential.TokenCredential]: Factory method 'tokenCredential' threw exception; nested exception is java.lang.NoClassDefFoundError: io/netty/util/AttributeKey