Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
gradlew bootRun vs java-jar_Java_Spring_Spring Boot - Fatal编程技术网

gradlew bootRun vs java-jar

gradlew bootRun vs java-jar,java,spring,spring-boot,Java,Spring,Spring Boot,我陷入了一种跑步的境地 /gradlew bootRun 给我一次成功的跑步,但如果我尝试: /gradlew bootJar&&java-jar./build/libs/xxxx.jar我收到错误 它每次都会启动jar,但我假设bootRun添加了一些额外的参数/env/properties等 有没有办法弄清楚bootRun“额外的东西”在做什么,这样我就可以用相同的环境调用java-jar 谢谢 实际误差 我得到了一些奇怪的错误(见下文),在某些情况下我只是在java-jar条件下得到的。。

我陷入了一种跑步的境地

/gradlew bootRun

给我一次成功的跑步,但如果我尝试:

/gradlew bootJar&&java-jar./build/libs/xxxx.jar
我收到错误

它每次都会启动jar,但我假设
bootRun
添加了一些额外的参数/env/properties等

有没有办法弄清楚bootRun“额外的东西”在做什么,这样我就可以用相同的环境调用
java-jar

谢谢

实际误差 我得到了一些奇怪的错误(见下文),在某些情况下我只是在
java-jar
条件下得到的。。有时两者兼而有之,所以我试图找出两者的区别

2021-05-23 11:37:23.725  INFO 21111 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2021-05-23 11:37:23.735  INFO 21111 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2021-05-23 11:37:23.735  INFO 21111 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.45]
2021-05-23 11:37:23.798  INFO 21111 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2021-05-23 11:37:23.799  INFO 21111 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1713 ms
2021-05-23 11:37:24.184  INFO 21111 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService
2021-05-23 11:37:24.185  INFO 21111 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'taskExecutor'
2021-05-23 11:37:24.349  WARN 21111 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageConverters' defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.http.HttpMessageConverters]: Factory method 'messageConverters' threw exception; nested exception is java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.<init>()V @4: invokespecial
  Reason:
    Type 'kotlinx/serialization/json/Json$Default' (current frame, stack[1]) is not assignable to 'kotlinx/serialization/json/Json'
  Current Frame:
    bci: @4
    flags: { flagThisUninit }
    locals: { uninitializedThis }
    stack: { uninitializedThis, 'kotlinx/serialization/json/Json$Default' }
  Bytecode:
    0000000: 2ab2 0001 b700 02b1

2021-05-23 11:37:24.350  INFO 21111 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Shutting down ExecutorService 'taskExecutor'
2021-05-23 11:37:24.353  INFO 21111 --- [           main] o.apache.catalina.core.StandardService   : Stopping service [Tomcat]
2021-05-23 11:37:24.369  INFO 21111 --- [           main] ConditionEvaluationReportLoggingListener :

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-05-23 11:37:24.386 ERROR 21111 --- [           main] o.s.boot.SpringApplication               : Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageConverters' defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.http.HttpMessageConverters]: Factory method 'messageConverters' threw exception; nested exception is java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.<init>()V @4: invokespecial
  Reason:
    Type 'kotlinx/serialization/json/Json$Default' (current frame, stack[1]) is not assignable to 'kotlinx/serialization/json/Json'
  Current Frame:
    bci: @4
    flags: { flagThisUninit }
    locals: { uninitializedThis }
    stack: { uninitializedThis, 'kotlinx/serialization/json/Json$Default' }
  Bytecode:
    0000000: 2ab2 0001 b700 02b1

        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:944) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.6.jar:5.3.6]
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.6.jar:5.3.6]
        at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:144) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:782) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:774) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1340) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.springframework.boot.SpringApplication.run(SpringApplication.java:1329) ~[spring-boot-2.4.5.jar:2.4.5]
        at org.mitre.abcd.tmi.translator.TmiTranslatorApplication$Companion.main(TmiTranslatorApplication.kt:36) ~[main/:na]
        at org.mitre.abcd.tmi.translator.TmiTranslatorApplication.main(TmiTranslatorApplication.kt) ~[main/:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageConverters' defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.http.HttpMessageConverters]: Factory method 'messageConverters' threw exception; nested exception is java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.<init>()V @4: invokespecial
  Reason:
    Type 'kotlinx/serialization/json/Json$Default' (current frame, stack[1]) is not assignable to 'kotlinx/serialization/json/Json'
  Current Frame:
    bci: @4
    flags: { flagThisUninit }
    locals: { uninitializedThis }
    stack: { uninitializedThis, 'kotlinx/serialization/json/Json$Default' }
  Bytecode:
    0000000: 2ab2 0001 b700 02b1

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.6.jar:5.3.6]
        ... 21 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageConverters' defined in class path resource [org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.http.HttpMessageConverters]: Factory method 'messageConverters' threw exception; nested exception is java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.<init>()V @4: invokespecial
  Reason:
    Type 'kotlinx/serialization/json/Json$Default' (current frame, stack[1]) is not assignable to 'kotlinx/serialization/json/Json'
  Current Frame:
    bci: @4
    flags: { flagThisUninit }
    locals: { uninitializedThis }
    stack: { uninitializedThis, 'kotlinx/serialization/json/Json$Default' }
  Bytecode:
    0000000: 2ab2 0001 b700 02b1

        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:638) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1334) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1177) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:564) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:524) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1380) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:2021) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.ifAvailable(DefaultListableBeanFactory.java:2032) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$WebMvcAutoConfigurationAdapter.configureMessageConverters(WebMvcAutoConfiguration.java:216) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at org.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.configureMessageConverters(WebMvcConfigurerComposite.java:137) ~[spring-webmvc-5.3.6.jar:5.3.6]
        at org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.configureMessageConverters(DelegatingWebMvcConfiguration.java:118) ~[spring-webmvc-5.3.6.jar:5.3.6]
        at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.getMessageConverters(WebMvcConfigurationSupport.java:863) ~[spring-webmvc-5.3.6.jar:5.3.6]
        at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:671) ~[spring-webmvc-5.3.6.jar:5.3.6]
        at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration.requestMappingHandlerAdapter(WebMvcAutoConfiguration.java:369) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[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:564) ~[na:na]
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.6.jar:5.3.6]
        ... 22 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.http.HttpMessageConverters]: Factory method 'messageConverters' threw exception; nested exception is java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.<init>()V @4: invokespecial
  Reason:
    Type 'kotlinx/serialization/json/Json$Default' (current frame, stack[1]) is not assignable to 'kotlinx/serialization/json/Json'
  Current Frame:
    bci: @4
    flags: { flagThisUninit }
    locals: { uninitializedThis }
    stack: { uninitializedThis, 'kotlinx/serialization/json/Json$Default' }
  Bytecode:
    0000000: 2ab2 0001 b700 02b1

        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.6.jar:5.3.6]
        at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.6.jar:5.3.6]
        ... 46 common frames omitted
Caused by: java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.<init>()V @4: invokespecial
  Reason:
    Type 'kotlinx/serialization/json/Json$Default' (current frame, stack[1]) is not assignable to 'kotlinx/serialization/json/Json'
  Current Frame:
    bci: @4
    flags: { flagThisUninit }
    locals: { uninitializedThis }
    stack: { uninitializedThis, 'kotlinx/serialization/json/Json$Default' }
  Bytecode:
    0000000: 2ab2 0001 b700 02b1

        at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.addDefaultHttpMessageConverters(WebMvcConfigurationSupport.java:933) ~[spring-webmvc-5.3.6.jar:5.3.6]
        at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.getMessageConverters(WebMvcConfigurationSupport.java:865) ~[spring-webmvc-5.3.6.jar:5.3.6]
        at org.springframework.boot.autoconfigure.http.HttpMessageConverters$1.defaultMessageConverters(HttpMessageConverters.java:175) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at org.springframework.boot.autoconfigure.http.HttpMessageConverters.getDefaultConverters(HttpMessageConverters.java:178) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at org.springframework.boot.autoconfigure.http.HttpMessageConverters.<init>(HttpMessageConverters.java:102) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at org.springframework.boot.autoconfigure.http.HttpMessageConverters.<init>(HttpMessageConverters.java:89) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration.messageConverters(HttpMessageConvertersAutoConfiguration.java:70) ~[spring-boot-autoconfigure-2.4.5.jar:2.4.5]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) ~[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:564) ~[na:na]
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.6.jar:5.3.6]
        ... 47 common frames omitted
2021-05-23 11:37:23.725信息21111---[main]o.s.b.w.embedded.tomcat.TomcatWebServer:tomcat已初始化端口:8080(http)
2021-05-23 11:37:23.735信息21111---[main]o.apache.catalina.core.StandardService:启动服务[Tomcat]
2021-05-23 11:37:23.735信息21111---[main]org.apache.catalina.core.StandardEngine:启动Servlet引擎:[apache-Tomcat/9.0.45]
2021-05-23 11:37:23.798信息21111---[main]o.a.c.c.c.[Tomcat].[localhost].[/]:初始化Spring嵌入式WebApplicationContext
2021-05-23 11:37:23.799信息21111---[main]w.s.c.ServletWebServerApplicationContext:根WebApplicationContext:初始化在1713毫秒内完成
2021-05-23 11:37:24.184信息21111---[main]o.s.s.concurrent.ThreadPoolTaskExecutor:初始化ExecutorService
2021-05-23 11:37:24.185信息21111---[main]o.s.s.concurrent.ThreadPoolTaskExecutor:初始化ExecutorService'taskExecutor'
2021-05-23 11:37:24.349 WARN 21111-[main]ConfigServletWebServerApplicationContext:在上下文初始化过程中遇到异常-取消刷新尝试:org.springframework.beans.factory.BeanCreationException:创建在类路径资源中定义了名为“requestMappingHandlerAdapter”的bean时出错[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]:通过工厂方法实例化Bean失败;嵌套异常为org.springframework.beans.beanstantiationException:实例化[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]失败:工厂方法'requestMappingHandlerAdapter'引发异常;嵌套异常为org.springframework.beans.Factory.BeanCreationException:创建名为'messageConverters'的bean时出错,该bean在类路径资源[org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]中定义:通过工厂方法实例化Bean失败;嵌套异常为org.springframework.beans.beanInstationException:未能实例化[org.springframework.boot.autoconfigure.http.HttpMessageConverters]:工厂方法“messageConverters”引发异常;嵌套异常为java.lang.VerifyError:操作数堆栈上的类型错误
例外情况详情:
地点:
org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.()V@4:invokspecial
原因:
类型“kotlinx/serialization/json/json$Default”(当前帧,堆栈[1])不可分配给“kotlinx/serialization/json/json”
当前帧:
密件抄送:@4
标志:{flagthisunit}
局部变量:{uninitializedThis}
堆栈:{uninitializedThis'kotlinx/serialization/json/json$Default'}
字节码:
0000000:2ab2 0001 b700 02b1
2021-05-23 11:37:24.350信息21111---[main]o.s.s.concurrent.ThreadPoolTaskExecutor:正在关闭Executor服务“taskExecutor”
2021-05-23 11:37:24.353信息21111---[main]o.apache.catalina.core.StandardService:停止服务[Tomcat]
2021-05-23 11:37:24.369信息21111-[main]条件评估报告日志监听器:
启动ApplicationContext时出错。若要显示条件报告,请在启用“调试”的情况下重新运行应用程序。
2021-05-23 11:37:24.386错误21111---[main]o.s.boot.SpringApplication:应用程序运行失败
org.springframework.beans.factory.BeanCreationException:创建名为“requestMappingHandlerAdapter”的bean时出错,该名称在类路径资源[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]中定义:通过工厂方法实例化Bean失败;嵌套异常为org.springframework.beans.BeanInstantiationException:实例化[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]失败:工厂方法'requestMappingHandlerAdapter'引发异常;嵌套异常为org.springframework.beans.Factory.BeanCreationException:创建名为'messageConverters'的bean时出错,该bean在类路径资源[org/springframework/boot/autoconfigure/http/HttpMessageConvertersAutoConfiguration.class]中定义:通过工厂方法实例化Bean失败;嵌套异常为org.springframework.beans.beanInstationException:未能实例化[org.springframework.boot.autoconfigure.http.HttpMessageConverters]:工厂方法“messageConverters”引发异常;嵌套异常为java.lang.VerifyError:操作数堆栈上的类型错误
例外情况详情:
地点:
org/springframework/http/converter/json/KotlinSerializationJsonHttpMessageConverter.()V@4:invokspecial
原因:
类型“kotlinx/serialization/json/json$Default”(当前帧,堆栈[1])不可分配给“kotlinx/serialization/json/json”
当前帧:
密件抄送:@4
标志:{flagthisunit}
局部变量:{uninitializedThis}
堆栈:{uninitializedThis'kotlinx/serialization/json/json$Default'}
字节码:
0000000:2ab2 0001 b700 02b1
在org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)~[spring-beans-5.3.6.jar:5.3.6]
在