Spring boot 创建名为';jmsConnectionFactory';-NullPointerException-Spring引导Kotlin

Spring boot 创建名为';jmsConnectionFactory';-NullPointerException-Spring引导Kotlin,spring-boot,jms,spring-jms,Spring Boot,Jms,Spring Jms,我正在编写一个报告服务来接收来自Azure服务总线主题订阅的消息。 我遵循了这个初始指南,只是在我的服务文件中配置了@JmsListener,不指定JmsConnectionFactory,这样它就会返回默认值,但是这会返回如下所示的错误日志,JmsConnectionFactoryBean返回NullPointerException 随后,我查看了如何配置jmsConnectionFactory,以获得指导,因为最初的实现无法运行,但由于仍在返回下面的错误日志,因此没有遇到上述文章中提到的任何

我正在编写一个报告服务来接收来自Azure服务总线主题订阅的消息。 我遵循了这个初始指南,只是在我的服务文件中配置了
@JmsListener
,不指定
JmsConnectionFactory
,这样它就会返回默认值,但是这会返回如下所示的错误日志,
JmsConnectionFactory
Bean返回
NullPointerException

随后,我查看了如何配置
jmsConnectionFactory
,以获得指导,因为最初的实现无法运行,但由于仍在返回下面的错误日志,因此没有遇到上述文章中提到的任何建议

然后我在这里对StackOverflow进行了挖掘,发现了这个问题-,然后指向了这个问题-,这导致我在我的
@SpringBootApplication
中排除了
ServiceBusJMSAutoConfiguration::class
。这确实有效,但我觉得有点奇怪,我需要排除这个类,并且感觉好像还有一些事情我可能做错了

我基本上是在寻找关于我所做的是正常实践还是有更好的方法进行设置的任何见解,因为我并不特别喜欢这个-
@SpringBootApplication(exclude=[ServiceBusJMSAutoConfiguration::class])
。在我看来,这似乎是解决一个潜在问题的一种手段。如果您对此有任何帮助/意见,我们将不胜感激

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

ReportingServiceApplication.kt

@SpringBootApplication(exclude = [ServiceBusJMSAutoConfiguration::class])
class ReportingServiceApplication

fun main(args: Array<String>) {
    runApplication<ReportingServiceApplication>(*args)
}

build.gradle.kts

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    id("org.springframework.boot") version "2.3.4.RELEASE"
    id("io.spring.dependency-management") version "1.0.10.RELEASE"
    id("com.diffplug.gradle.spotless") version "4.0.1"
    kotlin("jvm") version "1.3.72"
    kotlin("plugin.spring") version "1.3.72"
    kotlin("plugin.jpa") version "1.3.72"
}

group = "com.test.service"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11

repositories {
    mavenCentral()
}

dependencies {

    // Kotlin
    implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
    implementation("org.jetbrains.kotlin:kotlin-reflect")
    implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

    // Spring Boot
    implementation("org.springframework.boot:spring-boot-starter-web")
    implementation("org.springframework.boot:spring-boot-starter-data-jpa")

    // Flyway
    implementation("org.flywaydb:flyway-core")

    // App Insights
    implementation("com.microsoft.azure:applicationinsights-spring-boot-starter:2.6.1")
    implementation("com.microsoft.azure:applicationinsights-logging-logback:2.6.1")

    // Azure Service Bus
    implementation("com.microsoft.azure:azure-servicebus-spring-boot-starter:2.2.5")
    implementation("com.microsoft.azure:azure-servicebus-jms-spring-boot-starter:2.2.5")

    // Snowflake
    implementation("net.snowflake:snowflake-jdbc:3.12.12")

    // Postgres (For Local Development)
    runtimeOnly("org.postgresql:postgresql")

    // Test
    testImplementation("com.h2database:h2:1.4.200")
    testImplementation("org.springframework.boot:spring-boot-starter-test")
    testImplementation("com.nhaarman:mockito-kotlin:1.6.0")
    testImplementation("org.hamcrest:hamcrest-library:2.2")
}

tasks.withType<Test> {
    useJUnitPlatform()
}

tasks.withType<KotlinCompile> {
    kotlinOptions {
        freeCompilerArgs = listOf("-Xjsr305=strict")
        jvmTarget = "11"
    }
}

import org.jetbrains.kotlin.gradle.tasks.kotlincomfile
插件{
id(“org.springframework.boot”)版本“2.3.4.RELEASE”
id(“io.spring.dependency management”)版本“1.0.10.RELEASE”
id(“com.diffplug.gradle.spotless”)版本“4.0.1”
kotlin(“jvm”)版本“1.3.72”
kotlin(“plugin.spring”)版本“1.3.72”
kotlin(“plugin.jpa”)版本“1.3.72”
}
group=“com.test.service”
version=“0.0.1-快照”
java.sourceCompatibility=JavaVersion.VERSION\u 11
存储库{
mavenCentral()
}
依赖关系{
//科特林
实现(“com.fasterxml.jackson.module:jackson模块kotlin”)
实施(“org.jetbrains.kotlin:kotlin reflect”)
实现(“org.jetbrains.kotlin:kotlin-stdlib-jdk8”)
//弹簧靴
实现(“org.springframework.boot:springbootstarterweb”)
实现(“org.springframework.boot:springbootstarterdatajpa”)
//飞行路线
实施(“org.flywaydb:flywaycore”)
//应用程序洞察
实现(“com.microsoft.azure:applicationinsights spring启动程序:2.6.1”)
实现(“com.microsoft.azure:applicationinsights日志记录:2.6.1”)
//Azure服务总线
实现(“com.microsoft.azure:azureservicebusspringbootstarter:2.2.5”)
实现(“com.microsoft.azure:azureservicebusjmsspringbootstarter:2.2.5”)
//雪花
实现(“net.snowflake:snowflake jdbc:3.12.12”)
//博士后(本地发展)
仅限运行时(“org.postgresql:postgresql”)
//试验
测试实施(“com.h2数据库:h2:1.4.200”)
测试实现(“org.springframework.boot:springbootstarter测试”)
测试实施(“com.nhaarman:mockito kotlin:1.6.0”)
测试实施(“org.hamcrest:hamcrest库:2.2”)
}
tasks.withType{
useJUnitPlatform()
}
tasks.withType{
科特洛普斯酒店{
freeCompilerArgs=listOf(“-Xjsr305=strict”)
jvmTarget=“11”
}
}
以下是初始错误的日志-

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFactory' defined in class path resource [com/microsoft/azure/spring/autoconfigure/jms/ServiceBusJMSAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'jmsConnectionFactory' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:635) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at com.test.service.reporting.ReportingServiceApplicationKt.main(ReportingServiceApplication.kt:13) ~[main/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'jmsConnectionFactory' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    ... 20 common frames omitted
Caused by: java.lang.NullPointerException: null
    at com.microsoft.azure.spring.autoconfigure.jms.ConnectionStringResolver.getServiceBusKey(ConnectionStringResolver.java:30) ~[azure-spring-boot-2.2.5.jar:na]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration.jmsConnectionFactory(ServiceBusJMSAutoConfiguration.java:40) ~[azure-spring-boot-2.2.5.jar:na]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration$$EnhancerBySpringCGLIB$$9ce4d56.CGLIB$jmsConnectionFactory$3(<generated>) ~[azure-spring-boot-2.2.5.jar:na]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration$$EnhancerBySpringCGLIB$$9ce4d56$$FastClassBySpringCGLIB$$99b2393f.invoke(<generated>) ~[azure-spring-boot-2.2.5.jar:na]
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration$$EnhancerBySpringCGLIB$$9ce4d56.jmsConnectionFactory(<generated>) ~[azure-spring-boot-2.2.5.jar:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
    at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    ... 21 common frames omitted

org.springframework.beans.factory.BeanCreationException:创建名为“jmsConnectionFactory”的bean时出错,该名称在类路径资源[com/microsoft/azure/spring/autoconfigure/jms/ServiceBusJMSAutoConfiguration.class]中定义:通过工厂方法实例化bean失败;嵌套异常为org.springframework.beans.beanstantiationexception:未能实例化[javax.jms.ConnectionFactory]:工厂方法“jmsConnectionFactory”引发异常;嵌套异常是java.lang.NullPointerException
在org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.ConstructorResolver.InstanceUsingFactoryMethod(ConstructorResolver.java:635)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.InstanceUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
位于org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractB
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsConnectionFactory' defined in class path resource [com/microsoft/azure/spring/autoconfigure/jms/ServiceBusJMSAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'jmsConnectionFactory' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:635) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1176) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:556) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.4.RELEASE.jar:2.3.4.RELEASE]
    at com.test.service.reporting.ReportingServiceApplicationKt.main(ReportingServiceApplication.kt:13) ~[main/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [javax.jms.ConnectionFactory]: Factory method 'jmsConnectionFactory' threw exception; nested exception is java.lang.NullPointerException
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    ... 20 common frames omitted
Caused by: java.lang.NullPointerException: null
    at com.microsoft.azure.spring.autoconfigure.jms.ConnectionStringResolver.getServiceBusKey(ConnectionStringResolver.java:30) ~[azure-spring-boot-2.2.5.jar:na]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration.jmsConnectionFactory(ServiceBusJMSAutoConfiguration.java:40) ~[azure-spring-boot-2.2.5.jar:na]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration$$EnhancerBySpringCGLIB$$9ce4d56.CGLIB$jmsConnectionFactory$3(<generated>) ~[azure-spring-boot-2.2.5.jar:na]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration$$EnhancerBySpringCGLIB$$9ce4d56$$FastClassBySpringCGLIB$$99b2393f.invoke(<generated>) ~[azure-spring-boot-2.2.5.jar:na]
    at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    at com.microsoft.azure.spring.autoconfigure.jms.ServiceBusJMSAutoConfiguration$$EnhancerBySpringCGLIB$$9ce4d56.jmsConnectionFactory(<generated>) ~[azure-spring-boot-2.2.5.jar:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
    at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.2.9.RELEASE.jar:5.2.9.RELEASE]
    ... 21 common frames omitted